python-dependency-injector/setup.py

72 lines
2.5 KiB
Python
Raw Normal View History

2015-08-31 16:31:38 +03:00
"""`Dependency injector` setup script."""
2015-01-04 16:54:25 +03:00
import re
from setuptools import setup, Extension
2015-01-04 16:54:25 +03:00
2015-04-03 01:01:05 +03:00
# Getting description:
2015-04-03 00:31:26 +03:00
with open('README.rst') as readme_file:
description = readme_file.read()
2015-01-05 12:11:21 +03:00
# Getting requirements:
2015-01-04 16:54:25 +03:00
with open('requirements.txt') as version:
requirements = version.readlines()
# Getting version:
with open('dependency_injector/__init__.py') as init_file:
version = re.search('VERSION = \'(.*?)\'', init_file.read()).group(1)
2015-01-04 16:54:25 +03:00
setup(name='dependency-injector',
2015-04-03 16:11:05 +03:00
version=version,
2016-10-12 10:41:50 +03:00
description='Dependency injection microframework for Python',
2015-04-03 16:11:05 +03:00
long_description=description,
2016-01-11 11:53:35 +03:00
author='ETS Labs',
2015-04-03 16:11:05 +03:00
author_email='rmogilatov@gmail.com',
2016-03-17 03:02:17 +03:00
maintainer='Roman Mogilatov',
2015-04-03 16:11:05 +03:00
maintainer_email='rmogilatov@gmail.com',
2016-04-25 11:07:47 +03:00
url='https://github.com/ets-labs/python-dependency-injector',
bugtrack_url='https://github.com/ets-labs/python-dependency-injector' +
'/issues',
2016-03-17 03:02:17 +03:00
download_url='https://pypi.python.org/pypi/dependency_injector',
install_requires=requirements,
packages=['dependency_injector',
'dependency_injector.providers'],
ext_modules=[
Extension('dependency_injector.injections',
['dependency_injector/injections.c'],
extra_compile_args=['-O2']),
],
package_data={
'dependency_injector': ['*.pxd']
},
2015-04-03 16:11:05 +03:00
zip_safe=True,
license='BSD New',
platforms=['any'],
2015-04-03 16:21:42 +03:00
keywords=[
'DI',
2016-03-17 03:02:17 +03:00
'Dependency injection',
2015-04-03 16:21:42 +03:00
'IoC',
2016-03-17 03:02:17 +03:00
'Inversion of Control',
2015-04-03 16:21:42 +03:00
],
2015-04-03 16:11:05 +03:00
classifiers=[
2015-11-26 16:50:12 +03:00
'Development Status :: 5 - Production/Stable',
2015-04-03 16:11:05 +03:00
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
2015-10-12 18:20:20 +03:00
'Programming Language :: Python :: 3.5',
2015-04-03 16:11:05 +03:00
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
])