Skip to content

Commit 6e50d00

Browse files
committed
build(python): pin setuptools below 81 (reanahub#670)
Pin setuptools<81 in Dockerfile, CI workflows, and ReadTheDocs configuration. This is because the recent setuptools 81.0.0 upgrade removed the pkg_resources module that is needed at runtime by some dependencies.
1 parent be7fba8 commit 6e50d00

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204
205205
- name: Install Python dependencies
206206
run: |
207-
pip install --upgrade pip setuptools py
207+
pip install --upgrade pip 'setuptools<81' py
208208
pip install -e .[all]
209209
210210
- name: Run Sphinx documentation with doctests
@@ -223,7 +223,7 @@ jobs:
223223

224224
- name: Install Python dependencies
225225
run: |
226-
pip install --upgrade pip setuptools py
226+
pip install --upgrade pip 'setuptools<81' py
227227
pip install twine wheel
228228
pip install -e .[all]
229229

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN apt-get update -y && \
3232
python3.12 \
3333
python3.12-dev \
3434
vim-tiny && \
35-
pip install --no-cache-dir --upgrade setuptools && \
35+
pip install --no-cache-dir --upgrade 'setuptools<81' && \
3636
pip install --no-cache-dir -r /code/requirements.txt && \
3737
apt-get remove -y \
3838
gcc \

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
# REANA is free software; you can redistribute it and/or modify it
55
# under the terms of the MIT License; see LICENSE file for more details.
66

7+
setuptools<81
78
-e .[all]

0 commit comments

Comments
 (0)