File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
clients/python/client/osparc Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 45
45
from ._studies_api import StudiesApi
46
46
from ._utils import dev_features_enabled
47
47
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
50
51
51
- if Version (python_version ()) < _PYTHON_VERSION_DEPRECATED :
52
+ if Version (python_version ()) < _PYTHON_VERSION_RETIRED :
52
53
error_msg : str = (
53
54
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 } ."
55
56
)
56
57
raise RuntimeError (error_msg )
57
58
58
- if Version (python_version ()) < _PYTHON_VERSION_SUPPORTED :
59
+ if Version (python_version ()) < _PYTHON_VERSION_DEPRECATED :
59
60
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 } ."
64
64
)
65
65
warnings .warn (warning_msg , VisibleDeprecationWarning )
66
66
You can’t perform that action at this time.
0 commit comments