diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c7445fd --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +from setuptools import setup, find_packages + +find_packages + +with open('configlib/version.py') as f: + _loc, _glob = {}, {} + exec(f.read(), _loc, _glob) + version = {**_loc, **_glob}['version'] + +with open('requirements.txt') as f: + requirements = f.read().splitlines() + +with open('README.md') as f: + readme = f.read() + +if not version: + raise RuntimeError('version is not set in configlib/version.py') + +setup( + name="configlib", + author="romangraef", + url="https://github.com/romangraef/configlib", + version=str(version), + install_requires=requirements, + long_description=readme, + test_suite='tests.all_tests', + license="MIT", + packages=['configlib'], + description="An easy python config manager", + classifiers=[ + 'Topic :: Utilities', + ] +) |