manage dependencies between git repositories (lightweight "git submodules")
- experimental
- Standardized way how to document and manage dependencies to other repositories
- For each dependency an init script can be specified
- Reasonable behaviour of indirect dependencies (e.g. avoid redundant downloads and init scripts)
consider example
your git project with dependencies. Lets cd into it:
$ cd example
$ ls
> dependencies.conf
dependencies.conf
specifies the dependencies.
Open it in your favourite editor to see how it is constructed.
Let's install the dependencies:
$ ../bin/git_deps_py
This will clone the git repositories specified in dependencies.conf
into a folder (default: ./dependencies/
).
Also, for each dependency the specified versions (git hash) are "checked out" and the init script (if specified) is run.
To see default settings and learn the command line arguments, run:
$ ../bin/git_deps_py --help
-
clone the git repository
$ git clone https://github.molgen.mpg.de/EditionOpenAccess/git_deps_py.git
-
checkout the right version
$ cd git_deps_py $ git checkout release
-
install into your PATH via pip
$ pip install --user .