Skip to content

Commit

Permalink
Merge pull request #6637 from sanderegg/upgrade-master-5
Browse files Browse the repository at this point in the history
⬆️ Pydantic V2: Upgrade master 5
  • Loading branch information
sanderegg authored Oct 29, 2024
2 parents 9e76d4f + fefd1b9 commit 05cff9e
Show file tree
Hide file tree
Showing 37 changed files with 289 additions and 297 deletions.
86 changes: 42 additions & 44 deletions .github/workflows/ci-testing-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/web/server/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -389,7 +389,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/web/server/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -434,7 +434,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/web/server/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -479,7 +479,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/storage/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -529,7 +529,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/agent/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -577,7 +577,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/api/tests/requirements.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -622,7 +622,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/api-server/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -673,7 +673,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/autoscaling/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -721,7 +721,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/catalog/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -775,7 +775,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/clusters-keeper/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -834,7 +834,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/datcore-adapter/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -930,7 +930,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/director-v2/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -984,7 +984,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/aws-library/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1032,7 +1032,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/dask-task-models-library/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1080,7 +1080,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/dask-sidecar/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1128,7 +1128,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/osparc-gateway-server/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1186,7 +1186,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/payments/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1234,7 +1234,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/dynamic-scheduler/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1282,7 +1282,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/resource-usage-tracker/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1340,7 +1340,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/dynamic-sidecar/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1388,7 +1388,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/efs-guardian/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1447,7 +1447,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/ci/helpers/requirements.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1482,7 +1482,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/postgres-database/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1530,7 +1530,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/notifications-library/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1578,7 +1578,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/service-integration/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1626,7 +1626,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/service-library/requirements/ci*.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1674,7 +1674,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/settings-library/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1722,7 +1722,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/models-library/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1808,13 +1808,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
cache-dependency-path: "packages/notifications-library/requirements/ci.txt"
- name: install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/notifications-library/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1864,7 +1862,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/simcore-sdk/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -1973,7 +1971,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/web/server/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2036,7 +2034,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/web/server/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2099,7 +2097,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/director-v2/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2166,7 +2164,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/director-v2/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2231,7 +2229,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/dynamic-sidecar/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2295,7 +2293,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/osparc-gateway-server/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2372,7 +2370,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/simcore-sdk/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2459,7 +2457,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/public-api/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2519,7 +2517,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/swarm-deploy/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2590,7 +2588,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/e2e/requirements/requirements.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down Expand Up @@ -2653,7 +2651,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/e2e-playwright/requirements/ci.txt"
- name: expose github runtime for buildx
uses: crazy-max/ghaction-github-runtime@v3
Expand Down Expand Up @@ -2715,7 +2713,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: true
enable-cache: false
cache-dependency-glob: "**/environment-setup/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
from typing import Final

from pydantic import parse_obj_as

from ..rabbitmq_basic_types import RPCNamespace

DYNAMIC_SIDECAR_RPC_NAMESPACE: Final[RPCNamespace] = parse_obj_as(
RPCNamespace, "dynamic-sidecar"
)
Loading

0 comments on commit 05cff9e

Please sign in to comment.