-
Notifications
You must be signed in to change notification settings - Fork 166
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (76 loc) · 2.22 KB
/
pyproject.toml
File metadata and controls
89 lines (76 loc) · 2.22 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
[build-system]
requires = ["scikit-build-core[pyproject] >=0.4.3", "nanobind"]
build-backend = "scikit_build_core.build"
[project]
name = "sundials4py"
version = "7.7.0"
description = "Official Python bindings for the SUNDIALS suite of nonlinear and differential/algebraic equation solvers."
authors = [
]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Mathematics"
]
dependencies = [
"nanobind >= 2.9.2",
"numpy >= 2.0.0",
]
[project.optional-dependencies]
dev = [
"black",
"isort",
"pytest",
"pytest-random-order",
"pyyaml",
]
[project.urls]
Homepage = "https://computing.llnl.gov/projects/sundials"
Documentation = "https://sundials.readthedocs.io/"
Source = "https://github.com/LLNL/sundials"
[tool.scikit-build]
# Protect the configuration against future changes in scikit-build-core
minimum-version = "0.4"
# Setuptools-style build caching in a local directory
build-dir = "build/{wheel_tag}"
# Build stable ABI wheels for CPython 3.12+
wheel.py-api = "cp312"
cmake.args = [
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DBUILD_CVODE:BOOL=OFF",
"-DBUILD_IDA:BOOL=OFF",
"-DEXAMPLES_ENABLE_C:BOOL=OFF",
"-DEXAMPLES_ENABLE_CXX:BOOL=OFF",
"-DSUNDIALS_ENABLE_PYTHON:BOOL=ON"
]
cmake.build-type = "RelWithDebInfo"
[tool.pytest.ini_options]
python_files = ["*.py"]
addopts = [
"--import-mode=importlib"
]
pythonpath = [
"bindings/sundials4py", "bindings/sundials4py/test"
]
testpaths = [
"bindings/sundials4py/test",
"examples/python"
]
[tool.cibuildwheel]
# Necessary to see build output from the actual compilation
build-verbosity = 1
# Optional: run pytest to ensure that the package was correctly built
test-command = "pytest --random-order bindings/sundials4py/test"
test-requires = "pytest"
# Needed for full C++17 support on macOS
[tool.cibuildwheel.macos.environment]
MACOSX_DEPLOYMENT_TARGET = "10.15"
[tool.black]
line-length = 99
skip_magic_trailing_comma = true