From 704c1b2921349e5a0963bb911cd584f560b98039 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sun, 19 Oct 2025 18:51:02 +0200 Subject: [PATCH] Migration to python 3.13.5 --- requirements-dev.txt | 23 +++++++++++++---------- requirements-docs.txt | 12 ++++++------ requirements-test.txt | 16 ++++++++-------- requirements.txt | 39 +++++++++++++++++---------------------- 4 files changed, 44 insertions(+), 46 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 1adc13da..b2403cc4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,12 +1,15 @@ +# requirements-dev.txt - Python 3.13.5 compatible # Database migrations -alembic>=1.13.0 -# Linting and formatting tools -# Development tools -black>=23.0.0 -isort>=5.12.0 -flake8>=6.0.0 -mypy>=1.5.0 +alembic>=1.14.0 -# Optional: More advanced linting -flake8-docstrings>=1.7.0 -flake8-import-order>=0.18.2 \ No newline at end of file +# Linting and formatting tools +black>=24.10.0 +isort>=5.13.2 +ruff>=0.8.4 # Modern alternative to flake8, faster and Python 3.13 compatible +mypy>=1.13.0 + +# Optional: More advanced linting (if you prefer flake8 over ruff) +# Note: flake8 itself works with 3.13, but some plugins may not +# flake8>=7.1.0 +# flake8-docstrings>=1.7.0 +# flake8-import-order>=0.18.2 \ No newline at end of file diff --git a/requirements-docs.txt b/requirements-docs.txt index 19c04fe6..baa0ad10 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,7 +1,7 @@ -# requirements-docs.txt +# requirements-docs.txt - Python 3.13.5 compatible # Documentation dependencies -mkdocs>=1.5.0 -mkdocs-material>=9.4.0 -mkdocstrings[python]>=0.24.0 -mkdocs-swagger-ui-tag>=0.6.0 -pymdown-extensions>=10.4.0 \ No newline at end of file +mkdocs>=1.6.1 +mkdocs-material>=9.5.48 +mkdocstrings[python]>=0.27.0 +mkdocs-swagger-ui-tag>=0.6.10 +pymdown-extensions>=10.12 \ No newline at end of file diff --git a/requirements-test.txt b/requirements-test.txt index 8bf5f468..628612da 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,10 +1,10 @@ -# tests/requirements-test.txt +# requirements-test.txt - Python 3.13.5 compatible # Testing dependencies -pytest>=7.4.0 -pytest-cov>=4.1.0 -pytest-asyncio>=0.21.0 -pytest-mock>=3.11.0 -httpx>=0.24.0 -faker>=19.0.0 +pytest>=8.3.4 +pytest-cov>=6.0.0 +pytest-asyncio>=0.24.0 +pytest-mock>=3.14.0 +httpx>=0.28.1 +faker>=33.1.0 pytest-repeat>=0.9.4 -pytest-timeout>=2.1.0 +pytest-timeout>=2.3.1 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 3f5141c0..6b583ac9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,31 +1,26 @@ -starlette==0.27.0 -# requirements.txt +# requirements.txt - Python 3.13.5 compatible # Core FastAPI and web framework -fastapi==0.104.1 -uvicorn[standard]==0.24.0 -pydantic==2.5.0 -pydantic-settings==2.1.0 # Required for BaseSettings -pydantic[email]==2.5.0 +starlette==0.41.3 +fastapi==0.115.5 +uvicorn[standard]==0.32.1 +pydantic==2.10.3 +pydantic-settings==2.6.1 +pydantic[email]==2.10.3 # Database -sqlalchemy==2.0.23 -psycopg2-binary==2.9.7 # PostgreSQL adapter -alembic==1.12.1 # For database migrations +sqlalchemy==2.0.36 +psycopg2-binary==2.9.10 +alembic==1.14.0 # Authentication and Security -python-jose[cryptography]==3.3.0 # JWT handling -passlib[bcrypt]==1.7.4 # Password hashing with bcrypt -bcrypt==4.0.1 # Explicit bcrypt version for compatibility -python-multipart==0.0.6 # Form data parsing +python-jose[cryptography]==3.3.0 +passlib[bcrypt]==1.7.4 +bcrypt==4.2.1 +python-multipart==0.0.20 # Data processing -pandas==2.1.3 -requests==2.31.0 +pandas==2.2.3 +requests==2.32.3 # Environment and configuration -python-dotenv==1.0.0 - -# Development and testing (optional) -pytest==7.4.3 -pytest-asyncio==0.21.1 -httpx==0.25.2 # For testing FastAPI endpoints \ No newline at end of file +python-dotenv==1.0.1 \ No newline at end of file