added regex pattern matching to version in toml file

This commit is contained in:
mazzol_a
2025-04-25 10:48:16 +02:00
parent c3f1d05033
commit 2815913d10
4 changed files with 16 additions and 13 deletions

View File

@ -1,10 +1,16 @@
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "VERSION"
regex = '^(?P<version>\d+(?:\.\d+)*(?:[\.\+\w]+)?)$'
result = "{version}"
[build-system]
requires = [ "scikit-build-core>=0.10", "pybind11", "numpy",]
build-backend = "scikit_build_core.build"
[project]
name = "slsdet"
version = "0.0.0"
dynamic = ["version"]
[tool.cibuildwheel]
before-all = "uname -a"