-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (66 loc) · 2.05 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (66 loc) · 2.05 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
[project]
name = "commonroad_cpp"
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.9,<3.14"
license = {file = "LICENSE"}
authors = [
{email = "sebastian.maierhofer@tum.de"},
{name = "Sebastian Maierhofer"}
]
description = "CommonRoad C++ Environment Model"
dependencies = [
"commonroad-io @ git+https://github.com/commonroad/commonroad-io@feature/new-format",
"scipy<1.15", # scipy>=1.15 dropped manylinux_2_17 wheels, causing source builds to fail in CI (missing OpenBLAS)
]
[project.optional-dependencies]
test = [
"numpy>=1.20.0",
"pytest>=5.3.2"
]
docs = [
"mkdocs~=1.6.1",
"mkdocs-material~=9.5.42",
"mkdoxy~=1.2.4"
]
[build-system]
requires = [
"scikit-build-core~=0.11.0",
"nanobind~=2.2.0",
"setuptools_scm[toml]~=8.0.3"
]
build-backend = "scikit_build_core.build"
[tool.setuptools_scm]
write_to = "src/python/crcpp/_version.py"
[tool.scikit-build]
minimum-version = "0.10"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/python/crcpp/_version.py"]
wheel.packages = ["src/python/crcpp"]
build-dir = "build-python/{build_type}-{wheel_tag}"
cmake.version = ">=3.24"
install.components = ["PythonModules"]
editable.rebuild = true
[tool.scikit-build.cmake.define]
ENV_MODEL_BUILD_PYTHON_BINDINGS = "ON"
[tool.sphinx-pyproject]
language = "en"
[tool.cibuildwheel]
skip = ["pp*", "*i686, *-musllinux*"]
archs = ["auto"]
environment = { PIP_DISABLE_PIP_VERSION_CHECK="1" } # Disable pip warning about newer versions being available
build-verbosity = 1
test-skip = ["pp*", "*i686, *-musllinux*"] # Skip tests on musllinux due to missing wheels
test-extras = ["test"]
test-command = "python -m pytest {package}/tests/python"
[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]
environment = {MACOSX_DEPLOYMENT_TARGET=10.15} # macOS 10.15 for directory_iterator and C++17 support (macOS 10.14)
[tool.ruff]
line-length = 120
indent-width = 4
format.quote-style = "double"
target-version = "py311"
lint.ignore = ["E203"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]