From 415bc65f4b8db8e97b99af8166f2fdbd8a35e838 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 11 Jul 2023 16:19:05 +0200 Subject: [PATCH] fix strictversions --- ereuse_devicehub/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ereuse_devicehub/config.py b/ereuse_devicehub/config.py index 185f1fa5..21de30da 100644 --- a/ereuse_devicehub/config.py +++ b/ereuse_devicehub/config.py @@ -1,4 +1,4 @@ -from distutils.version import StrictVersion +from distutils.version import LooseVersion from itertools import chain from decouple import config @@ -59,7 +59,7 @@ class DevicehubConfig(Config): SCHEMA = config('SCHEMA', 'dbtest') HOST = config('HOST', 'localhost') API_HOST = config('API_HOST', 'localhost') - MIN_WORKBENCH = StrictVersion('11.0a1') # type: StrictVersion + MIN_WORKBENCH = LooseVersion('11.0a1') """The minimum version of ereuse.org workbench that this devicehub accepts. we recommend not changing this value. """ @@ -75,7 +75,7 @@ class DevicehubConfig(Config): API_DOC_CLASS_DISCRIMINATOR = 'type' PRICE_SOFTWARE = PriceSoftware.Ereuse - PRICE_VERSION = StrictVersion('1.0') + PRICE_VERSION = LooseVersion('1.0') PRICE_CURRENCY = Currency.EUR """Official versions."""