Skip to content

Commit af65460

Browse files
authored
Update how PL is installed (#7005)
**Context:** setuptools has had a release recently that normalizes package names: References: - pypa/setuptools#4766 - https://packaging.python.org/en/latest/specifications/name-normalization/#name-normalization **Description of the Change:** Due setuptools 75.8.0 and 75.8.1 outputting completely different package names, we cannot support both, so CI now "pins" to >=75.8.1. **Benefits:** Fix CI failures. **Possible Drawbacks:** We may need to update docs. This is also another situation where moving away from setup.py to pyproject would yield benefits. As then you can specify the minimum setuptools version as part of the build-backend configuration. **Related GitHub Issues:** None. [sc-85195](https://app.shortcut.com/xanaduai/story/85195/investigate-issue-with-pennylane-ci-failing-with-uv-build-outputting-package-that-doesn-t-match-name-in-setup-py)
1 parent 29688ee commit af65460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/unit-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
done <<< "$ADDITIONAL_OS_PACKAGES"
133133
134134
- name: Upgrade PIP and install wheel
135-
run: uv pip install --upgrade pip wheel
135+
run: uv pip install --upgrade pip wheel setuptools>=75.8.1
136136

137137
- name: Install PennyLane dependencies
138138
run: |
@@ -158,7 +158,7 @@ jobs:
158158
shell: bash
159159
run: |
160160
uv build --wheel
161-
uv pip install dist/PennyLane*.whl
161+
uv pip install dist/pennylane*.whl
162162
163163
- name: Install additional PIP packages (Post PennyLane Install)
164164
shell: bash

0 commit comments

Comments
 (0)