-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
172 lines (161 loc) · 3.77 KB
/
pyproject.toml
File metadata and controls
172 lines (161 loc) · 3.77 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[build-system]
requires = ["setuptools>=64.0", "wheel", "setuptools_scm>8", "tomli;python_version<'3.11'"]
build-backend = "setuptools.build_meta"
[project]
name = "imas-simdb"
description = "ITER Simulation Management Tool"
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENCE"}
requires-python = ">=3.8"
authors = [
{name = "ITER Organization", email = "imas-support@iter.org"},
]
maintainers = [
{name = "ITER Organization", email = "imas-support@iter.org"},
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Topic :: Scientific/Engineering :: Physics",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Natural Language :: English",
]
dynamic = ["version"]
dependencies = [
"Cerberus>=1.3.2",
"PyJWT>=1.4.0",
"appdirs>=1.4.0",
"argcomplete>=1.9.4",
"backports-datetime-fromisoformat>=1.0",
"click>=7.0,<=8.1.8",
"click_option_group>=0.5",
"distro>=1.8.0",
"email-validator>=1.1",
"imas-python",
"numpy>=1.14",
"pydantic>=2.10.6",
"python-dateutil>=2.6",
"pyuda>=2.9.2",
"pyyaml>=3.13",
"requests>=2.27.0",
"semantic-version>=2.8",
"sqlalchemy>=1.2.12,<2.0",
"alembic~=1.13",
"urllib3>=1.26",
]
[project.optional-dependencies]
server = [
"Flask>=2.0",
"Werkzeug==2.0.3",
"flask-caching>=1.10",
"flask-compress>=1.12",
"flask-cors>=3",
"flask-mail~=0.9.1",
"flask-restx==0.5",
"python-magic~=0.4",
"simplejson~=3.0",
]
auth-ad = [
"easyad>=1.0",
]
auth-keycloak = [
"python-keycloak>=4.0",
]
auth-ldap = [
"python-ldap>=3.4",
]
auth = [
"imas-simdb[auth-ad, auth-keycloak, auth-ldap]"
]
imas-validator = [
"imas-validator>=1.0.0",
]
build-docs = [
"sphinx>=4.5",
"sphinx-rtd-theme>=1.0.0",
"sphinx-autodoc-typehints>=1.12.0",
"myst-parser>=0.18.0",
"nbsphinx>=0.8.0",
"docutils>=0.17",
"recommonmark>=0.7.0",
]
postgres = [
"psycopg2-binary>=2.8.0",
]
all = [
"imas-simdb[server, imas-validator, postgres]"
]
[project.scripts]
simdb = "simdb.cli.simdb:main"
simdb_server = "simdb.remote.wsgi:run"
[project.urls]
Homepage = "https://simdb.iter.org/dashboard/"
Documentation = "https://simdb.readthedocs.io/en/latest/"
Repository = "https://github.com/iterorganization/SimDB"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
simdb = ["py.typed", "LICENSE"]
"simdb.cli" = ["template.yaml"]
"simdb.remote" = ["scripts/simdb.initd", "scripts/simdb.nginx"]
[tool.setuptools_scm]
write_to = "src/simdb/_version.py"
local_scheme = "dirty-tag"
[tool.ruff]
extend-exclude = ["scripts", "sql", "docs", "src/simdb/_version.py"]
line-length = 88
indent-width = 4
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# eradicate
"ERA",
# flake8-comprehensions
"C4",
# flake8-logging
"LOG",
# flake8-logging-format
"G",
# flake8-tidy-imports
"TID",
# flake8-use-pathlib
"PTH",
# Pylint
"PLC0415",
# Refurb
"FURB",
# Ruff specific rules
"RUF",
]
[tool.pytest.ini_options]
addopts = "--cov=simdb"
testpaths = [
"tests",
]
[dependency-groups]
dev = [
"pytest>=8.3.5",
"pytest-cov>=5.0.0",
"ruff>=0.15.0",
"ty>=0.0.13",
"imas-simdb[server, imas-validator, postgres, auth]"
]