Skip to content

Commit

Permalink
Set current Kart to 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
olsen232 committed Dec 5, 2023
1 parent f0a3952 commit ce6525a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

env:
QGIS_TEST_VERSION: ${{ matrix.qgis_version }}
KART_VERSION: "0.14.2"
KART_VERSION: "0.15.0"

steps:
- name: Checkout
Expand Down
14 changes: 6 additions & 8 deletions kart/kartapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


MINIMUM_SUPPORTED_VERSION = "0.14.0"
CURRENT_VERSION = "0.14.2"
CURRENT_VERSION = "0.15.0"


class KartException(Exception):
Expand Down Expand Up @@ -104,8 +104,9 @@ def kartExecutable() -> str:

def checkKartInstalled(showMessage=True, useCache=True):
version = installedVersion(useCache)
supported_major, supported_minor, supported_patch = \
MINIMUM_SUPPORTED_VERSION.split(".")
supported_version_tuple = tuple(
int(p) for p in MINIMUM_SUPPORTED_VERSION.split(".")[:3]
)
msg = ""
if version is None:
msg = (
Expand All @@ -116,11 +117,8 @@ def checkKartInstalled(showMessage=True, useCache=True):
"https://kartproject.org</a>.</p>"
)
else:
major, minor, patch = version.split(".")[:3]
versionOk = major == supported_major and (
(minor > supported_minor)
or (minor == supported_minor and patch >= supported_patch)
)
version_tuple = tuple(int(p) for p in version.split(".")[:3])
versionOk = version_tuple >= supported_version_tuple
if not versionOk:
msg = (
f"<p><b>The installed Kart version ({version}) is not"
Expand Down

0 comments on commit ce6525a

Please sign in to comment.