forked from python-injector/flask_injector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (40 loc) · 1.56 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
#!/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='[email protected]',
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.10.0', 'typing'],
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 :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
],
)