forked from wu-vincent/lanelet2x
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (81 loc) · 3.18 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (81 loc) · 3.18 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
[build-system]
requires = ["scikit-build-core"]
build-backend = "scikit_build_core.build"
[project]
name = "lanelet2x"
dynamic = ["version"]
authors = [
{ name = "Fabian Poggenhans", email = "fabian.poggenhans@kit.edu" },
{ name = "Fabian Immel", email = "fabian.immel@kit.edu" },
]
maintainers = [
{ name = "Vincent Wu", email = "zhengyu.wu21@imperial.ac.uk" }
]
description = "Your favorite map handling framework for automated driving, lanelet2, now standalone with native Apple Silicon (ARM64) macOS support."
readme = "README.md"
requires-python = ">=3.9"
keywords = ["python", "lanelet2"]
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
[project.optional-dependencies]
pytest = ["pytest"]
[tool.scikit-build]
build-dir = "build/{wheel_tag}"
cmake.args = ["-G Ninja", "--preset conan-release"]
cmake.define = { BUILD_TESTING = "OFF" }
cmake.build-type = "Release"
wheel.packages = ["lanelet2_python/src/lanelet2"]
wheel.license-files = ["LICENSE", "CODEOWNERS"]
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "conanfile.py"
[[tool.scikit-build.overrides]]
if.platform-system = "win32"
cmake.args = ["--preset conan-default"] # override for multi-configuration generator (i.e. MSVC) on Windows
[tool.cibuildwheel]
skip = ["*-win32", "*-musllinux_x86_64", "*_i686"]
test-requires = "pytest"
test-command = [
"pytest {project}/lanelet2_python/test",
"pytest {project}/lanelet2_examples/test"
]
[tool.cibuildwheel.windows]
before-build = [
"python -m pip install --upgrade pip",
"pip install -r requirements.txt",
"conan profile detect --force",
"conan install . --build=missing -o shared=True"
]
[tool.cibuildwheel.linux]
before-build = [
# Restore libpython*.a - essential for conan's boost::python to locate the Python library. Without this, the process fails.
# see https://github.com/pypa/manylinux/blob/main/docker/build_scripts/finalize-python.sh
"pushd /opt/_internal",
"tar -xJf static-libs-for-embedding-only.tar.xz",
"popd",
"python -m pip install --upgrade pip",
"pip install -r requirements.txt",
"conan profile detect --force",
# Force the building of all dependencies from source, as prebuilt b2 is incompatible on manylinux.
# Set the generator to use Ninja, as scikit-build-core defaults to Ninja for cmake generation.
"conan install . --build=* -o shared=True -c tools.cmake.cmaketoolchain:generator=Ninja"
]
[tool.cibuildwheel.macos]
before-build = [
"python -m pip install --upgrade pip",
"pip install -r requirements.txt",
"conan profile detect --force",
# Set the generator to use Ninja, as scikit-build-core defaults to Ninja for cmake generation.
"conan install . --build=missing -o shared=True -c tools.cmake.cmaketoolchain:generator=Ninja"
]