Skip to content

Commit

Permalink
Merge pull request #336 from QGIS-Contribution/packaging/set-max-qgis…
Browse files Browse the repository at this point in the history
…-version

update(packaging): set QGIS maximum version
  • Loading branch information
Guts authored May 13, 2024
2 parents 132d7d0 + 4bcc026 commit 15086cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qgis_resource_sharing/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tracker=https://github.com/QGIS-Contribution/QGIS-ResourceSharing/issues/
# versioning
version=1.1.0-beta1
qgisMinimumVersion=3.22
qgisMaximumVersion=3.99
qgisMaximumVersion=3.34.5
experimental=True
deprecated=False
changelog=
10 changes: 7 additions & 3 deletions tests/unit/test_plg_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def test_metadata_types(self):
# misc
self.assertLessEqual(len(__about__.__title_clean__), len(__about__.__title__))

# QGIS versions
# QGIS versions
self.assertIsInstance(
__about__.__plugin_md__.get("general").get("qgisminimumversion"), str
Expand All @@ -66,10 +67,13 @@ def test_metadata_types(self):
__about__.__plugin_md__.get("general").get("qgismaximumversion"), str
)

self.assertLessEqual(
float(__about__.__plugin_md__.get("general").get("qgisminimumversion")),
float(__about__.__plugin_md__.get("general").get("qgismaximumversion")),
min_version_parsed = parse(
__about__.__plugin_md__.get("general").get("qgisminimumversion")
)
max_version_parsed = parse(
__about__.__plugin_md__.get("general").get("qgismaximumversion")
)
self.assertLessEqual(min_version_parsed, max_version_parsed)

def test_required_metadata(self):
"""Test that the plugin __init__ will validate on plugins.qgis.org."""
Expand Down

0 comments on commit 15086cb

Please sign in to comment.