Skip to content
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

⬆️(project) upgrade python dependencies #132

Merged
merged 2 commits into from
Aug 14, 2024
Merged
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
6 changes: 4 additions & 2 deletions src/api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 10 additions & 9 deletions src/api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "pypi"
alembic = "==1.13.2"
annotated-types = "==0.7.0"
email-validator = "==2.2.0"
fastapi = "==0.111.1"
fastapi = "==0.112.0"
geoalchemy2 = {extras = ["shapely"], version = "==0.15.2"}
geopandas = "==1.0.1"
httpx = {extras = ["cli"], version = "==0.27.0"}
Expand All @@ -16,26 +16,27 @@ passlib = {extras = ["bcrypt"], version = "==1.7.4"}
psycopg = {extras = ["pool", "binary"], version = "==3.2.1"}
pyarrow = "==17.0.0"
pydantic-extra-types = {extras = ["all"], version = "==2.9.0"}
pydantic-settings = "==2.3.4"
pyjwt = "==2.8.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.10.0"}
setuptools = "==70.3.0"
sentry-sdk = {extras = ["fastapi"], version = "==2.13.0"}
setuptools = "==72.2.0"
sqlalchemy-timescaledb = "==0.4.1"
sqlmodel = "==0.0.19"
typer = "==0.12.3"
uvicorn = {extras = ["standard"] }

[dev-packages]
black = "==24.4.2"
black = "==24.8.0"
csvkit = "==2.0.1"
honcho = "==1.1.0"
mypy = "==1.10.1"
mypy = "==1.11.1"
polyfactory = "==2.16.2"
pytest = "==8.2.2"
pytest = "==8.3.2"
pytest-cov = "==5.0.0"
pytest-httpx = "==0.30.0"
ruff = "==0.5.2"
ruff = "==0.5.7"
types-passlib = "==1.7.7.20240327"
types-python-jose = "==3.3.4.20240106"

Expand Down
954 changes: 492 additions & 462 deletions src/api/Pipfile.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/api/qualicharge/schemas/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
157 changes: 79 additions & 78 deletions src/client/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/opendata/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ psycopg = {extras = ["binary", "pool"], version = "==3.2.1"}

[dev-packages]
honcho = "==1.1.0"
setuptools = "==70.3.0"
setuptools = "==72.2.0"

[requires]
python_version = "3.12"
617 changes: 316 additions & 301 deletions src/opendata/Pipfile.lock

Large diffs are not rendered by default.