Skip to content

Commit

Permalink
[ci] Pin setuptools package to specific version
Browse files Browse the repository at this point in the history
The setuptools v66.0.0 package has removed support for legacy version
strings that don't conform to PEP 440.

Due to a wrong version number used in 'python3-distro-info' and
'python-debian' Ubuntu packages, the installation of packages from PyPI
is broken by the above change. To mitigate this before the Ubuntu
packages are fixed, the 'setuptools' PyPI package will be installed
using the latest known version to support legacy version numbers.

Ref: pypa/setuptools#3772
  • Loading branch information
drybjed committed Jan 17, 2023
1 parent 7b8e24d commit aec04c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Prepare test environment
run: |
pip3 install --user --upgrade pip wheel setuptools
pip3 install --user --upgrade pip wheel "setuptools==65.7.0"
pip3 install --user --upgrade reuse
- name: Check codebase with REUSE linter
Expand All @@ -42,7 +42,7 @@ jobs:
run: |
sudo apt-get remove --purge -yq ansible
sudo apt-get install python3-netaddr
pip3 install --upgrade pip wheel setuptools
pip3 install --upgrade pip wheel "setuptools==65.7.0"
pip3 install --user --upgrade Jinja2 ansible ansible-lint
- name: Verify playbook with ansible-lint
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Prepare test environment
run: |
sudo apt-get remove --purge -yq ansible
pip3 install --user --upgrade pip wheel setuptools
pip3 install --user --upgrade pip wheel "setuptools==65.7.0"
pip3 install --user --upgrade Jinja2 ansible
- name: Check playbook syntax with ansible-playbook
Expand All @@ -90,7 +90,7 @@ jobs:
sudo apt-get -qq update
sudo apt-get -yq install pandoc pandoc-data
sudo apt-get remove --purge -yq ansible
pip3 install --user --upgrade pip wheel setuptools
pip3 install --user --upgrade pip wheel "setuptools==65.7.0"
pip3 install --user --upgrade Jinja2 ansible ansible-lint yamllint galaxy-importer reuse
- name: Build DebOps Collections for Ansible Galaxy
Expand All @@ -115,7 +115,7 @@ jobs:

- name: Prepare test environment
run: |
pip3 install --user --upgrade pip wheel setuptools
pip3 install --user --upgrade pip wheel "setuptools==65.7.0"
pip3 install --user --upgrade yamllint
- name: Check codebase with yamllint
Expand All @@ -136,7 +136,7 @@ jobs:

- name: Prepare test environment
run: |
pip3 install --user --upgrade pip wheel setuptools
pip3 install --user --upgrade pip wheel "setuptools==65.7.0"
pip3 install --user --upgrade pycodestyle
- name: Check codebase with pycodestyle
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
run: |
sudo apt-get -qq update
sudo apt-get -yq install python3-nose2
pip3 install --user --upgrade pip wheel setuptools pypandoc
pip3 install --user --upgrade pip wheel "setuptools==65.7.0" pypandoc
pip3 install --user --upgrade cov-core future unittest2 pyyaml python-dotenv toml pyxdg jinja2
- name: Run DebOps unit tests
Expand All @@ -220,7 +220,7 @@ jobs:
run: |
sudo apt-get -qq update
sudo apt-get -yq install pandoc pandoc-data graphviz
pip3 install --user --upgrade pip wheel setuptools pypandoc
pip3 install --user --upgrade pip wheel "setuptools==65.7.0" pypandoc
pip3 install --user --upgrade sphinx sphinx-autobuild sphinx_rtd_theme
- name: Build DebOps Python wheel package
Expand All @@ -247,7 +247,7 @@ jobs:
run: |
sudo apt-get -qq update
sudo apt-get -yq install pandoc pandoc-data graphviz
pip3 install --user --upgrade pip wheel setuptools pypandoc
pip3 install --user --upgrade pip wheel "setuptools==65.7.0" pypandoc
pip3 install --user --upgrade sphinx sphinx-autobuild sphinx_rtd_theme
- name: Build DebOps Python sdist package
Expand All @@ -272,7 +272,7 @@ jobs:
run: |
sudo apt-get -qq update
sudo apt-get install -yq graphviz
pip3 install --user --upgrade pip wheel setuptools
pip3 install --user --upgrade pip wheel "setuptools==65.7.0"
pip3 install --user --upgrade sphinx sphinx-autobuild sphinx_rtd-theme
- name: Build documentation site
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prepare-ci-pipeline/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
run: |
sudo apt-get -qq update
sudo apt-get remove --purge -yq ansible python python2.7 python2.7-minimal
pip3 install --user --upgrade pip wheel setuptools
pip3 install --user --upgrade pip wheel "setuptools==65.7.0"
pip3 install --user --upgrade Jinja2 ansible
pip3 install --user .
debops-init ~/src/controller
Expand Down

0 comments on commit aec04c8

Please sign in to comment.