From f0dcb580592ac4308a9ad602537413501ec6e8ab Mon Sep 17 00:00:00 2001 From: Felipe Olmos <92923444+folmos-at-orange@users.noreply.github.com> Date: Fri, 26 Dec 2025 19:13:47 +0100 Subject: [PATCH 1/2] Fix "package not found" packaging bug --- docs/conf.py | 2 +- pyproject.toml | 1 + src/khalib/__init__.py | 15 +++++++++++++++ src/{khalib.py => khalib/main.py} | 0 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/khalib/__init__.py rename src/{khalib.py => khalib/main.py} (100%) diff --git a/docs/conf.py b/docs/conf.py index 7c3760c..46fd5ee 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,7 +38,7 @@ ## autodoc autodoc_default_options = { "members": True, - "inherited-members": False, + "inherited-members": True, "private-members": False, "show-inheritance": True, "special-members": False, diff --git a/pyproject.toml b/pyproject.toml index 5144e57..70b6d06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ changelog = "https://github.com/KhiopsLab/khalib/blob/main/CHANGELOG.md" [tool.setuptools.packages.find] where = ["src"] +include = ["khalib"] [tool.pytest.ini_options] markers = [ diff --git a/src/khalib/__init__.py b/src/khalib/__init__.py new file mode 100644 index 0000000..b7ef762 --- /dev/null +++ b/src/khalib/__init__.py @@ -0,0 +1,15 @@ +from .main import ( + Histogram, + KhalibClassifier, + build_reliability_diagram, + calibrate_binary, + calibration_error, +) + +__all__ = [ + "Histogram", + "KhalibClassifier", + "build_reliability_diagram", + "calibrate_binary", + "calibration_error", +] diff --git a/src/khalib.py b/src/khalib/main.py similarity index 100% rename from src/khalib.py rename to src/khalib/main.py From c7f5f77ceed24201d2a219bbe48e95ef9d2be976 Mon Sep 17 00:00:00 2001 From: Felipe Olmos <92923444+folmos-at-orange@users.noreply.github.com> Date: Fri, 26 Dec 2025 19:14:41 +0100 Subject: [PATCH 2/2] Update to version 0.3 --- CHANGELOG.md | 8 +++++++- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c178923..7bef1b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [0.3] - 2025-12-26 + +### Fixed +- `ModuleNotFound` packaging error. + ## [0.2] - 2025-12-26 ### Changed @@ -12,6 +17,7 @@ - `calibration_error` function - `build_reliability_diagram` function -[Unreleased]: https://github.com/yourusername/yourproject/compare/0.2...HEAD +[Unreleased]: https://github.com/yourusername/yourproject/compare/0.3...HEAD +[0.3]: https://github.com/yourusername/yourproject/compare/0.2...0.3 [0.2]: https://github.com/yourusername/yourproject/compare/0.1...0.2 [0.1]: https://github.com/yourusername/yourproject/releases/tag/0.1 diff --git a/pyproject.toml b/pyproject.toml index 70b6d06..eb15340 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "khalib" -version = "0.2" +version = "0.3" description = "Classifier Calibration with Khiops" authors = [{ name = "Felipe Olmos", email = "luisfelipe.olmosmarchant@orange.com" }] requires-python = ">=3.11"