Skip to content

Commit bbbaa9d

Browse files
committed
merge itis/master into master
2 parents a2fa30d + 21d813f commit bbbaa9d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

clients/python/client/osparc/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@
4545
from ._studies_api import StudiesApi
4646
from ._utils import dev_features_enabled
4747

48-
_PYTHON_VERSION_DEPRECATED = Version("3.6.0")
49-
_PYTHON_VERSION_SUPPORTED = Version("3.8.0")
48+
_PYTHON_VERSION_RETIRED = Version("3.8.0")
49+
_PYTHON_VERSION_DEPRECATED = Version("3.8.0")
50+
assert _PYTHON_VERSION_RETIRED <= _PYTHON_VERSION_DEPRECATED # nosec
5051

51-
if Version(python_version()) < _PYTHON_VERSION_DEPRECATED:
52+
if Version(python_version()) < _PYTHON_VERSION_RETIRED:
5253
error_msg: str = (
5354
f"Python version {python_version()} is retired for this version of osparc. "
54-
f"Please use Python version {_PYTHON_VERSION_SUPPORTED}."
55+
f"Please use Python version {_PYTHON_VERSION_DEPRECATED}."
5556
)
5657
raise RuntimeError(error_msg)
5758

58-
if Version(python_version()) < _PYTHON_VERSION_SUPPORTED:
59+
if Version(python_version()) < _PYTHON_VERSION_DEPRECATED:
5960
warning_msg: str = (
60-
"This is the final version of osparc which "
61-
f"will support Python {python_version()}. "
62-
"Future versions of osparc will only support "
63-
f"Python version >= {_PYTHON_VERSION_SUPPORTED}."
61+
f"Python {python_version()} is deprecated. "
62+
"Please upgrade to "
63+
f"Python version >= {_PYTHON_VERSION_DEPRECATED}."
6464
)
6565
warnings.warn(warning_msg, VisibleDeprecationWarning)
6666

0 commit comments

Comments
 (0)