Skip to content

Commit f4ad989

Browse files
committed
fix: add version in static in the pyproject.toml
1 parent a4e1372 commit f4ad989

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "khisto"
3-
dynamic = ["version"]
3+
version = "0.2.0"
44
description = "Optimal histogram visualization using the Khiops algorithm"
55
readme = "README.md"
66
license = "BSD-3-Clause-Clear"

src/khisto/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# This software is distributed under the BSD 3-Clause-clear License, the text of which is available
33
# at https://spdx.org/licenses/BSD-3-Clause-Clear.html or see the "LICENSE" file for more details.
44

5+
import logging
56
import os
7+
from importlib.metadata import version
68
from pathlib import Path
7-
import logging
89

910
logging.basicConfig(level=logging.INFO)
1011
logger = logging.getLogger(__name__)
@@ -13,7 +14,7 @@
1314

1415
KHISTO_BIN_DIR = os.environ.get("KHISTO_BIN_DIR", "khisto")
1516

16-
__version__ = "0.2.0"
17+
__version__ = version("khisto")
1718

1819
from .array import histogram # noqa: E402
1920
from .core import HistogramResult # noqa: E402

0 commit comments

Comments
 (0)