Skip to content

Commit 736f782

Browse files
mlxdgithub-actions[bot]vincentmr
authored
Validate all wheels with twine check after building (#430)
* Validate all wheels with twine check * Update changelog * Auto update version * Update .github/workflows/wheel_linux_aarch64.yml Co-authored-by: Vincent Michaud-Rioux <[email protected]> * Update .github/workflows/wheel_linux_ppc64le.yml Co-authored-by: Vincent Michaud-Rioux <[email protected]> * Update .github/workflows/wheel_linux_x86_64.yml Co-authored-by: Vincent Michaud-Rioux <[email protected]> * Fix noarch wheel path * Fix noarch wheel path again --------- Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com> Co-authored-by: Vincent Michaud-Rioux <[email protected]>
1 parent 75471a8 commit 736f782

9 files changed

+39
-1
lines changed

.github/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ array([-0.87758256, -0.47942554])
5656

5757
### Improvements
5858

59+
* Lightning wheels are now checked with `twine check` post-creation for PyPI compatibility.
60+
[(#430)](https://github.com/PennyLaneAI/pennylane-lightning/pull/430)
61+
5962
* Lightning has been made compatible with the change in return types specification.
6063
[(#427)](https://github.com/PennyLaneAI/pennylane-lightning/pull/427)
6164

.github/workflows/wheel_linux_aarch64.yml

+5
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ jobs:
167167

168168
run: python3 -m cibuildwheel --output-dir wheelhouse
169169

170+
- name: Validate wheels
171+
run: |
172+
python3 -m pip install twine
173+
python3 -m twine check ./wheelhouse/*.whl
174+
170175
- uses: actions-ecosystem/action-regex-match@v2
171176
id: rc_build
172177
with:

.github/workflows/wheel_linux_ppc64le.yml

+5
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ jobs:
167167

168168
run: python3 -m cibuildwheel --output-dir wheelhouse
169169

170+
- name: Validate wheels
171+
run: |
172+
python3 -m pip install twine
173+
python3 -m twine check ./wheelhouse/*.whl
174+
170175
- uses: actions-ecosystem/action-regex-match@v2
171176
id: rc_build
172177
with:

.github/workflows/wheel_linux_x86_64.yml

+5
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ jobs:
186186

187187
run: python3.8 -m cibuildwheel --output-dir wheelhouse
188188

189+
- name: Validate wheels
190+
run: |
191+
python3.8 -m pip install twine
192+
python3.8 -m twine check ./wheelhouse/*.whl
193+
189194
- uses: actions-ecosystem/action-regex-match@v2
190195
id: rc_build
191196
with:

.github/workflows/wheel_macos_arm64.yml

+5
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ jobs:
105105
run: |
106106
python -m cibuildwheel --output-dir wheelhouse
107107
108+
- name: Validate wheels
109+
run: |
110+
python -m pip install twine
111+
python -m twine check ./wheelhouse/*.whl
112+
108113
- uses: actions/upload-artifact@v2
109114
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
110115
with:

.github/workflows/wheel_macos_x86_64.yml

+5
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ jobs:
179179
run: |
180180
python -m cibuildwheel --output-dir wheelhouse
181181
182+
- name: Validate wheels
183+
run: |
184+
python -m pip install twine
185+
python -m twine check ./wheelhouse/*.whl
186+
182187
- uses: actions-ecosystem/action-regex-match@v2
183188
id: rc_build
184189
with:

.github/workflows/wheel_noarch.yml

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
env:
4343
SKIP_COMPILATION: True
4444

45+
- name: Validate wheels
46+
run: |
47+
python -m pip install twine
48+
python -m twine check main/dist/*.whl
49+
4550
- uses: actions/upload-artifact@v2
4651
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
4752
with:

.github/workflows/wheel_win_x86_64.yml

+5
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ jobs:
182182
}
183183
cd ..
184184
185+
- name: Validate wheels
186+
run: |
187+
python -m pip install twine
188+
python -m twine check ./wheelhouse/*.whl
189+
185190
- uses: actions-ecosystem/action-regex-match@v2
186191
id: rc_build
187192
with:

pennylane_lightning/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
Version number (major.minor.patch[-label])
1717
"""
1818

19-
__version__ = "0.30.0-dev2"
19+
__version__ = "0.30.0-dev3"

0 commit comments

Comments
 (0)