forked from smarkets/flask_injector
/
setup.py
46 lines (43 loc) · 1.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python
from setuptools import setup
long_description = open('README.rst').read()
# very convoluted way of reading version from the module without importing it
version = (
[l for l in open('flask_injector.py') if '__version__' in l][0]
.split('=')[-1]
.strip().strip('\'')
)
if __name__ == '__main__':
setup(
name='Flask-Injector',
version=version,
url='https://github.com/alecthomas/flask_injector',
license='BSD',
author='Alec Thomas',
author_email='alec@swapoff.org',
description='Adds Injector, a Dependency Injection framework, support to Flask.',
long_description=long_description,
py_modules=['flask_injector'],
zip_safe=True,
platforms='any',
install_requires=['Flask', 'injector>=0.9.0'],
keywords=['Dependency Injection', 'Flask'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
'Framework :: Flask',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
)