Skip to content

Commit cca0a24

Browse files
authored
Merge pull request #414 from validmind/release/2.10.0-rc.1
Cutting an RC for Dependency Work
2 parents 4c4b532 + f733045 commit cca0a24

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/pypi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Set up Python 3.11
2424
uses: actions/setup-python@v5
2525
with:
26-
python-version: "3.11"
27-
cache: "poetry"
26+
python-version: '3.11'
27+
cache: 'poetry'
2828

2929
- name: Install Dependencies
3030
run: poetry env use python3.11 && poetry install

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "validmind"
3-
version = "2.9.5"
3+
version = "2.10.0"
44
description = "ValidMind Library"
55
readme = "README.pypi.md"
66
requires-python = ">=3.9,<3.13"

validmind/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.9.5"
1+
__version__ = "2.10.0"

validmind/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from IPython.display import display as ipy_display
2727
from matplotlib.axes._axes import _log as matplotlib_axes_logger
2828
from numpy import ndarray
29+
from packaging.version import Version
2930
from sklearn.exceptions import UndefinedMetricWarning
3031
from tabulate import tabulate
3132

@@ -73,7 +74,9 @@ def parse_version(version: str) -> tuple[int, ...]:
7374
Returns:
7475
tuple[int, ...]: A tuple of major, minor, patch integers.
7576
"""
76-
return tuple(int(x) for x in version.split(".")[:3])
77+
v = Version(version)
78+
79+
return (v.major, v.minor, v.micro)
7780

7881

7982
def is_notebook() -> bool:

0 commit comments

Comments
 (0)