From 30ab530195be4c26f6299c7e508772a640ae25fa Mon Sep 17 00:00:00 2001 From: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:02:24 +0100 Subject: [PATCH] CI: installing the minimal versions of the dependencies in the test pipeline, to ensure that they remain compatible --- .github/workflows/continuous-integration-workflow.yml | 6 ++++++ setup.cfg | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index a43aa6b60..f270a9a11 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -33,6 +33,12 @@ jobs: run: | python -m pip install --upgrade pip setuptools wheel pip install --upgrade . -r test/requirements.txt -r docs/requirements.txt -r contributors/requirements.txt + - name: Installing the minimal versions of fpdf2 direct dependencies ⚙️ + if: matrix.python-version == '3.8' && matrix.platform == 'ubuntu-latest' + run: | + # We ensure that those minimal versions remain compatible: + sed -i -e 's/,!=.*//' -e '/install_requires/,/\n/s/>=/==/' setup.cfg + pip install . - name: Statically checking code 🔎 if: matrix.python-version == '3.12' && matrix.platform == 'ubuntu-latest' run: | diff --git a/setup.cfg b/setup.cfg index bfd71e177..8f893e638 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,13 +38,13 @@ keywords = [options] packages = fpdf +python_requires = >=3.7 install_requires = defusedxml Pillow>=6.2.2,!=9.2.* # minimum version tested there: https://github.com/py-pdf/fpdf2/actions/runs/2295868575 # Version 9.2.0 is excluded due to DoS vulnerability with TIFF images: https://github.com/py-pdf/fpdf2/issues/628 # Version exclusion explained here: https://devpress.csdn.net/python/630462c0c67703293080c302.html fonttools>=4.34.0 -python_requires = >=3.7 [bdist_wheel] universal = 1