Skip to content

Commit

Permalink
Merge pull request #680 from MiraGeoscience/DEVOPS-540
Browse files Browse the repository at this point in the history
DEVOPS-540: Add a test to verify conda and pyproject versions consis…
  • Loading branch information
domfournier authored Dec 17, 2024
2 parents b1c2cfd + dd72ce0 commit f473806
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/geoh5py_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import geoh5py


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 @@ -52,7 +52,10 @@ def get_conda_recipe_version():


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


def test_conda_version_is_pep440():
Expand Down

0 comments on commit f473806

Please sign in to comment.