From 7082d9cec4f13395cff8e997bf13361ce2d3ee9f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 18 Sep 2023 11:45:01 +0100 Subject: [PATCH] [CI] Fix packaging errors with Python 3.7 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: https://github.com/deluge-torrent/deluge/pull/433 --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 4 ++-- requirements.txt | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2abfac0f3..ce0d032c1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ad554e0c..6fc6b5b72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 . @@ -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 . diff --git a/requirements.txt b/requirements.txt index 86ffca6ac..a26ec758d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ rencode pyopenssl pyxdg pillow +pillow<=9; python_version=="3.7" mako setuptools chardet