From b27c9cfa21603ecc1554931f23c945d3f9e256d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Mon, 2 Sep 2024 17:30:05 +0200 Subject: [PATCH] build(docker): pin setuptools 70 (#102) Pin `setuptools` to the maximum version of 70 to allow working on Ubuntu 20.04 LTS based environments. (New versions of `setuptools` are not compatible.) Note that this fix is necessary only for the `maint-0.9` branches and the REANA 0.9 release series. In `master` we have switched to Ubuntu 24.04 LTS based environments and Python 3.12 and no pinning is necessary there. --- .github/workflows/ci.yml | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e233a1..940971e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,7 +138,7 @@ jobs: - name: Install Python dependencies run: | - pip install --upgrade pip 'setuptools<65.6' py wheel + pip install --upgrade pip 'setuptools<71' py wheel pip install -e .[all] - name: Run Sphinx documentation with doctests @@ -162,7 +162,7 @@ jobs: - name: Install Python dependencies run: | - pip install --upgrade pip 'setuptools<65.6' py + pip install --upgrade pip 'setuptools<71' py pip install twine wheel pip install -e .[all] diff --git a/Dockerfile b/Dockerfile index 44566d0..360c10a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,7 +60,7 @@ RUN apt-get update -y && \ libxrootd-client-dev \ xrootd-client) \ fi && \ - pip install --no-cache-dir --upgrade pip setuptools && \ + pip install --no-cache-dir --upgrade pip 'setuptools<71' && \ pip install --no-cache-dir -r /code/requirements.txt && \ apt-get remove -y \ cmake \