Skip to content

Commit

Permalink
Pin version of setuptools to known-good version
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelishman committed Jul 29, 2024
1 parent c7deea9 commit f32de33
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.8'

# This can be removed when `ibm-platform-services` can build/install with the most recent of
# `setuptools`. `setuptools==72.0.0` and `ibm-platform-services==0.55.1` are a known-bad combo.
- name: Prebuild old-setuptools dependencies
shell: bash
run: |
set -e
python -m venv .build-deps
source .build-deps/bin/activate
pip install 'setuptools<72.0' wheel
pip wheel --no-build-isolation ibm-platform-services
deactivate
rm -rf .build-deps
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ jobs:
${{ runner.os }}-${{ matrix.python-version }}-pip-tests-
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}
# This can be removed when `ibm-platform-services` can build/install with the most recent of
# `setuptools`. `setuptools==72.0.0` and `ibm-platform-services==0.55.1` are a known-bad combo.
- name: Prebuild old-setuptools dependencies
shell: bash
run: |
set -e
python -m venv .build-deps
source .build-deps/bin/activate
pip install 'setuptools<72.0' wheel
pip wheel --no-build-isolation ibm-platform-services
deactivate
rm -rf .build-deps
- name: Install Deps
run: python -m pip install -U tox setuptools virtualenv wheel
- name: Install and Run Tests
Expand All @@ -61,6 +75,20 @@ jobs:
${{ runner.os }}-${{ matrix.python-version }}-pip-neko-
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}-
# This can be removed when `ibm-platform-services` can build/install with the most recent of
# `setuptools`. `setuptools==72.0.0` and `ibm-platform-services==0.55.1` are a known-bad combo.
- name: Prebuild old-setuptools dependencies
shell: bash
run: |
set -e
python -m venv .build-deps
source .build-deps/bin/activate
pip install 'setuptools<72.0' wheel
pip wheel --no-build-isolation ibm-platform-services
deactivate
rm -rf .build-deps
- name: Install Deps
run: python -m pip install -U tox
- name: Run neko
Expand All @@ -87,6 +115,20 @@ jobs:
${{ runner.os }}-${{ matrix.python-version }}-pip-lint-
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-${{ matrix.python-version }}-
# This can be removed when `ibm-platform-services` can build/install with the most recent of
# `setuptools`. `setuptools==72.0.0` and `ibm-platform-services==0.55.1` are a known-bad combo.
- name: Prebuild old-setuptools dependencies
shell: bash
run: |
set -e
python -m venv .build-deps
source .build-deps/bin/activate
pip install 'setuptools<72.0' wheel
pip wheel --no-build-isolation ibm-platform-services
deactivate
rm -rf .build-deps
- name: Install Deps
run: python -m pip install -U tox
- name: Run lint
Expand All @@ -112,6 +154,20 @@ jobs:
${{ runner.os }}-pip-docs-
${{ runner.os }}-pip-
${{ runner.os }}-
# This can be removed when `ibm-platform-services` can build/install with the most recent of
# `setuptools`. `setuptools==72.0.0` and `ibm-platform-services==0.55.1` are a known-bad combo.
- name: Prebuild old-setuptools dependencies
shell: bash
run: |
set -e
python -m venv .build-deps
source .build-deps/bin/activate
pip install 'setuptools<72.0' wheel
pip wheel --no-build-isolation ibm-platform-services
deactivate
rm -rf .build-deps
- name: Install Deps
run: |
python -m pip install -U tox
Expand Down
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ runs:
run: |
pip install -U setuptools pip
shell: bash

# This can be removed when `ibm-platform-services` can build/install with the most recent of
# `setuptools`. `setuptools==72.0.0` and `ibm-platform-services==0.55.1` are a known-bad combo.
- name: Prebuild old-setuptools dependencies
shell: bash
run: |
set -e
python -m venv .build-deps
source .build-deps/bin/activate
pip install 'setuptools<72.0' wheel
pip wheel --no-build-isolation ibm-platform-services
deactivate
rm -rf .build-deps
- name: Install neko and its dependencies
run: |
pip install ./qiskit-neko
Expand Down

0 comments on commit f32de33

Please sign in to comment.