-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
263 lines (232 loc) · 7.04 KB
/
pyproject.toml
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
[build-system]
requires = [
"meson-python",
"numpy",
# "transonic@hg+https://foss.heptapod.net/fluiddyn/transonic",
"transonic>=0.6.2",
"pythran>=0.9.7",
]
build-backend = 'mesonpy'
[project]
name = 'fluidsim'
description = "Framework for studying fluid dynamics with simulations."
keywords = [
"Fluid dynamics",
"research",
]
authors = [
{name = "pierre.augier", email = "[email protected]"},
]
version = '0.8.4'
requires-python = ">=3.10"
dependencies = [
"fluidsim-core>=0.8.1",
"h5py",
"h5netcdf",
"transonic>=0.6.2",
"xarray",
"rich",
"matplotlib>=3.3",
"scipy",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Topic :: Scientific/Engineering",
# CeCILL is a GPL compatible license for French laws
"License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
readme = "README.md"
license = {text = "CECILL-2.1"}
[project.urls]
"Source" = "https://foss.heptapod.net/fluiddyn/fluidsim"
"Documentation" = "https://fluidsim.readthedocs.io"
"Git Mirror" = "https://github.com/fluiddyn/fluidsim"
[project.optional-dependencies]
fft = [
"pyfftw >= 0.10.4",
"fluidfft >= 0.4.0",
]
# sphere = [
# "fluidsht >= 0.0.3a0",
# ]
mpi = [
"mpi4py",
]
test = [
"pytest",
"coverage",
"pytest-cov",
"pytest-allclose",
"pytest-mock",
"ipython",
"pymech",
]
[project.scripts]
fluidsim = "fluidsim.util.console.__main__:run"
fluidsim-create-xml-description = "fluidsim.base.output:run"
fluidsim-profile = "fluidsim.util.console.__main__:run_profile"
fluidsim-bench = "fluidsim.util.console.__main__:run_bench"
fluidsim-bench-analysis = "fluidsim.util.console.__main__:run_bench_analysis"
fluidsim-test = "fluidsim.util.testing:run"
fluidsim-restart = "fluidsim.util.scripts.restart:main"
fluidsim-modif-resolution = "fluidsim.util.scripts.modif_resolution:main"
fluidsim-ipy-load = "fluidsim.util.scripts.ipy_load:start_ipython_load_sim"
[project.entry-points."fluidsim.solvers"]
basil = "fluidsim.base.basilisk.solver"
dedalus = "fluidsim.base.dedalus.solver"
Base = "fluidsim.base.solvers.base"
BasePS = "fluidsim.base.solvers.pseudo_spect"
BaseSH = "fluidsim.base.sphericalharmo.solver"
ad1d = "fluidsim.solvers.ad1d.solver"
burgers1d = "fluidsim.solvers.burgers1d.solver"
nl1d = "fluidsim.solvers.nl1d.solver"
ns2d = "fluidsim.solvers.ns2d.solver"
ns3d = "fluidsim.solvers.ns3d.solver"
plate2d = "fluidsim.solvers.plate2d.solver"
sw1l = "fluidsim.solvers.sw1l.solver"
waves2d = "fluidsim.solvers.waves2d.solver"
[project.entry-points."fluidsim.solvers.ad1d"]
pseudo_spect = "fluidsim.solvers.ad1d.pseudo_spect.solver"
[project.entry-points."fluidsim.solvers.burgers1d"]
skew_sym = "fluidsim.solvers.burgers1d.skew_sym.solver"
[project.entry-points."fluidsim.solvers.models0d"]
lorenz = "fluidsim.solvers.models0d.lorenz.solver"
predaprey = "fluidsim.solvers.models0d.predaprey.solver"
[project.entry-points."fluidsim.solvers.ns2d"]
bouss = "fluidsim.solvers.ns2d.bouss.solver"
strat = "fluidsim.solvers.ns2d.strat.solver"
[project.entry-points."fluidsim.solvers.ns3d"]
bouss = "fluidsim.solvers.ns3d.bouss.solver"
strat = "fluidsim.solvers.ns3d.strat.solver"
[project.entry-points."fluidsim.solvers.sphere"]
ns2d = "fluidsim.solvers.sphere.ns2d.solver"
sw1l = "fluidsim.solvers.sphere.sw1l.solver"
[project.entry-points."fluidsim.solvers.sw1l"]
exactlin = "fluidsim.solvers.sw1l.exactlin.solver"
#exactlin.modified = "fluidsim.solvers.sw1l.exactlin.modified.solver"
modified = "fluidsim.solvers.sw1l.modified.solver"
onlywaves = "fluidsim.solvers.sw1l.onlywaves.solver"
[tool.pdm]
ignore_package_warnings = ["ipython"]
[tool.pdm.dev-dependencies]
# because meson-python editable build needs the build dependencies
build = [
"meson-python",
"numpy>=2.0.0",
# "transonic@hg+https://foss.heptapod.net/fluiddyn/transonic@default",
"transonic>=0.6.2",
"pythran>=0.9.7",
"ninja",
]
doc = [
"sphinx",
"sphinx_rtd_theme",
"numpydoc",
"jupyter",
"pandas",
"ipynbname",
"myst-nb",
"sphinx-copybutton",
]
dev = [
"pip",
"black",
"pylint",
"flit_core >=3.2,<4",
"-e fluidsim-core @ file:///${PROJECT_ROOT}/lib",
# build dependencies mpi4py
"cython >=3.0",
"setuptools",
]
[tool.pdm.scripts]
black = 'black fluidsim scripts bench doc lib --exclude "/(__pythran__|__python__|__numba__|doc/_build|\.ipynb_checkpoints/*)/"'
lint = {shell="pylint -rn --rcfile=pylintrc --jobs=$(nproc) fluidsim --exit-zero"}
black_check = 'black --check fluidsim scripts bench doc lib --exclude "/(__pythran__|__python__|__numba__|doc/_build|\.ipynb_checkpoints/*)/"'
validate_code = {composite = ["black_check", "lint"]}
[tool.pdm.options]
lock = ["-G", ":all"]
sync = ["--no-isolation"]
install = ["--no-isolation"]
[tool.coverage.run]
source = [
"./fluidsim",
"./lib",
]
data_file = ".coverage/coverage"
omit = [
"*/try_*.py",
"*/_old_*.py",
"**/__pythran__/*.py",
"**/__python__/*.py",
"**/__numba__/*.py",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"if __name__ == .__main__.:",
"if \"sphinx\" in sys.modules:",
"raise ValueError",
"raise NotImplementedError",
"raise ImportError",
"except KeyError:",
"except ImportError:",
"except AttributeError:",
"except NotImplementedError:",
]
[tool.coverage.html]
directory = ".coverage"
[tool.coverage.xml]
output = ".coverage/coverage.xml"
[tool.pytest.ini_options]
testpaths = [
"lib",
"fluidsim",
]
addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb"
[tool.towncrier]
package = "fluidsim"
single_file = true # if false, filename is formatted like `title_format`.
filename = "CHANGES.md"
directory = "doc/newsfragments"
template = "doc/newsfragments/template.rst.j2"
title_format = false # if false, template includes title
issue_format = "`!{issue} <https://foss.heptapod.net/fluiddyn/fluidsim/-/merge_requests/{issue}>`__"
underline = "-~"
# wrap = true # Wrap text to 79 characters
all_bullets = true # make all fragments bullet points
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "security"
name = "Security"
showcontent = true
[tool.black]
line-length = 82
target-version = ["py39"]
extend-exclude = "/(__pythran__|__python__|__numba__|build|doc/_build|\\.ipynb_checkpoints/*)/"