diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 72a58dbe67..e26332c540 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -56,6 +56,9 @@ array([-0.87758256, -0.47942554]) ### Improvements +* Lightning wheels are now checked with `twine check` post-creation for PyPI compatibility. + [(#430)](https://github.com/PennyLaneAI/pennylane-lightning/pull/430) + * Lightning has been made compatible with the change in return types specification. [(#427)](https://github.com/PennyLaneAI/pennylane-lightning/pull/427) diff --git a/.github/workflows/wheel_linux_aarch64.yml b/.github/workflows/wheel_linux_aarch64.yml index 8b20f2d506..6dc6b0dd6c 100644 --- a/.github/workflows/wheel_linux_aarch64.yml +++ b/.github/workflows/wheel_linux_aarch64.yml @@ -167,6 +167,11 @@ jobs: run: python3 -m cibuildwheel --output-dir wheelhouse + - name: Validate wheels + run: | + python3 -m pip install twine + python3 -m twine check ./wheelhouse/*.whl + - uses: actions-ecosystem/action-regex-match@v2 id: rc_build with: diff --git a/.github/workflows/wheel_linux_ppc64le.yml b/.github/workflows/wheel_linux_ppc64le.yml index f2d4623a8d..5a596f8536 100644 --- a/.github/workflows/wheel_linux_ppc64le.yml +++ b/.github/workflows/wheel_linux_ppc64le.yml @@ -167,6 +167,11 @@ jobs: run: python3 -m cibuildwheel --output-dir wheelhouse + - name: Validate wheels + run: | + python3 -m pip install twine + python3 -m twine check ./wheelhouse/*.whl + - uses: actions-ecosystem/action-regex-match@v2 id: rc_build with: diff --git a/.github/workflows/wheel_linux_x86_64.yml b/.github/workflows/wheel_linux_x86_64.yml index b954e868ab..5d6c996a02 100644 --- a/.github/workflows/wheel_linux_x86_64.yml +++ b/.github/workflows/wheel_linux_x86_64.yml @@ -186,6 +186,11 @@ jobs: run: python3.8 -m cibuildwheel --output-dir wheelhouse + - name: Validate wheels + run: | + python3.8 -m pip install twine + python3.8 -m twine check ./wheelhouse/*.whl + - uses: actions-ecosystem/action-regex-match@v2 id: rc_build with: diff --git a/.github/workflows/wheel_macos_arm64.yml b/.github/workflows/wheel_macos_arm64.yml index 7b7afedfe0..f356e9a6a5 100644 --- a/.github/workflows/wheel_macos_arm64.yml +++ b/.github/workflows/wheel_macos_arm64.yml @@ -105,6 +105,11 @@ jobs: run: | python -m cibuildwheel --output-dir wheelhouse + - name: Validate wheels + run: | + python -m pip install twine + python -m twine check ./wheelhouse/*.whl + - uses: actions/upload-artifact@v2 if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }} with: diff --git a/.github/workflows/wheel_macos_x86_64.yml b/.github/workflows/wheel_macos_x86_64.yml index 4811f81222..3313e09397 100644 --- a/.github/workflows/wheel_macos_x86_64.yml +++ b/.github/workflows/wheel_macos_x86_64.yml @@ -179,6 +179,11 @@ jobs: run: | python -m cibuildwheel --output-dir wheelhouse + - name: Validate wheels + run: | + python -m pip install twine + python -m twine check ./wheelhouse/*.whl + - uses: actions-ecosystem/action-regex-match@v2 id: rc_build with: diff --git a/.github/workflows/wheel_noarch.yml b/.github/workflows/wheel_noarch.yml index 9acc46d509..4eb70e9c0b 100644 --- a/.github/workflows/wheel_noarch.yml +++ b/.github/workflows/wheel_noarch.yml @@ -42,6 +42,11 @@ jobs: env: SKIP_COMPILATION: True + - name: Validate wheels + run: | + python -m pip install twine + python -m twine check main/dist/*.whl + - uses: actions/upload-artifact@v2 if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }} with: diff --git a/.github/workflows/wheel_win_x86_64.yml b/.github/workflows/wheel_win_x86_64.yml index 3fffecf379..926dbb0151 100644 --- a/.github/workflows/wheel_win_x86_64.yml +++ b/.github/workflows/wheel_win_x86_64.yml @@ -182,6 +182,11 @@ jobs: } cd .. + - name: Validate wheels + run: | + python -m pip install twine + python -m twine check ./wheelhouse/*.whl + - uses: actions-ecosystem/action-regex-match@v2 id: rc_build with: diff --git a/pennylane_lightning/_version.py b/pennylane_lightning/_version.py index 96347d2310..8dab0a1c06 100644 --- a/pennylane_lightning/_version.py +++ b/pennylane_lightning/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.30.0-dev2" +__version__ = "0.30.0-dev3"