-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·90 lines (78 loc) · 2.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
def get_absolute_path(*args):
"""Transform relative pathnames into absolute pathnames."""
directory = os.path.dirname(os.path.abspath(__file__))
return os.path.join(directory, *args)
def get_version():
"""Get the version of `package` (by extracting it from the source code)."""
module_path = get_absolute_path('flask_sqa_restless', '__init__.py')
with open(module_path) as handle:
for line in handle:
match = re.match(r'^__version__\s*=\s*["\']([^"\']+)["\']$', line)
if match:
return match.group(1)
raise Exception("Failed to extract version from %s!" % module_path)
requirements = [
'cached-property==1.3.0',
'SQLAlchemy==1.1.6',
'Flask==0.12',
'Flask-SQLAlchemy==2.1',
'future==0.15.2',
'marshmallow-sqlalchemy==0.12.1',
'marshmallow==2.13.0',
'PyYAML==3.11',
'restless==2.0.1',
'six==1.10.0',
]
test_requirements = [
# TODO: put package test requirements here
]
setup(
name='flask-sqa-restless',
version=get_version(),
description="Flask REST API Framework for SQLAlchemy",
long_description=readme,
author="Ritesh Kadmawala",
author_email='[email protected]',
url='https://github.com/loanzen/flask_sqa_restless',
packages=find_packages(),
package_dir={'flask_sqa_restless':
'flask_sqa_restless'},
include_package_data=True,
install_requires=requirements,
license="ISCL",
zip_safe=False,
keywords='flask-sqa-restless, REST Framework',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Framework :: Flask',
'Intended Audience :: Information Technology',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
'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',
'Topic :: Software Development:: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
test_suite='tests',
tests_require=test_requirements
)