Skip to content

chore: upgrade to Flask 3.1, Marshmallow 4, SQLAlchemy 2; add CI, JWT… - #3

Merged
picsouds merged 12 commits into
masterfrom
chore/upgrade-stack-2025
Sep 28, 2025
Merged

chore: upgrade to Flask 3.1, Marshmallow 4, SQLAlchemy 2; add CI, JWT…#3
picsouds merged 12 commits into
masterfrom
chore/upgrade-stack-2025

Conversation

@picsouds

Copy link
Copy Markdown
Owner

Objectif

Mettre à niveau l'application BookManager vers une stack moderne et maintenable.

  • Flask 3.1.x
  • flask-smorest 0.46.x (compatible Marshmallow 4)
  • Marshmallow 4.x
  • SQLAlchemy 2.x (style 2.0)
  • flask-jwt-extended 4.7.x

Changements principaux

  • Migration SQLAlchemy en style 2.0 (Mapped, mapped_column, relationship).
  • Migration Marshmallow v4 (schemas corrigés).
  • Nouvelle app factory compatible Flask 3.
  • Gestion des ETags (basés sur updated_at) pour PUT/DELETE.
  • Ajout d’un workflow GitHub Actions CI (lint + tests).
  • Passage à Poetry (pyproject.toml, .env.example).
  • Ajout de pre-commit (black, isort, ruff).
  • Mise à jour des tests pytest.

Instructions de run

poetry install
poetry run flask --app book_manager:create_app run --debug
# Swagger UI: http://127.0.0.1:5000/swagger-ui
poetry run pytest -q

@picsouds
picsouds merged commit a9beb58 into master Sep 28, 2025
3 checks passed
@picsouds
picsouds deleted the chore/upgrade-stack-2025 branch September 28, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant