-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
47 lines (41 loc) · 1.38 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
import os.path as op
import re
from setuptools import setup
def read(name, only_open=False):
f = open(op.join(op.dirname(__file__), name))
return f if only_open else f.read()
ext_version = None
with read('src/flask_json.py', only_open=True) as f:
for line in f:
if line.startswith('__version__'):
ext_version, = re.findall(r"__version__\W*=\W*'([^']+)'", line)
break
setup(
name='Flask-JSON',
version=ext_version,
url='https://github.com/skozlovf/flask-json',
license='BSD',
author='Sergey Kozlov',
author_email='[email protected]',
description='Better JSON support for Flask',
long_description=read('README.rst'),
package_dir = {"": "src"},
py_modules=['flask_json'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=['Flask>=2.2.0'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Flask',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
tests_require=['pytest', 'pytest-cov']
)