Skip to content

Commit

Permalink
[CI] Fix packaging errors with Python 3.7
Browse files Browse the repository at this point in the history
The latest Pillow 10 does not support Py3.7 therefore wheels are no
longer available and we need to specify previous major version.

Older versions of setuptools do not correctly determine the Twisted
requirement for zope.interface>5 on Python 3.7 so ensure latest
installed. For the CD builds we don't want any surprises so keep the
setuptools version pinned.

Refs: https://pillow.readthedocs.io/en/stable/installation.html
Closes: deluge-torrent#433
  • Loading branch information
cas-- authored and doadin committed Jun 4, 2024
1 parent c8b5bb1 commit 5fbca87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
cache: pip

- name: Prepare pip
run: python -m pip install wheel
run: python -m pip install wheel setuptools==68.*

- name: Install GTK
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Install dependencies
run: |
pip install --upgrade pip wheel
pip install --upgrade pip wheel setuptools
pip install -r requirements.txt -r requirements-tests.txt
pip install -e .
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:

- name: Install dependencies
run: |
pip install --upgrade pip wheel
pip install --upgrade pip wheel setuptools
pip install -r requirements.txt -r requirements-tests.txt
pip install -e .
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rencode
pyopenssl
pyxdg
pillow
pillow<=9; python_version=="3.7"
mako
setuptools
chardet
Expand Down

0 comments on commit 5fbca87

Please sign in to comment.