Skip to content

Migrate Python Codebase to Version 3.10 #20

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
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: 2 additions & 0 deletions packages/dask-task-models-library/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ test = pytest

[tool:pytest]
asyncio_mode = auto
filterwarnings =
error::DeprecationWarning
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: 4 additions & 0 deletions packages/models-library/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ test = pytest

[tool:pytest]
asyncio_mode = auto
filterwarnings =
error::DeprecationWarning
filterwarnings =
error::DeprecationWarning
markers =
diagnostics: "can be used to run diagnostics against deployed data (e.g. database, registry etc)"
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
5 changes: 2 additions & 3 deletions packages/models-library/src/models_library/boot_options.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from typing import Dict

from pydantic import BaseModel, validator
from typing_extensions import TypedDict
Expand All @@ -15,7 +14,7 @@ class BootOption(BaseModel):
label: str
description: str
default: str
items: Dict[str, BootChoice]
items: dict[str, BootChoice]

@validator("items")
@classmethod
Expand Down Expand Up @@ -64,4 +63,4 @@ class Config:
}


BootOptions = Dict[EnvVarKey, BootOption]
BootOptions = dict[EnvVarKey, BootOption]
Loading
Loading