-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
124 lines (116 loc) · 4.13 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
from setuptools import setup, find_packages
import os
import ssl
repo_base_dir = os.path.abspath(os.path.dirname(__file__))
package_about = {}
# import __about__ file from repository to avoid reading from installed package
with open(os.path.join(repo_base_dir, "tardis", "__about__.py")) as about_file:
exec(about_file.read(), package_about)
with open(os.path.join(repo_base_dir, "README.md"), "r") as read_me:
long_description = read_me.read()
TESTS_REQUIRE = ["flake8", "httpx"]
REST_REQUIRES = [
"fastapi-jwt-auth",
"fastapi",
"python-jose",
"uvicorn[standard]",
"typer",
"bcrypt",
"python-multipart",
]
def get_cryptography_version():
if ssl.OPENSSL_VERSION_INFO < (1, 1, 0):
return "cryptography<3.2" # to support openssl<1.1 (Centos 7)"
else:
return "cryptography"
setup(
name=package_about["__package__"],
version=package_about["__version__"],
description=package_about["__summary__"],
long_description=long_description,
long_description_content_type="text/markdown",
url=package_about["__url__"],
author=package_about["__author__"],
author_email=package_about["__email__"],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Topic :: System :: Distributed Computing",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Utilities",
"Framework :: AsyncIO",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
entry_points={
"console_scripts": [
"generate_token = tardis.rest.token_generator.__main__:generate_token_cli",
"hash_credentials = tardis.rest.hash_credentials.__main__:hash_credentials_cli", # noqa: B950
],
"cobald.config.yaml_constructors": [
"TardisPoolFactory = tardis.resources.poolfactory:create_composite_pool",
"TardisPeriodicValue = tardis.utilities.simulators.periodicvalue:PeriodicValue", # noqa: B950
"TardisRandomGauss = tardis.utilities.simulators.randomgauss:RandomGauss",
"TardisRestApi = tardis.rest.service:RestService",
"TardisSSHExecutor = tardis.utilities.executors.sshexecutor:SSHExecutor",
"TardisShellExecutor = tardis.utilities.executors.shellexecutor:ShellExecutor", # noqa: B950
],
"cobald.config.sections": [
"tardis = tardis.configuration.configuration:Configuration"
],
},
keywords=package_about["__keywords__"],
packages=find_packages(exclude=["tests"]),
python_requires=">=3.8",
install_requires=[
"aiohttp",
get_cryptography_version(),
"CloudStackAIO>=0.0.8",
"PyYAML",
"AsyncOpenStackClient>=0.9.0",
"cobald>=0.14.0 ",
"asyncssh",
"aiotelegraf",
"elasticsearch>=7.17,<8.0.0",
"aioprometheus>=21.9.0",
"kubernetes_asyncio",
"pydantic<2.0.0",
"asyncstdlib",
"async-timeout",
"typing_extensions",
"python-auditor==0.5.0",
"tzlocal",
"pyotp",
*REST_REQUIRES,
],
extras_require={
"docs": [
"docutils<0.17", # fixes rendering issue with two column layout
"sphinx",
"sphinx_rtd_theme",
"sphinxcontrib-contentui",
"myst_parser",
],
"test": TESTS_REQUIRE,
"contrib": [
"flake8",
"flake8-bugbear",
"black; implementation_name=='cpython'",
*TESTS_REQUIRE,
],
},
tests_require=TESTS_REQUIRE,
zip_safe=False,
test_suite="tests",
project_urls={
"Bug Reports": "https://github.com/matterminers/tardis/issues",
"Source": "https://github.com/matterminers/tardis",
},
)