-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·86 lines (73 loc) · 2.39 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from VestaRestPackage.__meta__ import API_VERSION, __author__, __contact__
with open('README.rst') as readme_file:
README = readme_file.read()
if os.path.exists("HISTORY.rst"):
with open('HISTORY.rst') as history_file:
HISTORY = history_file.read().replace('.. :changelog:', '')
else:
HISTORY = ""
REQUIREMENTS = [
"Flask==0.12.4",
"pyrabbit==1.0.1",
"PyJWT==0.4.3",
"dicttoxml==1.6.6",
"VestaService==0.4.1",
"configparser",
"future",
"pymongo==3.7.2",
"Flask-PyMongo==2.2.0",
"sentry-sdk[flask]"
]
TEST_REQUIREMENTS = [
'nose',
'nose-exclude'
]
setup(
# -- meta information --------------------------------------------------
name='VestaRestPackage',
version=API_VERSION,
description="Code to facilitate creation of Vesta Service Gateway.",
long_description=README + '\n\n' + HISTORY,
author=__author__,
author_email=__contact__,
url='https://github.com/crim-ca/RESTPackage',
platforms=['linux_x86_64'],
license="Apache 2.0",
keywords='Vesta,Service, ServiceGateway',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
],
# -- Package structure -------------------------------------------------
packages=[
'VestaRestPackage'
],
package_dir={'VestaRestPackage': 'VestaRestPackage'},
package_data={'VestaRestPackage': ['static/*',
'templates/*',
'db_struct/*',
'logging.ini']},
install_requires=REQUIREMENTS,
zip_safe=False,
# -- self - tests --------------------------------------------------------
test_suite='tests',
tests_require=TEST_REQUIREMENTS,
entry_points={
'console_scripts':
['vrp_default_config='
'VestaRestPackage.print_example_configuration:main',
'run_service=VestaRestPackage.run_process:main']
}
)