-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
95 lines (86 loc) · 3 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
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "fluidsimfoam"
version = "0.0.7"
description = "Python framework for OpenFOAM"
authors = [
{name = "Pierre Augier", email = "[email protected]"},
]
dependencies = [
"fluidsim-core<1.0.0,>=0.7.3",
"inflection<1.0.0,>=0.5.1",
"fluiddyn<1.0.0,>=0.5.2",
"ipython<9.0.0,>=8.14.0",
"pandas<2.0.0,>=1.5.3",
"jinja2<4.0.0,>=3.1.2",
"lark<2.0.0,>=1.1.5",
"rich<14.0.0,>=13.3.3",
"invoke<3.0.0,>=2.0.0",
"pickleshare>=0.7.5",
]
requires-python = ">=3.9,<4.0"
readme = "README.md"
license = {text = "BSD-3-Clause"}
[project.optional-dependencies]
# incompatibility between PySide6 6.5.1 and Debian 11 (Bullseye)
qt = ["PySide6==6.5.0; python_version < \"3.12\" and python_version >= \"3.9\""]
jupyter = ["jupyterlab<4.0.0,>=3.6.3", "jupyterlab-myst<2.0.0,>=1.1.3", "jupytext<2.0.0,>=1.14.5", "mdformat-myst<1.0.0,>=0.1.4"]
pyvista = ["pyvista<1.0.0,>=0.39.1"]
[project.scripts]
fluidsimfoam-info = "fluidsimfoam.util.console:print_versions"
fluidsimfoam-ipy-load = "fluidsimfoam.util.console:start_ipython_load_sim"
fluidsimfoam-initiate-solver = "fluidsimfoam.util.console:initiate_solver"
[tool.pdm]
[tool.pdm.dev-dependencies]
solvers = [
"-e fluidsimfoam-tgv @ file:///${PROJECT_ROOT}/doc/examples/fluidsimfoam-tgv",
"-e fluidsimfoam-cbox @ file:///${PROJECT_ROOT}/doc/examples/fluidsimfoam-cbox",
"-e fluidsimfoam-sed @ file:///${PROJECT_ROOT}/doc/examples/fluidsimfoam-sed",
"-e fluidsimfoam-cavity @ file:///${PROJECT_ROOT}/doc/examples/fluidsimfoam-cavity",
"-e fluidsimfoam-phill @ file:///${PROJECT_ROOT}/doc/examples/fluidsimfoam-phill",
"-e fluidsimfoam-dam @ file:///${PROJECT_ROOT}/doc/examples/fluidsimfoam-dam",
"-e fluidsimfoam-multi-region-snappy @ file:///${PROJECT_ROOT}/doc/examples/fluidsimfoam-multi-region-snappy",
]
test = [
"pytest<8.0.0,>=7.2.1",
"pytest-mock<4.0.0,>=3.10.0",
"pytest-cov<5.0.0,>=4.0.0",
"pip",
# "fluidsimfoam[solvers]"
]
dev = [
"black<24.0.0,>=23.1.0",
"flake8<7.0.0,>=6.0.0",
"isort<6.0.0,>=5.12.0",
"ipdb<1.0.0,>=0.13.13",
]
doc = [
"myst-nb<1.0.0,>=0.17.1",
"sphinx-inline-tabs<2023.0.0,>=2022.1.2b11",
"sphinx-copybutton<1.0.0,>=0.5.1",
"pydata-sphinx-theme<1.0.0,>=0.13.1",
"sphinx-togglebutton<1.0.0,>=0.3.2",
"pyvista<1.0.0,>=0.39.1",
# "fluidsimfoam[solvers]",
]
[tool.pdm.scripts]
cov = "pytest tests doc/examples/ --cov --cov-report term --cov-report html"
cov-xml = "pytest tests doc/examples --cov --cov-report term --cov-report xml"
black = "black -l 82 src tests doc dev"
isort = "isort src tests doc dev"
format = {composite = ["black", "isort"]}
[tool.isort]
known_first_party = ["fluiddyn", "fluidsim_core", "fluidsimfoam"]
# multi_line_output = 3
profile = "black"
line_length = 82
[tool.coverage.report]
exclude_lines = [
"raise AssertionError",
"raise NotImplementedError",
"raise RuntimeError",
"raise ValueError",
"except ImportError",
]