From 11b291f368b6482c90dd257026ec3cbbe853a71a Mon Sep 17 00:00:00 2001 From: MartinBelthle Date: Tue, 8 Oct 2024 15:05:56 +0200 Subject: [PATCH] v1.0.7 (#19) --- docs/CHANGELOG.md | 5 +++++ src/antares/study/version/__about__.py | 2 +- src/antares/study/version/__init__.py | 4 ++-- src/antares/study/version/model/__init__.py | 2 +- src/antares/study/version/model/study_version.py | 8 ++++++++ 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f2d036d..794a98c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,11 @@ Changelog ========= +v1.0.7 (2024-10-08) +------------------- + +- introduce a new class `SolverMinorVersion` for antares-launcher. + v1.0.6 (2024-09-25) ------------------- diff --git a/src/antares/study/version/__about__.py b/src/antares/study/version/__about__.py index e5ffec4..f474af4 100644 --- a/src/antares/study/version/__about__.py +++ b/src/antares/study/version/__about__.py @@ -4,7 +4,7 @@ # Standard project metadata -__version__ = "1.0.6" +__version__ = "1.0.7" __author__ = "RTE, Antares Web Team" __date__ = "2024-07-06" __credits__ = "© Réseau de Transport de l’Électricité (RTE)" diff --git a/src/antares/study/version/__init__.py b/src/antares/study/version/__init__.py index 27e7626..059dbb7 100644 --- a/src/antares/study/version/__init__.py +++ b/src/antares/study/version/__init__.py @@ -3,6 +3,6 @@ """ from .converters import version_to_triplet # noqa: F401 -from .model import SolverVersion, StudyVersion # noqa: F401 +from .model import SolverVersion, StudyVersion, SolverMinorVersion # noqa: F401 -__all__ = ("SolverVersion", "StudyVersion") +__all__ = ("SolverVersion", "StudyVersion", "SolverMinorVersion") diff --git a/src/antares/study/version/model/__init__.py b/src/antares/study/version/model/__init__.py index 458bb9e..9779493 100644 --- a/src/antares/study/version/model/__init__.py +++ b/src/antares/study/version/model/__init__.py @@ -1 +1 @@ -from .study_version import SolverVersion, StudyVersion # noqa: F401 +from .study_version import SolverVersion, StudyVersion, SolverMinorVersion # noqa: F401 diff --git a/src/antares/study/version/model/study_version.py b/src/antares/study/version/model/study_version.py index 7407f2d..df19e9a 100644 --- a/src/antares/study/version/model/study_version.py +++ b/src/antares/study/version/model/study_version.py @@ -143,3 +143,11 @@ def __init__(self, major: t.Union[str, int], minor: t.Union[str, int] = 0, _igno except ValueError: msg = f"Invalid parameters: {(major, minor)!r}: you should use `parse` method instead." raise ValueError(msg) from None + + +class SolverMinorVersion(SolverVersion): + """ + Represents a SolverVersion but when we don't want to take the `patch` into account. Used inside antares-launcher. + """ + + pass