|
| 1 | +import ast |
| 2 | +import os |
| 3 | +import re |
| 4 | +from setuptools import setup |
| 5 | + |
| 6 | +current_dir = os.path.abspath(os.path.dirname(__file__)) |
| 7 | +_version_re = re.compile(r'__version__\s+=\s+(?P<version>.*)') |
| 8 | + |
| 9 | +with open(os.path.join(current_dir, 'deps.py'), 'r') as f: |
| 10 | + version = _version_re.search(f.read()).group('version') |
| 11 | + version = str(ast.literal_eval(version)) |
| 12 | + |
| 13 | + |
| 14 | +setup( |
| 15 | + name='deps', |
| 16 | + license='MIT', |
| 17 | + version=version, |
| 18 | + description='Dependency injection based on attrs', |
| 19 | + long_description=open('README.rst').read(), |
| 20 | + author='Daniel Kuruc', |
| 21 | + |
| 22 | + url='https://github.com/danie1k/deps', |
| 23 | + py_modules=[ |
| 24 | + 'deps', |
| 25 | + ], |
| 26 | + zip_safe=False, |
| 27 | + python_requires='>=3.6', |
| 28 | + tests_require=['pytest'], |
| 29 | + install_requires=[ |
| 30 | + 'attrs < 19.4', |
| 31 | + 'Inject < 3.6', |
| 32 | + ], |
| 33 | + classifiers=[ |
| 34 | + "Development Status :: 4 - Beta", |
| 35 | + "Intended Audience :: Developers", |
| 36 | + "License :: OSI Approved :: MIT License", |
| 37 | + "Operating System :: OS Independent", |
| 38 | + "Programming Language :: Python :: 3.6", |
| 39 | + "Programming Language :: Python :: 3.7", |
| 40 | + "Programming Language :: Python :: 3.8", |
| 41 | + "Programming Language :: Python :: 3 :: Only", |
| 42 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 43 | + ], |
| 44 | +) |
0 commit comments