Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (98 loc) · 3.94 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (98 loc) · 3.94 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[build-system]
requires = ["scikit-build-core"]
build-backend = "scikit_build_core.build"
[project]
name = "pyacts"
dynamic = ["version", "readme"]
description = "Python bindings for ACTS, an experiment-independent toolkit for charged particle track reconstruction"
authors = [{ name = "ACTS Project" }]
keywords = [
"tracking",
"track reconstruction",
"particle physics",
"high energy physics",
"HEP",
]
# No Python version classifiers: supported versions are derived from
# requires-python, see CI/supported_python_versions.py
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Physics",
]
# Single source of truth for the Python versions Acts supports. Drives the
# cibuildwheel target matrix (see CI/supported_python_versions.py).
requires-python = ">=3.11"
license = "MPL-2.0"
license-files = ["LICENSE"]
[project.urls]
Homepage = "https://acts-project.github.io"
Documentation = "https://acts-project.github.io/group__python__bindings.html"
Repository = "https://github.com/acts-project/acts"
Issues = "https://github.com/acts-project/acts/issues"
Changelog = "https://github.com/acts-project/acts/releases"
Citation = "https://doi.org/10.5281/zenodo.5141418"
Chat = "https://mattermost.web.cern.ch/acts/"
[tool.scikit-build]
wheel.packages = [] # Manage installation with cmake
wheel.exclude = ["**.a", "**.sh", "**.cmake", "**.hpp"]
build-dir = "build/{wheel_tag}"
build.verbose = true
cmake.args = ["--preset=python-wheel"]
logging.level = "DEBUG"
metadata.readme.provider = "scikit_build_core.metadata.fancy_pypi_readme"
# Get version from file dynamically
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "./version_number"
regex = "^([0-9]+).([0-9]+).([0-9]+)$"
result = "{0}.{1}.{2}"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
text = """
[](https://github.com/acts-project/acts)
"""
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
end-before = "## Quick start"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "docs/groups/python/index.md"
start-at = "# Installation"
end-before = "@snippet"
# Resolve the Doxygen snippet of the "Getting started" section
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
text = "```python\n"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "docs/examples/test_python_getting_started.py"
start-after = "#! [First Python run]\n"
end-before = " #! [First Python run]"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
text = "```\n"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "docs/groups/python/index.md"
start-after = "First Python run\n"
# Drop development-status badges that are not relevant for PyPI users
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = '\[!\[(?:Coverage|Status|Metrics)\]\([^\n]*\n'
replacement = ""
# Adapt the docs section: nest it below the README title and replace GitHub
# alerts, which PyPI renders literally
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = '(?m)^# (Installation|Getting started)$'
replacement = '## \1'
# Dedent the snippet, which is nested in a test function
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = '(?m)^ '
replacement = ""
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = '> \[!warning\]'
replacement = "> **Warning**"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = '> \[!note\]'
replacement = "> **Note**"