-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
executable file
·86 lines (75 loc) · 1.96 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
# from distutils.core import setup
from setuptools import setup, find_packages
import multiprocessing # nopep8
import os
__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
VERSION = '0.4.3'
version_file = open(os.path.join(__location__, 'orlo', '_version.py'), 'w')
version_file.write("__version__ = '{}'".format(VERSION))
version_file.close()
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
install_requires = [
'Flask>=0.12',
'Flask-Alembic >= 2.0.1',
'Flask-HTTPAuth',
'Flask-Migrate',
'Flask-SQLAlchemy',
'Flask-Script >= 2.0.5',
'Flask-TokenAuth',
'arrow',
'gunicorn',
'orloclient>=0.4.5',
'psycopg2',
'pyldap',
'pytz',
'sqlalchemy-utils',
]
# Horrible hack
rtd_requires = [
'Flask>=0.12',
'Flask-Alembic >= 2.0.1',
'Flask-HTTPAuth',
'Flask-Migrate',
'Flask-SQLAlchemy',
'Flask-Script >= 2.0.5',
'Flask-TokenAuth',
'arrow',
'orloclient>=0.2.0',
'pytz',
'sqlalchemy-utils',
'sphinxcontrib-httpdomain',
]
tests_require = [
'Flask-Testing',
'orloclient>=0.4.0',
'mockldap',
'pytest',
'tox',
] + install_requires
setup(
name='orlo',
version=VERSION,
description='Deployment data capture API',
author='Alex Forbes',
author_email='[email protected]',
license='GPL',
long_description=open(os.path.join(__location__, 'README.md')).read(),
url='https://github.com/eBayClassifiedsGroup/orlo',
packages=find_packages(
exclude=['tests', 'debian', 'docs', 'etc']
),
include_package_data=True,
install_requires=rtd_requires if on_rtd else install_requires,
extras_require={
'install': install_requires,
'test': tests_require,
'doc': rtd_requires,
},
tests_require=tests_require,
test_suite='tests',
# Creates a script in /usr/local/bin
entry_points={
'console_scripts': ['orlo=orlo.__main__:main']
}
)