From 13b63cfc559a990ee8f9c0d3fd5ffef1f6b9acbc Mon Sep 17 00:00:00 2001 From: gaetanbrl Date: Wed, 18 Feb 2026 15:19:25 +0100 Subject: [PATCH] up python dep and version --- .github/workflows/build.yml | 4 ++-- srv/python/README.md | 3 +-- srv/python/requirements.txt | 2 +- srv/python/setup.py | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13b0ffba..876c6744 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,9 +11,9 @@ jobs: - uses: actions/checkout@v2 - name: "Set up Python" - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.12' - name: "python backend - install requirements" working-directory: srv/python diff --git a/srv/python/README.md b/srv/python/README.md index b0ebe084..b005802d 100644 --- a/srv/python/README.md +++ b/srv/python/README.md @@ -1,7 +1,7 @@ # MViewerStudio Backend v2 Ce dossier contient la version 2 du backend de mviewerstudio. Cette version est -écrite en python (3.7+) et utilise le framework Flask. Il n'y aucune base de +écrite en python (3.11+) et utilise le framework Flask. Il n'y aucune base de données, les données sont stockées dans des fichiers json. ## Installation @@ -19,4 +19,3 @@ Vous pouvez utiliser la composition docker présente à la racine du dépot. Le * Lancer les tests unitaires : `pytest mviewerstudio_backend/test.py` * Vérifier les types : `mypy --ignore-missing mviewerstudio_backend` - diff --git a/srv/python/requirements.txt b/srv/python/requirements.txt index 0a397685..f10a22c0 100644 --- a/srv/python/requirements.txt +++ b/srv/python/requirements.txt @@ -1,5 +1,5 @@ flask>=2 -gunicorn>20,<21 +gunicorn>20 lxml>=4.9.2 GitPython>=3 requests diff --git a/srv/python/setup.py b/srv/python/setup.py index eb1c20d8..0c94bcda 100644 --- a/srv/python/setup.py +++ b/srv/python/setup.py @@ -12,11 +12,11 @@ url="https://github.com/mviewer/mviewerstudio", packages=find_packages(), install_requires=REQUIREMENTS, + python_requires=">=3.11", classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.11", "Framework :: Flask", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",