Skip to content
Permalink
635e8353db
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
50 lines (30 sloc) 1.24 KB

git_deps_py

manage dependencies between git repositories (lightweight "git submodules")

Status

  • experimental

Features

  • 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)

Usage Example

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

Installation

From Git

  1. clone the git repository

     $ git clone https://github.molgen.mpg.de/EditionOpenAccess/git_deps_py.git
    
  2. checkout the right version

     $ cd git_deps_py
     $ git checkout release
    
  3. install into your PATH via pip

     $ pip install --user .