-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (89 loc) · 2.61 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (89 loc) · 2.61 KB
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
[build-system]
requires = ["setuptools>=68,<77", "wheel", "Cython>=3.0"]
build-backend = "setuptools.build_meta"
[project]
name = "mechatree"
version = "0.1.0a1"
description = "Mechanical simulation of tree growth in response to wind and light."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "GPL-3.0-or-later" }
authors = [
{ name = "Christophe Eloy", email = "christopheloy@gmail.com" },
]
keywords = ["tree", "biomechanics", "growth", "simulation", "allometry", "wind"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"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",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"numpy>=1.26",
"plotly>=5.20",
"kaleido>=1.0", # plotly.write_image static PNG/SVG export
"pyyaml>=6.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8",
"ruff>=0.6",
"pre-commit>=3.7",
"sympy>=1.12",
]
docs = [
"sphinx>=7",
"furo>=2024.1",
"sphinx-copybutton>=0.5",
]
notebooks = [
"jupyter>=1.0",
"ipykernel>=6.29",
"nbstripout>=0.7",
]
# Closed-form genome expressions (Step 15). Enables
# ``mechatree.sympy_genome`` and the ``str`` form of YAML ``genome.safety``
# / ``genome.p_seeds`` / etc.
sympy = [
"sympy>=1.12",
]
[project.urls]
Homepage = "https://github.com/celoy/MechaTree"
Paper = "https://doi.org/10.1038/s41467-017-00995-6"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
mechatree = ["py.typed"]
"mechatree._core" = ["*.pxd", "*.pyx", "*.h"]
# Cython/C++ extension modules are declared in setup.py (cythonize requires a
# real Python entry point, not TOML). See setup.py at the repo root.
[tool.ruff]
line-length = 100
target-version = "py310"
extend-exclude = ["legacy"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.ruff.format]
docstring-code-format = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
markers = [
"slow: large-tree or long-running tests (opt in with `-m slow`)",
]
[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-* cp313-*"
skip = "pp* *-musllinux_* *_i686 *-win32"
test-requires = ["pytest"]
test-command = "pytest {project}/tests -m \"not slow\""
build-verbosity = 1
[tool.cibuildwheel.linux]
archs = ["x86_64"]