This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
forked from MatterMiners/tardis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
122 lines (114 loc) · 4.18 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
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]<=0.14.0", # to support python3.6 (Centos 7)
"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.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
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"]),
install_requires=[
"aiohttp<4.0; python_version<'3.7'", # to support python3.6 (Centos 7)
"aiohttp; python_version>='3.7'",
get_cryptography_version(),
"CloudStackAIO>=0.0.8",
"PyYAML",
"AsyncOpenStackClient",
"cobald>=0.12.3",
"asyncssh",
"aiotelegraf",
"elasticsearch>=7.17,<8.0.0",
"aioprometheus>=21.9.0",
"kubernetes_asyncio",
"pydantic",
"asyncstdlib",
"typing_extensions",
"backports.cached_property",
],
extras_require={
"docs": [
"sphinx",
"sphinx_rtd_theme",
"sphinxcontrib-contentui",
"myst_parser",
],
"rest": REST_REQUIRES,
"test": TESTS_REQUIRE,
"contrib": [
"flake8",
"flake8-bugbear",
"black; implementation_name=='cpython'",
]
+ TESTS_REQUIRE
+ REST_REQUIRES,
},
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",
},
)