Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #19 from C-Accel-CRIPT/develop
Browse files Browse the repository at this point in the history
Hotfix release v0.4.5
  • Loading branch information
rjmello authored Aug 31, 2022
2 parents 8059fd0 + 6bcf1c7 commit 0aef65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cript/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.4
0.4.5
5 changes: 3 additions & 2 deletions src/cript/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from typing import Union
from getpass import getpass
from logging import getLogger
from packaging.version import Version
from distutils.version import StrictVersion

import requests
from beartype import beartype
from beartype.typing import Type
Expand Down Expand Up @@ -86,7 +87,7 @@ def __init__(self, host: str = None, token: str = None, tls: bool = True):
logger.info(f"Connection to {self.api_url} API was successful!")

# Warn user if an update is required
if Version(self.api_version) < Version(self.latest_api_version):
if StrictVersion(self.api_version) < StrictVersion(self.latest_api_version):
warnings.warn(response.json()["version_warning"], stacklevel=2)

def __repr__(self):
Expand Down

0 comments on commit 0aef65c

Please sign in to comment.