This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathsetup.py
110 lines (104 loc) · 4.89 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# pylint: disable=missing-docstring
from setuptools import setup, find_packages
from os.path import dirname, join
readme_file = 'README.rst'
def _get_readme():
with open(join(dirname(__file__), readme_file)) as f:
return f.read()
setup(name='hil',
maintainer='Developers of the HIL Project at MOC',
maintainer_email='hil@lists.massopen.cloud',
url='https://github.com/CCI-MOC/hil',
description='A bare-metal isolation service that automates allocation '
'and management of non-virtualized compute resources across '
'mutually untrusting and incompatible provisioning systems.',
long_description=_get_readme(),
license='Apache 2.0',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Science/Research',
'Topic :: System :: Cloud :: Installation/Setup',
'Topic :: System :: Systems Administration :: Clustering :: Utilities ', # noqa
'License :: OSI Approved :: Apache Software License, version 2.0', # noqa
'Environment :: Console',
'Environment :: Web Environment',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
],
keywords='cloud bare-metal setuptools data-center isolation',
setup_requires=['setuptools_scm'],
use_scm_version=True,
packages=find_packages(),
# TODO: we should merge scripts into entry_points, below.
scripts=['scripts/create_bridges'],
entry_points={
'console_scripts': ['hil-admin=hil.commands.admin:main',
'hil=hil.cli.cli:main'],
},
package_data={
'hil': [
'migrations/env.py',
'migrations/alembic.ini',
'migrations/script.py.mako',
'migrations/versions/*.py',
],
'hil.ext.switches': ['migrations/*/*.py'],
'hil.ext.auth': ['migrations/*/*.py'],
'hil.ext.network_allocators': ['migrations/*/*.py']
},
zip_safe=False, # migrations folder needs to be extracted to work.
# A note on version constraints: most python packages follow some version
# of [semver][1], and the [python packaging guide][2] recommends this. We
# assume this scheme unless a package indicates something else.
#
# The pocoo.org packages (Werkzeug, Flask...) seem to follow the
# patch-level release semantics for their 0.x releases, even though the
# semver spec doesn't require it.
#
# Our general policy is this: if we can use the semver semantics to
# derive compatibility information, we specify a minimum version that
# we've tested against, with an upper bound that guarantees backwards
# compatibility according to semver. If we can't (either because the
# package doesn't follow semver, or is 0.x and thus has no
# compatibility guarantees), we pin the exact version.
#
# [1]: http://semver.org
# [2]: https://packaging.python.org/en/latest/distributing/#choosing-a-versioning-scheme # noqa
#
# For Flask-SQLAlchemy, we are using non-standard semver bounds as
# release 2.2 is backwards-incompatible.
#
# We are blacklisting keystonemiddleware version 4.19 due to a bug[3].
# [3]: https://bugs.launchpad.net/keystonemiddleware/+bug/1737115
# See #923 for details.
install_requires=['Flask-SQLAlchemy>=2.1,<2.2',
'Flask-Migrate>=1.8,<2.0',
'Flask-Script>=2.0.5,<3.0',
'Werkzeug>=0.9.4,<0.10',
'Flask>=0.12.1,<0.13',
'schema==0.3.1',
'passlib>=1.6.2,<2.0',
'pexpect>=3.3,<4.0',
'requests>=2.4.1,<3.0',
'lxml>=3.6.0,<4.0',
'click>=6.0,<7.0',
'prettytable>=0.7.2',
],
extras_require={
'tests': [
'pytest>=3.4.0,<3.6',
# Not using standard sermver bounds because the latest version
# of the plugins require pytest version>3.5.1, which has other
# issues. See Issue #1057
'pytest-cov>2.0,<2.6.1',
'pytest-xdist>=1.14,<1.25',
'pycodestyle>=2.3.1',
'pylint>=1.6.0,<2.0',
'requests_mock>=1.0.0,<2.0',
'keystonemiddleware>=4.17,!=4.19,<5.0',
],
'postgres': ['psycopg2>=2.7,<3.0'],
'keystone-auth-backend': ['keystonemiddleware>=4.17,!=4.19,<5.0'],
'keystone-client': ['python-keystoneclient>=3.13,<4.0'],
})