-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
149 lines (126 loc) · 3.65 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "transonic"
version = "0.7.3"
description = "Make your Python code fly at transonic speeds!"
authors = [
{ name = "Pierre Augier", email = "[email protected]" },
]
dependencies = ["autopep8", "beniget ~=0.4.2", "gast ~=0.6.0", "numpy"]
requires-python = ">= 3.10"
readme = "README.md"
license = { text = "BSD License" }
keywords = ["pythran"]
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Source = "https://foss.heptapod.net/fluiddyn/transonic"
Documentation = "https://transonic.readthedocs.io"
"Git Mirror" = "https://github.com/fluiddyn/transonic"
[project.optional-dependencies]
mpi = ["mpi4py"]
[project.scripts]
transonic = "transonic.run:run"
transonic-get-include = "transonic_cl.get_includes:main"
transonic-init-meson = "transonic_cl.init_meson:main"
transonic-clean-dir = "transonic_cl.clean_dir:main"
[tool.pdm]
distribution = true
package-dir = "src"
ignore_package_warnings = ["ipython"]
[tool.pdm.dev-dependencies]
base-test = [
"black",
"coverage[toml]",
"mpi4py",
"nbval ~=0.9.6",
"pytest",
"pytest-cov",
"pytest-venv",
"scipy",
# setuptools for transonic.dist
"setuptools",
"-e transonic_testing @ file:///${PROJECT_ROOT}/_transonic_testing",
]
test = [
"cython",
"mpi4py",
"pythran",
"numba",
"jax>=0.4.25",
"jaxlib>=0.4.25",
]
doc = [
"jupyterlab",
# "nbsphinx",
"myst-nb",
"numpydoc",
"recommonmark",
"sphinx-autobuild",
"sphinx<7",
"sphinx_rtd_theme",
# setuptools for transonic.dist
"setuptools",
"sphinx-copybutton",
]
dev = ["pip", "build", "pylint", "twine"]
[tool.pdm.scripts]
black = "black src _transonic_testing data_tests tests doc noxfile.py"
isort = "isort --atomic --tc src _transonic_testing tests doc noxfile.py"
black_check = "black --check src _transonic_testing data_tests tests doc noxfile.py"
lint = {shell="pylint -rn --rcfile=pylintrc --jobs=$(nproc) src --exit-zero"}
validate_code = {composite = ["black_check", "lint"]}
format = {composite = ["black", "isort"]}
[tool.pytest]
addopts = "--doctest-modules"
[tool.pytest.ini_options]
addopts = "--pdbcls=IPython.terminal.debugger:TerminalPdb"
[tool.black]
line-length = 82
target-version = ['py38']
[tool.isort]
profile = "black"
line_length = 82
src_paths = ["src", "_transonic_testing", "tests", "doc", "noxfile.py"]
known_first_party = ["pythran"]
[tool.coverage.run]
branch = true
source = ["./src/transonic", "./src/transonic_cl", "./tests"]
data_file = ".coverage/coverage"
omit = [
"*/try_*.py",
"*/_old_*.py",
"transonic/__pythran__/for_test_init.py",
"transonic/__cython__/for_test_init.py",
"transonic/__numba__/for_test_init.py",
]
parallel = true
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
show_missing = true
ignore_errors = true
[tool.coverage.html]
directory = ".coverage/html"
[tool.coverage.xml]
output = ".coverage/coverage.xml"