Skip to content

Commit

Permalink
ci(python): pin setuptools 0.70 (reanahub#822)
Browse files Browse the repository at this point in the history
The pinning of setuptools to the maximum version of 0.70 is necessary
for working on Ubuntu 20.04 LTS based environments.
  • Loading branch information
tiborsimko committed Aug 29, 2024
1 parent c2f490b commit 0d3d6d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
- name: Install Python dependencies
run: |
pip install --upgrade pip setuptools py
pip install --upgrade pip 'setuptools<71' py
pip install -e .[all]
- name: Run Sphinx documentation with doctests
Expand All @@ -152,7 +152,7 @@ jobs:

- name: Install Python dependencies
run: |
pip install --upgrade pip setuptools py
pip install --upgrade pip 'setuptools<71' py
pip install twine wheel
pip install -e .[all]
Expand Down
4 changes: 2 additions & 2 deletions reana/reana_dev/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2020, 2021, 2022, 2023 CERN.
# Copyright (C) 2020, 2021, 2022, 2023, 2024 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -605,7 +605,7 @@ def upgrade_requirements(component: str) -> bool:

docker_cmd = (
f"docker run --rm -it -v {get_srcdir(component)}:/code:z {PYTHON_DOCKER_IMAGE} "
f"bash -c 'cd /code && pip install --upgrade pip-tools setuptools pip && {pip_compile_cmd}'"
f"bash -c 'cd /code && pip install --upgrade pip-tools 'setuptools<71' pip && {pip_compile_cmd}'"
)
run_command(docker_cmd, component)
return True
Expand Down

0 comments on commit 0d3d6d0

Please sign in to comment.