-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
61 lines (51 loc) · 1.6 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
[build-system]
requires = ["scikit-build-core==0.10.5", "nanobind==2.2.0"]
build-backend = "scikit_build_core.build"
[project]
name = "geodepot_api"
version = "1.0.4"
description = "geodepot API"
readme = "geodepot-py/README.md"
authors = [
{name = "Balázs Dukai", email = "[email protected]"}
]
requires-python = ">=3.12"
classifiers = ["Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
]
[project.optional-dependencies]
dev = ["pytest", "cibuildwheel", "ruff"]
[tool.scikit-build]
wheel.expand-macos-universal-tags = true
wheel.packages = ["geodepot-py/src/geodepot_api"]
build.verbose = true
logging.level = "INFO"
# Build stable ABI wheels for CPython 3.12+
wheel.py-api = "cp312"
# Setuptools-style build caching in a local directory
build-dir = "build/{wheel_tag}"
[tool.scikit-build.cmake.define]
GD_BUILD_TESTING = "OFF"
GD_BUILD_APPS = "OFF"
GD_BUILD_BINDINGS = "ON"
[tool.pytest.ini_options]
minversion = "8.0"
addopts = ["--import-mode=importlib", "-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = ["error",
"ignore::pytest.PytestCacheWarning",
]
testpaths = ["geodepot-py/tests"]
[tool.cibuildwheel]
build-frontend = "build[uv]"
test-command = "pytest geodepot-py/tests"
test-extras = ["dev"]
[tool.cibuildwheel.pyodide]
environment.CFLAGS = "-fexceptions"
environment.LDFLAGS = "-fexceptions"
build-frontend = { name = "build", args = ["--exports", "whole_archive"] }
[tool.ruff]
src = ["geodepot-py/src"]