-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
65 lines (56 loc) · 1.66 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"""
Flask-JSONWrap
Wraps a Flask app such that all errors returned are JSON-API compatible,
rather than being HTML.
"""
from setuptools import setup, find_packages
requires = {
'setup': [
],
'install': [
'Flask',
'simplejson',
],
'tests': [
'pytest',
'pytest-cov',
'pytest-flake8',
'requests',
],
}
requires['all'] = list({dep for deps in requires.values() for dep in deps})
def readme():
with open('README.md', 'r') as f:
return f.read()
setup(
name='Flask-JSONWrap',
description='Make a Flask app JSON API friendly.',
long_description=readme(),
url='http://github.com/daroot/flask-jsonwrap/',
version='1.0.1',
author='Dan Root',
author_email='[email protected]',
license='WTFPL',
packages=find_packages(exclude=['doc', 'test']),
setup_requires=requires['setup'],
install_requires=requires['install'],
tests_require=requires['tests'],
zip_safe=False,
include_package_data=True,
platforms='any',
keywords=['flask', 'jsonapi'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: Freely Distributable',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)