Skip to content

Commit f26c024

Browse files
committed
chore: read package version dynamically from the package __init__.py
1 parent 49429d6 commit f26c024

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "khisto"
3-
version = "0.1.0"
3+
dynamic = ["version]"
44
description = "Optimal histogram visualization using the Khiops algorithm"
55
readme = "README.md"
66
license = "BSD-3-Clause-Clear"
@@ -92,6 +92,10 @@ ninja.make-fallback = false
9292
build.targets = ["khisto"] # Build only khisto
9393
install.components = ["KHISTO"] # Only install KHISTO component in wheel
9494

95+
[tool.scikit-build.metadata.version]
96+
provider = "scikit_build_core.metadata.regex"
97+
input = "src/khisto/__init__.py"
98+
9599
[tool.cibuildwheel]
96100
build = "cp310-*"
97101
skip = "*musllinux*" # Khiops does not compile when using musl as the C standard library

0 commit comments

Comments
 (0)