Skip to content

Commit

Permalink
Merge pull request #333 from QGIS-Contribution/dependencies/replace-s…
Browse files Browse the repository at this point in the history
…emver-with-packaging

chore(deps): replace semver with packaging
  • Loading branch information
Guts authored May 13, 2024
2 parents 4f651e8 + 0fda386 commit fcbcba2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Testing dependencies
# --------------------

pytest-cov>=3,<5.1
pytest-qgis>=1.3,<2.1
semver>=2.13,<2.14
pytest-cov>=4
pytest-qgis>=2,<2.1
packaging>=23
4 changes: 2 additions & 2 deletions tests/unit/test_plg_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from pathlib import Path

# 3rd party
from semver import VersionInfo
from packaging.version import parse

# project
from qgis_resource_sharing import __about__
Expand Down Expand Up @@ -106,7 +106,7 @@ def test_required_metadata(self):

def test_version_semver(self):
"""Test if version comply with semantic versioning."""
self.assertTrue(VersionInfo.isvalid(__about__.__version__))
self.assertTrue(parse(__about__.__version__))


# ############################################################################
Expand Down

0 comments on commit fcbcba2

Please sign in to comment.