forked from flask-restful/flask-restful
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·66 lines (59 loc) · 1.69 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
66
#!/usr/bin/env python
import re
import sys
from os import path
from setuptools import setup, find_packages
PY26 = sys.version_info[:2] == (2, 6,)
requirements = [
'aniso8601>=0.82',
'Flask>=0.8',
'six>=1.3.0',
'pytz',
]
if PY26:
requirements.append('ordereddict')
version_file = path.join(
path.dirname(__file__),
'flask_restful',
'__version__.py'
)
with open(version_file, 'r') as fp:
m = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]",
fp.read(),
re.M
)
version = m.groups(1)[0]
setup(
name='Flask-RESTful',
version=version,
license='BSD',
url='https://www.github.com/flask-restful/flask-restful/',
author='Twilio API Team',
author_email='[email protected]',
description='Simple framework for creating REST APIs',
packages=find_packages(exclude=['tests']),
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'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',
'License :: OSI Approved :: BSD License',
],
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite = 'nose.collector',
install_requires=requirements,
tests_require=['Flask-RESTful[paging]', 'mock>=0.8', 'blinker'],
# Install these with "pip install -e '.[paging]'" or '.[docs]'
extras_require={
'paging': 'pycrypto>=2.6',
'docs': 'sphinx',
}
)