Skip to content

Commit

Permalink
CI: installing the minimal versions of the dependencies in the test p…
Browse files Browse the repository at this point in the history
…ipeline, to ensure that they remain compatible
  • Loading branch information
Lucas-C committed Dec 8, 2024
1 parent 6322c62 commit 30ab530
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30ab530

Please sign in to comment.