-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
70 lines (60 loc) · 1.9 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
62
63
64
65
66
67
68
69
70
[build-system]
requires = ["scikit-build-core", "nanobind"]
build-backend = "scikit_build_core.build"
[project]
name = "my-package"
description = "My awesome package"
readme = "README.md"
requires-python = ">=3.9"
keywords = ["one", "two"]
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 1 - Planning",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = []
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/username/my_package"
[project.optional-dependencies]
dev = ["pre-commit", "ruff", "my_package[tests]", "my_package[docs]"]
tests = ["pytest"]
docs = [
"sphinx",
"breathe",
"exhale>=0.3.7",
"nanobind-stubgen",
"pydata-sphinx-theme",
"rstcheck[sphinx]",
"sphinx-copybutton",
"sphinx-design",
"sphinxcontrib-towncrier",
"sphinx-autoapi>=3.0.0",
"tomli;python_version<'3.11'",
]
[tool.setuptools_scm]
write_to = "src/my_package/_version.py"
[tool.scikit-build]
# Protect the configuration against future changes in scikit-build-core
minimum-version = "0.4"
cmake.verbose = true
logging.level = "INFO"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/my_package/_version.py"]
# Setuptools-style build caching in a local directory
build-dir = "build/{wheel_tag}"
[tool.cibuildwheel]
# Necessary to see build output from the actual compilation
build-verbosity = 1
# Run pytest to ensure that the package was correctly built
test-command = "pytest {project}/tests"
test-requires = "pytest"
# Needed for full C++17 support
[tool.cibuildwheel.macos.environment]
MACOSX_DEPLOYMENT_TARGET = "10.14"