Skip to content

Commit 21d813f

Browse files
✨ Prepare release 0.7.0 (#171)
* update workflow before publishing python package fix dependency issue and bump version point to website in project description fix broken dependency improve doc add github token to download artifacts ensure only read-access @wvangeit yet another attempt at downloading artifacts make sure to use repo that ran the trigger wf another attempt at fixing change owner allow publishing to testpypi also when pr minor change revert minor (but breaking) change minor fix add debug messages another debug message hopefully the final version final fix minor fix move master and tag to individual jobs add debug messages add python script for determining semantic version minor changes minor changes improve error handling and add version file to artifacts check if release minor fix ensure to enter venv also when tagging source venv in publishin workflow ensure only master add script for testing 'pure' semver adapt workflows to new python script minor change attempt to evaluate expressions correctly several fixes to fix tests ensure repo is checked out in publish workflow several small fixes cleanup debug minor cleanup mionr changes add debug message minor change minor change yet another try minor change minor change minor change mionr change minor changes correct workflow run id cosmetic change avoid using gh change to a single job for publishing minor cleanup swap loops in clean up jobs correction get correct versions of github workflow files update a couple of other files update a few more tests update yet another file yet another file * retire previously deprecated python versions * improve deprecation comment * consistency check
1 parent 6729cef commit 21d813f

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)