-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
58 lines (48 loc) · 1.71 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
"""
Flask-APIExceptions
~~~~~~~~~~~~~~~~~~~
Providing HTTP error responses in the form of Python exceptions that can
be serialized as response objects.
"""
import os
from setuptools import setup
with open('README.rst') as file:
LONG_DESCRIPTION = file.read()
MODULE_PATH = os.path.join(os.path.dirname(__file__), 'flask_apiexceptions.py')
with open(MODULE_PATH) as module:
for line in module:
if line.startswith('__version_info__'):
version_line = line
break
#pylint: disable=locally-disabled,eval-used
__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))
URL_BASE = 'https://github.com/jperras/Flask-ApiExceptions'
setup(
name='Flask-ApiExceptions',
version=__version__,
author='Joel Perras',
author_email='[email protected]',
description='Python exceptions serializable to Flask HTTP responses.',
url=URL_BASE,
download_url='{}/archive/{}.tar.gz'.format(URL_BASE, __version__),
long_description=LONG_DESCRIPTION,
py_modules=['flask_apiexceptions'],
license='MIT',
platforms='any',
install_requires=['Flask>=0.10'],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
keywords=['flask', 'json', 'exceptions', 'api'],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'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 :: 3.5',
'Programming Language :: Python :: 3.6',
]
)