diff --git a/requirements/testing.txt b/requirements/testing.txt index 01a1b35f..7e284dc0 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -2,4 +2,4 @@ # -------------------- pytest-cov>=4.1 -semver>=2.13,<2.14 +packaging>=23 diff --git a/tests/unit/test_plg_metadata.py b/tests/unit/test_plg_metadata.py index 7a4c9398..4ba115cc 100644 --- a/tests/unit/test_plg_metadata.py +++ b/tests/unit/test_plg_metadata.py @@ -15,7 +15,7 @@ from pathlib import Path # 3rd party -from semver import VersionInfo +from packaging.version import parse # project from qtribu import __about__ @@ -72,7 +72,7 @@ def test_metadata_types(self): def test_version_semver(self): """Test if version comply with semantic versioning.""" - self.assertTrue(VersionInfo.isvalid(__about__.__version__)) + self.assertTrue(parse(__about__.__version__)) # ############################################################################