From bdcb5095f8d2a7a7caab65a8f15c8227f60cb7b2 Mon Sep 17 00:00:00 2001 From: Thomas Pellissier-Tanon Date: Fri, 12 Jun 2026 10:15:35 +0200 Subject: [PATCH 1/2] pyo3-introspection Fixes wheel publishing - The artifact directory was wrong during publishing - Validate wheels after build - Remove license files that were not properly included in source wheels (the `License: MIT OR Apache-2.0` metadata line is still there) --- .github/workflows/python-wheel.yml | 6 ++++++ pyo3-introspection/LICENSE-APACHE | 1 - pyo3-introspection/LICENSE-MIT | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) delete mode 120000 pyo3-introspection/LICENSE-APACHE delete mode 120000 pyo3-introspection/LICENSE-MIT diff --git a/.github/workflows/python-wheel.yml b/.github/workflows/python-wheel.yml index a6f19b5b385..13754de2715 100644 --- a/.github/workflows/python-wheel.yml +++ b/.github/workflows/python-wheel.yml @@ -26,6 +26,7 @@ jobs: args: --release --out dist --compatibility pypi manylinux: auto working-directory: pyo3-introspection + - run: uvx twine check pyo3-introspection/dist/* - uses: actions/upload-artifact@v7 with: name: wheels-linux-${{ matrix.target }} @@ -50,6 +51,7 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --compatibility pypi working-directory: pyo3-introspection + - run: uvx twine check pyo3-introspection/dist/* - uses: actions/upload-artifact@v7 with: name: wheels-windows-${{ matrix.platform.target }} @@ -71,6 +73,7 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --compatibility pypi working-directory: pyo3-introspection + - run: uvx twine check pyo3-introspection/dist/* - uses: actions/upload-artifact@v7 with: name: wheels-macos-${{ matrix.platform.target }} @@ -85,6 +88,7 @@ jobs: command: sdist args: --out dist working-directory: pyo3-introspection + - run: uvx twine check pyo3-introspection/dist/* - uses: actions/upload-artifact@v7 with: name: wheels-sdist @@ -105,3 +109,5 @@ jobs: path: pyo3-introspection/dist merge-multiple: true - uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: pyo3-introspection/dist diff --git a/pyo3-introspection/LICENSE-APACHE b/pyo3-introspection/LICENSE-APACHE deleted file mode 120000 index 965b606f331..00000000000 --- a/pyo3-introspection/LICENSE-APACHE +++ /dev/null @@ -1 +0,0 @@ -../LICENSE-APACHE \ No newline at end of file diff --git a/pyo3-introspection/LICENSE-MIT b/pyo3-introspection/LICENSE-MIT deleted file mode 120000 index 76219eb72e8..00000000000 --- a/pyo3-introspection/LICENSE-MIT +++ /dev/null @@ -1 +0,0 @@ -../LICENSE-MIT \ No newline at end of file From 63d19e559d48557aca4d0e8e91d44bdc6cf87967 Mon Sep 17 00:00:00 2001 From: Thomas Pellissier-Tanon Date: Mon, 22 Jun 2026 18:21:42 +0200 Subject: [PATCH 2/2] Properly install uvx --- .github/workflows/python-wheel.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-wheel.yml b/.github/workflows/python-wheel.yml index 13754de2715..99c5068560f 100644 --- a/.github/workflows/python-wheel.yml +++ b/.github/workflows/python-wheel.yml @@ -26,6 +26,7 @@ jobs: args: --release --out dist --compatibility pypi manylinux: auto working-directory: pyo3-introspection + - uses: astral-sh/setup-uv@v8.1.0 - run: uvx twine check pyo3-introspection/dist/* - uses: actions/upload-artifact@v7 with: @@ -51,6 +52,7 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --compatibility pypi working-directory: pyo3-introspection + - uses: astral-sh/setup-uv@v8.1.0 - run: uvx twine check pyo3-introspection/dist/* - uses: actions/upload-artifact@v7 with: @@ -73,6 +75,7 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --compatibility pypi working-directory: pyo3-introspection + - uses: astral-sh/setup-uv@v8.1.0 - run: uvx twine check pyo3-introspection/dist/* - uses: actions/upload-artifact@v7 with: @@ -88,6 +91,7 @@ jobs: command: sdist args: --out dist working-directory: pyo3-introspection + - uses: astral-sh/setup-uv@v8.1.0 - run: uvx twine check pyo3-introspection/dist/* - uses: actions/upload-artifact@v7 with: