Skip to content

Commit

Permalink
v1.0.7 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle authored Oct 8, 2024
1 parent fdf2bc8 commit 11b291f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion src/antares/study/version/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
4 changes: 2 additions & 2 deletions src/antares/study/version/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion src/antares/study/version/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .study_version import SolverVersion, StudyVersion # noqa: F401
from .study_version import SolverVersion, StudyVersion, SolverMinorVersion # noqa: F401
8 changes: 8 additions & 0 deletions src/antares/study/version/model/study_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 11b291f

Please sign in to comment.