-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
199 lines (183 loc) · 6.38 KB
/
pyproject.toml
File metadata and controls
199 lines (183 loc) · 6.38 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
[build-system]
requires = ["setuptools", "packaging>=24.2", "wheel", "setuptools_scm>8"]
build-backend = "setuptools.build_meta"
[project]
name = "imas-idstools"
authors = [{ name = "ITER Organization", email = "imas-support@iter.org" }]
description = "Python based collection of data analysis and visualization tools written in IMAS framework"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.8"
keywords = ["IMAS", "IDS"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Plugins",
"Environment :: X11 Applications",
"Framework :: Flake8",
"Framework :: IPython",
"Framework :: Matplotlib",
"Framework :: Pytest",
"Framework :: Sphinx",
# Custom trove classifiers are not allowed, and newer versions of python setuptools will fail to build
# when classifiers other than those listed on: https://pypi.org/classifiers/ are included
# "Framework :: IMAS",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Unix Shell",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System",
"Topic :: System :: Software Distribution",
"Topic :: Utilities",
]
dependencies = [
"cerberus",
"fortranformat",
"imas-python",
"matplotlib",
"netCDF4",
"numpy",
"packaging",
"pandas",
"pyparsing",
"python-dateutil",
"pyyaml",
"rich",
"rich_argparse",
"six",
"tabulate",
]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/iterorganization/IDStools"
[project.scripts]
# Visualization and analysis tools
plotequilibrium = "idstools.scripts:plotequilibrium"
idslist = "idstools.scripts:idslist"
idsprint = "idstools.scripts:idsprint"
idsperf = "idstools.scripts:idsperf"
plothcd = "idstools.scripts:plothcd"
plotpressure = "idstools.scripts:plotpressure"
plotrotation = "idstools.scripts:plotrotation"
plotequicomp = "idstools.scripts:plotequicomp"
plotcoresources = "idstools.scripts:plotcoresources"
plotkineticprofiles = "idstools.scripts:plotkineticprofiles"
plothcdwaves = "idstools.scripts:plothcdwaves"
plotecray = "idstools.scripts:plotecray"
plothcddistributions = "idstools.scripts:plothcddistributions"
plotedgeprofiles = "idstools.scripts:plotedgeprofiles"
plotmachinedescription = "idstools.scripts:plotmachinedescription"
plotspectrometry = "idstools.scripts:plotspectrometry"
plotneutron = "idstools.scripts:plotneutron"
ploteccomposition = "idstools.scripts:ploteccomposition"
plotecstrayradiation = "idstools.scripts:plotecstrayradiation"
plotscenario = "idstools.scripts:plotscenario"
# Query and data manipulation tools
idsquery = "idstools.scripts:idsquery"
idsresample = "idstools.scripts:idsresample"
idsdiff = "idstools.scripts:idsdiff"
idscp = "idstools.scripts:idscp"
idssize = "idstools.scripts:idssize"
idsrescale_equilibrium = "idstools.scripts:idsrescale_equilibrium"
idsshift_equilibrium = "idstools.scripts:idsshift_equilibrium"
idsrosettacode = "idstools.scripts:idsrosettacode"
eqdsk2ids = "idstools.scripts:eqdsk2ids"
# Database management tools
dbconverter = "idstools.scripts:dbconverter"
dbscraper = "idstools.scripts:dbscraper"
dbselector = "idstools.scripts:dbselector"
dblist = "idstools.scripts:dblist"
dbperf = "idstools.scripts:dbperf"
# Print and report tools
printcoresources = "idstools.scripts:printcoresources"
printplasmacompo = "idstools.scripts:printplasmacompo"
printfluxes = "idstools.scripts:printfluxes"
# Scenario and disruption tools
scenario_status = "idstools.scripts:scenario_status"
scenario_summary = "idstools.scripts:scenario_summary"
disruption_summary = "idstools.scripts:disruption_summary"
# Database entry management
create_db_entry = "idstools.scripts:create_db_entry"
create_db_entry_disruption = "idstools.scripts:create_db_entry_disruption"
show_db_entry = "idstools.scripts:show_db_entry"
watch_db_entry = "idstools.scripts:watch_db_entry"
# Machine description tools
md_status = "idstools.scripts:md_status"
md_summary = "idstools.scripts:md_summary"
[tool.setuptools.packages.find]
where = ["."]
include = ["idstools*"]
exclude = ["*.pyc", "*.pyo"]
[tool.setuptools.package-data]
"idstools.scripts" = ["bin/*"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--strict-markers"
testpaths = "idstools"
[tool.setuptools_scm]
version_file = "idstools/_version.py"
local_scheme = "no-local-version"
version_file_template = """
# file generated by setuptools_scm; DO NOT edit
__all__ = ["__version__", "GIT_REV", "GIT_DESCRIBE", "GIT_DATE"]
__version__ = "{version}"
version_tuple = tuple("{version}".replace("-", ".").split("."))
GIT_REV = "{scm_version.node}"
GIT_DESCRIBE = "{scm_version.tag}-{scm_version.distance}-{scm_version.node}"
GIT_DATE = "{scm_version.node_date}"
"""
[tool.isort]
profile = "black"
[tool.flake8]
max-line-length = 120
ignore = ["E203", "W503"]
[project.optional-dependencies]
# these self-dependencies are available since pip 21.2
all = ["imas-idstools[test,docs]"]
docs = [
"sphinx>=6.0.0,<7.0.0",
"astroid<4",
"numpy",
"pyparsing",
"python-dateutil",
"rst2pdf",
"sphinx-autoapi",
"sphinx-autodoc-typehints",
"sphinx-immaterial>0.11.0,<0.12",
"sphinx-toolbox",
"sphinxcontrib-programoutput",
"click",
"setuptools-scm",
]
test = ["pytest", "pytest-cov", "pytest-xdist"]
[tool.black]
line-length = 120
exclude = '''
/(
idstools/_version\.py
)/
'''
[tool.pylint]
max-line-length = 120
disable = ["all"]
enable = ["E"]
[tool.setuptools.data-files]
"bin/validation_schemas/ITER" = ["resources/validation_schemas/ITER/*.*"]
"bin/validation_schemas/generic" = ["resources/validation_schemas/generic/*.*"]
"bin/geqdsk" = ["resources/geqdsk/*.*"]
"bin/input" = ["resources/input/*.*"]
"bin/mappings" = ["resources/mappings/*.*"]
"bin/results" = ["resources/results/*.*"]