Skip to content

Commit

Permalink
Merge pull request #73 from MiraGeoscience/DEVOPS-540
Browse files Browse the repository at this point in the history
DEVOPS-540: Verify python version consistency
  • Loading branch information
domfournier authored Dec 17, 2024
2 parents 05246b4 + 8c2d069 commit 13b6b6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/version_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import param_sweeps


def get_version():
def get_pyproject_version():
path = Path(__file__).resolve().parents[1] / "pyproject.toml"

with open(str(path), encoding="utf-8") as file:
Expand All @@ -42,7 +42,10 @@ def get_conda_recipe_version():


def test_version_is_consistent():
assert param_sweeps.__version__ == get_version()
assert param_sweeps.__version__ == get_pyproject_version()
normalized_conda_version = Version(get_conda_recipe_version())
normalized_version = Version(param_sweeps.__version__)
assert normalized_conda_version == normalized_version


def test_conda_version_is_pep440():
Expand Down

0 comments on commit 13b6b6b

Please sign in to comment.