From 155514b1cb8bf430b0790fc8857ac94742940258 Mon Sep 17 00:00:00 2001 From: EsGeh Date: Wed, 27 Nov 2019 11:04:44 +0100 Subject: [PATCH] proper python package, installable via pip --- README.md | 4 ++-- get_deps.py => bin/get_deps | 0 setup.py | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) rename get_deps.py => bin/get_deps (100%) create mode 100644 setup.py diff --git a/README.md b/README.md index f2e78e0..dc09efa 100644 --- a/README.md +++ b/README.md @@ -24,10 +24,10 @@ consider `example` your git project with dependencies. Lets cd into it: Open it in your favourite editor to see how it is constructed. Let's install the dependencies: - $ ../get_deps.py + $ ../bin/get_deps 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: - $ ../get_deps.py --help + $ ../bin/get_deps --help diff --git a/get_deps.py b/bin/get_deps similarity index 100% rename from get_deps.py rename to bin/get_deps diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..08d2e55 --- /dev/null +++ b/setup.py @@ -0,0 +1,19 @@ + +from setuptools import setup + +setup(name='get_deps_py', + version='0.1', + description='manage dependencies to other git repositories', + classifiers=[ + 'Development Status :: experimental', + 'Programming Language :: Python :: 3.7', + ], + url='https://github.molgen.mpg.de/EditionOpenAccess/git_deps_py', + author='Samuel Gfrörer', + author_email='SamuelGfroerer@googlemail.com', + license='MIT', + scripts=['bin/get_deps'], + packages=[], + python_requires='>=3', + zip_safe=False) +