From c011b7c2b3dd360b8a65466f46b32dd8a35197a5 Mon Sep 17 00:00:00 2001 From: Julien Maupetit Date: Wed, 14 Aug 2024 14:28:43 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F(project)=20apply=20required?= =?UTF-8?q?=20changes=20to=20upgrade=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renovate forces us to add a new commit so that our changes are not rolled back. --- src/api/CHANGELOG.md | 6 ++++-- src/api/Pipfile | 3 ++- src/api/Pipfile.lock | 19 ++++++++++++++----- src/api/qualicharge/schemas/utils.py | 8 ++++---- src/client/CHANGELOG.md | 2 +- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/api/CHANGELOG.md b/src/api/CHANGELOG.md index 22bf87ea..5429cf9d 100644 --- a/src/api/CHANGELOG.md +++ b/src/api/CHANGELOG.md @@ -16,9 +16,11 @@ and this project adheres to ### Changed -- Upgrade fastapi to `0.111.1` +- Upgrade fastapi to `0.112.0` - Upgrade geoalchemy2 to `0.15.2` -- Upgrade sentry-sdk to `2.10.0` +- Upgrade pydantic-settings to `2.4.0` +- Upgrade PyJWT to `2.9.0` +- Upgrade sentry-sdk to `2.13.0` - Switched to Psycopg 3.x ### Fixed diff --git a/src/api/Pipfile b/src/api/Pipfile index 5f4722cc..84299bdd 100644 --- a/src/api/Pipfile +++ b/src/api/Pipfile @@ -18,11 +18,12 @@ pyarrow = "==17.0.0" pydantic-extra-types = {extras = ["all"], version = "==2.9.0"} pydantic-settings = "==2.4.0" pyjwt = "==2.9.0" +python-multipart = "==0.0.9" questionary = "==2.0.1" sentry-sdk = {extras = ["fastapi"], version = "==2.13.0"} setuptools = "==72.2.0" sqlalchemy-timescaledb = "==0.4.1" -sqlmodel = "==0.0.21" +sqlmodel = "==0.0.19" typer = "==0.12.3" uvicorn = {extras = ["standard"] } diff --git a/src/api/Pipfile.lock b/src/api/Pipfile.lock index 1a58cd85..9665a8cb 100644 --- a/src/api/Pipfile.lock +++ b/src/api/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "9ecf76e07a5819fbc312be14362066c20fe4424d8c67b392959f280045325214" + "sha256": "bb56c586a0999e93fa0fa5c9c70d09ae06d0f0269f75a66a2aef195e59cb1e12" }, "pipfile-spec": 6, "requires": { @@ -414,7 +414,7 @@ "sha256:f1659887361a7151f89e79b276ed8dff3d75877df906328f14d8bb40bb4f5101", "sha256:f9cf5ea551aec449206954b075db819f52adc1638d46a6738253a712d553c7b4" ], - "markers": "python_version >= '3.12'", + "markers": "python_version >= '3.9'", "version": "==2.0.1" }, "packaging": { @@ -922,6 +922,15 @@ "markers": "python_version >= '3.8'", "version": "==1.0.1" }, + "python-multipart": { + "hashes": [ + "sha256:03f54688c663f1b7977105f021043b0793151e4cb1c1a9d4a11fc13d622c4026", + "sha256:97ca7b8ea7b05f977dc3849c3ba99d51689822fab725c3703af7c866a0c2b215" + ], + "index": "pypi", + "markers": "python_version >= '3.8'", + "version": "==0.0.9" + }, "python-ulid": { "hashes": [ "sha256:18eb595885140851a490a95b0da4447911ff69fa9f434732067b97f6956f9fe9", @@ -1169,12 +1178,12 @@ }, "sqlmodel": { "hashes": [ - "sha256:b2034c23d930f66d2091b17a4280a9c23a7ea540a71e7fcf9c746d262f06f74a", - "sha256:eca104afe8a643f0764076b29f02e51d19d6b35c458f4c119942960362a4b52a" + "sha256:6c8125d4101970d031e9aae970b20cbeaf44149989f8366d939f4ab21aab8763", + "sha256:95449b0b48a40a3eecf0a629fa5735b9dfc8a5574a91090d24ca17f02246ad96" ], "index": "pypi", "markers": "python_version >= '3.7'", - "version": "==0.0.21" + "version": "==0.0.19" }, "starlette": { "hashes": [ diff --git a/src/api/qualicharge/schemas/utils.py b/src/api/qualicharge/schemas/utils.py index fd511280..e9dcbcff 100644 --- a/src/api/qualicharge/schemas/utils.py +++ b/src/api/qualicharge/schemas/utils.py @@ -275,8 +275,8 @@ class StatiqueSchemasEntryIndex(NamedTuple): (localisation, localisations), ): if entry not in entries: # type: ignore[operator] - entries.append(entry) # type: ignore[attr-defined] - indexes.append(entries.index(entry)) # type: ignore[attr-defined] + entries.append(entry) # type: ignore[arg-type] + indexes.append(entries.index(entry)) # type: ignore[arg-type] statiques_db_refs.append(StatiqueSchemasEntryIndex(*indexes)) # Create database entries for each schema @@ -292,9 +292,9 @@ class StatiqueSchemasEntryIndex(NamedTuple): (enseignes, None), (localisations, {"adresse_station"}), ): - for idx, entry in enumerate(entries): # type: ignore[arg-type] + for idx, entry in enumerate(entries): # type: ignore[assignment] _, db_entry = get_or_create(session, entry, fields, add=False) - entries[idx] = db_entry # type: ignore[index] + entries[idx] = db_entry # type: ignore[call-overload] session.add_all(entries) # type: ignore[arg-type] # Handle relationships diff --git a/src/client/CHANGELOG.md b/src/client/CHANGELOG.md index c126e5ad..88ddaee0 100644 --- a/src/client/CHANGELOG.md +++ b/src/client/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to ### Changed - Upgrade Pydantic to `2.7.4` -- Upgrade pydantic-settings to `2.3.3` +- Upgrade pydantic-settings to `2.4.0` ## [0.1.0] - 2024-06-14