Skip to content

Migrate Python Codebase to Version 3.10 #17

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
70 changes: 35 additions & 35 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 @@ -672,7 +672,7 @@ jobs:
matrix:
# KEEP 3.6 Development of this service is frozen
# KEEP ubuntu 20.04, else no python 3.6
python: [3.6]
python: [3.10]
os: [ubuntu-20.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
4 changes: 2 additions & 2 deletions packages/dask-task-models-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ 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.10",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
long_description=Path(CURRENT_DIR / "README.md").read_text(),
license="MIT license",
Expand Down
4 changes: 2 additions & 2 deletions packages/models-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ 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.10",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
long_description=Path(CURRENT_DIR / "README.md").read_text(),
license="MIT license",
Expand Down
2 changes: 1 addition & 1 deletion packages/postgres-database/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-slim as base
FROM python:3.10-slim as base

LABEL maintainer=sanderegg

Expand Down
2 changes: 1 addition & 1 deletion packages/postgres-database/scripts/erd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PYTHON_VERSION="3.9.12"
ARG PYTHON_VERSION="3.10.13"
FROM python:${PYTHON_VERSION}-slim-buster as base

RUN apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion packages/postgres-database/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
long_description=Path(CURRENT_DIR / "README.md").read_text(),
license="MIT license",
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.10",
install_requires=["pytest>=3.5.0"],
extras_require={
"all": [
Expand Down
Loading
Loading