/
pyproject.toml
125 lines (105 loc) · 2.98 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "transonic"
version = "0.6.4"
description = "Make your Python code fly at transonic speeds!"
authors = [
{ name = "Pierre Augier", email = "pierre.augier@univ-grenoble-alpes.fr" },
]
dependencies = ["autopep8", "beniget ~=0.4.0", "gast ~=0.5.0", "numpy"]
requires-python = ">= 3.9"
readme = "README.md"
license = { text = "BSD License" }
keywords = ["pythran"]
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[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",
"-e transonic_testing @ file:///${PROJECT_ROOT}/_transonic_testing",
]
test = ["cython", "mpi4py", "pythran", "numba"]
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.pytest]
addopts = "--doctest-modules"
# [tool.pytest.ini_options]
# addopts = "--cov --cov-config=pyproject.toml --no-cov-on-fail"
[tool.black]
line-length = 82
target-version = ['py38']
[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"