-
Notifications
You must be signed in to change notification settings - Fork 43
/
setup.py
47 lines (44 loc) · 1.76 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
47
#!/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/__init__.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,
packages=['flask_injector'],
package_data={'flask_injector': ['py.typed']},
zip_safe=True,
platforms='any',
install_requires=['Flask>=2.2.0', 'injector>=0.20.0', 'typing; python_version < "3.5"'],
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.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
],
)