Skip to content

Upgrade Python from 3.9 to 3.10 and migrate deprecated APIs #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down
68 changes: 34 additions & 34 deletions .github/workflows/ci-testing-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -356,7 +356,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -398,7 +398,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -445,7 +445,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -484,7 +484,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -526,7 +526,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -571,7 +571,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -619,7 +619,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -714,7 +714,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -762,7 +762,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -807,7 +807,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -851,7 +851,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -905,7 +905,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1030,7 +1030,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1075,7 +1075,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1120,7 +1120,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1162,7 +1162,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1204,7 +1204,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1246,7 +1246,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1288,7 +1288,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1374,7 +1374,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1432,7 +1432,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1492,7 +1492,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1552,7 +1552,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1615,7 +1615,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1690,7 +1690,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1773,7 +1773,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1830,7 +1830,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -1894,7 +1894,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
node: [14]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
Expand Down Expand Up @@ -1971,7 +1971,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down Expand Up @@ -2033,7 +2033,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9"]
python: ["3.10"]
os: [ubuntu-22.04]
docker_buildx: [v0.10.4]
docker_compose: [1.29.1]
Expand Down
2 changes: 1 addition & 1 deletion packages/dask-task-models-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
version=Path(CURRENT_DIR / "VERSION").read_text().strip(),
author="Sylvain Anderegg (sanderegg)",
description="Core service library for simcore pydantic dask task models",
python_requires="~=3.9",
python_requires=">=3.9,<3.11",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand Down
2 changes: 1 addition & 1 deletion packages/models-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def read_reqs(reqs_path: Path) -> Set[str]:
version=Path(CURRENT_DIR / "VERSION").read_text().strip(),
author="Sylvain Anderegg (sanderegg)",
description="Core service library for simcore pydantic models",
python_requires="~=3.9",
python_requires=">=3.9,<3.11",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand Down
1 change: 1 addition & 0 deletions packages/postgres-database/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
],
long_description=Path(CURRENT_DIR / "README.md").read_text(),
license="MIT license",
python_requires=">=3.9,<3.11",
packages=find_packages(where="src"),
package_dir={"": "src"},
test_suite="tests",
Expand Down
2 changes: 1 addition & 1 deletion packages/pytest-simcore/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
description="pytest plugin with fixtures and test helpers for osparc-simcore repo modules",
py_modules=["pytest_simcore"],
# WARNING: this is used in frozen services as well !!!!
python_requires=">=3.6",
python_requires=">=3.6,<3.11",
install_requires=["pytest>=3.5.0"],
extras_require={
"all": [
Expand Down
2 changes: 1 addition & 1 deletion packages/service-integration/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
"Framework :: Pytest",
],
long_description=Path(CURRENT_DIR / "README.md").read_text(),
python_requires=">=3.6", # TODO: should we deal with ~=3.9??
python_requires=">=3.6,<3.11",
license="MIT license",
install_requires=INSTALL_REQUIREMENTS,
packages=find_packages(where="src"),
Expand Down
2 changes: 1 addition & 1 deletion packages/service-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read_reqs(reqs_path: Path) -> Set[str]:
author="Pedro Crespo-Valero (pcrespov)",
description="Core service library for simcore (or servicelib)",
license="MIT license",
python_requires="~=3.9",
python_requires=">=3.9,<3.11",
install_requires=tuple(PROD_REQUIREMENTS),
packages=find_packages(where="src"),
package_dir={"": "src"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ async def _cancel_tracked_task(
except Exception as e: # pylint:disable=broad-except
formatted_traceback = "".join(
# pylint: disable=protected-access,no-value-for-parameter,unexpected-keyword-arg
traceback.format_exception(etype=type(e), value=e, tb=e.__traceback__)
traceback.format_exception(exc=type(e), value=e, tb=e.__traceback__)
)
raise TaskExceptionError(
task_id=task_id, exception=e, traceback=formatted_traceback
Expand Down
Loading
Loading