forked from toumorokoshi/transmute-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (58 loc) · 1.87 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 glob
import os
import sys
from setuptools import setup, find_packages
is_release = False
if "--release" in sys.argv:
is_release = True
sys.argv.remove("--release")
base = os.path.dirname(os.path.abspath(__file__))
README_PATH = os.path.join(base, "README.rst")
install_requires = [
'schematics>=2.0.0.dev2',
'six',
'jinja2',
'swagger-schema',
'pyyaml',
]
tests_require = []
data_files = []
swagger_statics = glob.glob("transmute_core/swagger/static/**/")
for directory in swagger_statics:
data_files.append(os.path.join("swagger", "static", directory, "*"))
setup(name='transmute-core',
setup_requires=["vcver"],
vcver={
"is_release": is_release,
"path": base
},
description=(
"a utility library to help provide api route "
"generation form function signature for web "
"frameworks."
),
long_description=open(README_PATH).read(),
author='Yusuke Tsutsumi',
author_email='[email protected]',
url='https://github.com/toumorokoshi/transmute-core',
# data_files=data_files,
package_data={"transmute_core": data_files},
packages=find_packages(),
include_package_data=True,
install_requires=install_requires,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Topic :: System :: Software Distribution',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
tests_require=tests_require
)