-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
153 lines (136 loc) · 4.17 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
[build-system]
requires = ["meson-python", "numpy", "transonic>=0.6.4", "pythran>=0.9.7"]
build-backend = 'mesonpy'
[project]
name = "fluidfft"
version = "0.4.3"
description = "Efficient and easy Fast Fourier Transform (FFT) for Python."
authors = [
{name = "Pierre Augier", email = "pierre.augier@legi.cnrs.fr"},
]
dependencies = [
"fluiddyn >= 0.2.3",
"transonic >= 0.6.4",
"importlib_metadata; python_version < '3.10'",
]
requires-python = ">= 3.10"
readme = "README.md"
license = {text = "CeCILL License"}
keywords = [
"Fast Fourier Transform",
"FFT",
"spectral code",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: C",
"Programming Language :: Cython",
"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",
"Topic :: Scientific/Engineering",
]
[project.urls]
Homepage = "https://foss.heptapod.net/fluiddyn/fluidfft"
[project.optional-dependencies]
pyfftw = ["pyfftw >= 0.10.4"]
dask = ["dask"]
mpi = ["mpi4py"]
fftw = ["fluidfft-fftw"]
mpi-with-fftw = ["fluidfft-mpi_with_fftw"]
fftwmpi = ["fluidfft-fftwmpi"]
pfft = ["fluidfft-pfft"]
p3dfft = ["fluidfft-p3dfft"]
[project.scripts]
fluidfft-bench = "fluidfft.bench:run"
fluidfft-bench-analysis = "fluidfft.bench_analysis:run"
[project.entry-points."fluidfft.plugins"]
"fft2d.with_pyfftw" = "fluidfft.fft2d.with_pyfftw"
"fft3d.with_pyfftw" = "fluidfft.fft3d.with_pyfftw"
"fft2d.with_dask" = "fluidfft.fft2d.with_dask"
[tool.pdm]
distribution = true
package-dir = "src"
ignore_package_warnings = ["ipython"]
[tool.pdm.dev-dependencies]
build = ["meson-python", "ninja", "numpy", "transonic>=0.6.0", "pythran>=0.9.7"]
test = [
"pytest",
"coverage[toml]",
"pytest-cov",
"cython", # needed at run time for coverage
# needed to build the plugins
"pip",
"flit_core",
"-e fluidfft-builder @ file:///${PROJECT_ROOT}/plugins/fluidfft-builder",
]
dev = ["ipython"]
doc = [
"sphinx",
"sphinx_copybutton",
"sphinx_rtd_theme",
"jupyter",
"myst-nb",
"numpydoc",
"pandas",
"pyfftw",
# needed to create the dummy modules
"flit_core",
"-e fluidfft-builder @ file:///${PROJECT_ROOT}/plugins/fluidfft-builder",
]
lint = ["black", "pylint"]
[tool.pdm.scripts]
pre_install = "nox -s create-fake-modules"
black = 'black -l 82 src doc plugins tests --exclude "/(__pythran__|__python__|__numba__|build|doc/_build|\.ipynb_checkpoints/*)/"'
black_check = 'black --check -l 82 src doc plugins tests --exclude "/(__pythran__|__python__|__numba__|build|doc/_build|\.ipynb_checkpoints/*)/"'
lint = {shell="pylint -rn --rcfile=pylintrc --jobs=$(nproc) src doc tests plugins --exit-zero"}
validate_code = {composite = ["black_check", "lint"]}
[tool.pdm.resolution]
excludes = ["fluidfft-fftw", "fluidfft-mpi_with_fftw", "fluidfft-fftwmpi", "fluidfft-pfft", "fluidfft-p3dfft"]
[tool.pdm.options]
lock = ["-G", "pyfftw", "-G", "dask", "-G", "mpi"]
sync = ["--no-isolation"]
install = ["--no-isolation"]
[tool.coverage.run]
source = [
"./src/fluidfft",
"./plugins/fluidfft-fftw",
"./plugins/fluidfft-fftwmpi",
"./plugins/fluidfft-mpi_with_fftw",
]
data_file = ".coverage/coverage"
omit = [
"*/try_*.py",
"*/_old_*.py",
"**/__pythran__/*.py",
"**/__python__/*.py",
"**/__numba__/*.py",
"src/fluidfft/fft2d/fake_mod_fft2d_for_doc.py",
"src/fluidfft/fft3d/fake_mod_fft3d_for_doc.py",
]
plugins = ["Cython.Coverage"]
[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.black]
line-length = 82