diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index a43aa6b60..e8145b400 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -70,6 +70,14 @@ jobs: grep -IRF generate=True test/ && exit 1 # Executing all tests: pytest -vv --trace-memory-usage + - name: Running tests with 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 '/install_requires/,/\n/s/>=/==/' setup.cfg + pip install . + # Targetting only a subset of tests because: A) it's faster and B) some tests are dependant on a specific version of fonttools or Pillow + pytest -vv test/barcodes test/drawing test/errors test/image/test_load_image.py test/metadata test/shapes test/signing test/text_region test/utils - name: Uploading coverage report to codecov.io ☑ if: matrix.python-version == '3.12' && matrix.platform == 'ubuntu-latest' run: bash <(curl -s https://codecov.io/bash) 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