Skip to content

Commit 06bc1fb

Browse files
committed
chore: read package version dynamically from the package __init__.py
1 parent 243a44e commit 06bc1fb

2 files changed

Lines changed: 6 additions & 2 deletions

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.2.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

src/khisto/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
KHISTO_BIN_DIR = os.environ.get("KHISTO_BIN_DIR", "khisto")
1515

16-
__version__ = "0.1.0"
16+
__version__ = "0.2.0"
1717

1818
from .array import histogram # noqa: E402
1919
from .core import HistogramResult # noqa: E402

0 commit comments

Comments
 (0)