Skip to content

Commit cc2efbe

Browse files
authored
Update deps (fastapi, pych-client, pydantic-settings), migrate poetry dev groups, fix Dockerfile (#14)
- Upgrade fastapi from ^0.81.0 → ^0.116.2 (brings in starlette >=0.47.2) - Upgrade pych-client from ^0.3.1 → ^0.4.1 - Add pydantic-settings ^2.10.1 and update BaseSettings import (BaseSettings was removed from pydantic v2 and moved to the standalone pydantic-settings package) - Keep anyio <4 for httpx compatibility - Migrate [tool.poetry.dev-dependencies] → [tool.poetry.group.dev.dependencies] - Dockerfile: replace poetry install --no-root --no-dev with --without dev (the --no-dev flag was removed in Poetry ≥1.2 in favor of dependency groups) - Regenerated poetry.lock by running poetry update on a test GCP VM with: - Ubuntu 24.04.3 LTS - Poetry 1.8.2 - Python 3.12.3 This resolves GitHub Dependabot alerts and ensures dependency consistency.
1 parent 09f7cd7 commit cc2efbe

4 files changed

Lines changed: 641 additions & 439 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN poetry config virtualenvs.in-project true
99
COPY pyproject.toml pyproject.toml
1010
COPY poetry.lock poetry.lock
1111

12-
RUN poetry install --no-root --no-dev \
12+
RUN poetry install --no-root --without dev \
1313
&& rm -rf /root/.cache/*
1414

1515
COPY guesthouse guesthouse

guesthouse/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from pathlib import Path
22

3-
from pydantic import BaseSettings
3+
from pydantic_settings import BaseSettings
44

55

66
class Settings(BaseSettings):

0 commit comments

Comments
 (0)