From 7ac9e9ed1c2d29de73ecaed8a6919dda5875e2c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Mart=C3=ADnez=20Gonz=C3=A1lez?= Date: Fri, 7 Feb 2025 11:01:26 -0500 Subject: [PATCH 1/4] Fixes to publish to pypi --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 76f89cc..e0dbfb5 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -182,7 +182,7 @@ jobs: uses: actions/download-artifact@v4 with: path: dist - merge-multiple: true + merge-multiple: false - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 From 1859fca0fd926b5b5b908fff3a795d8284a65da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Mart=C3=ADnez=20Gonz=C3=A1lez?= Date: Fri, 7 Feb 2025 11:15:24 -0500 Subject: [PATCH 2/4] Fixes to publish to pypi --- .github/workflows/build_wheels.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index e0dbfb5..53aa520 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -183,6 +183,11 @@ jobs: with: path: dist merge-multiple: false + - name: check wheels + run: | + for wheel in dist/*.whl; do + head -c 4 wheelhouse/qc_PyCI-0.6.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | hexdump -C + done - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 From 0165cb40c05c61c69d894687035b2d0d4f607e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Mart=C3=ADnez=20Gonz=C3=A1lez?= Date: Fri, 7 Feb 2025 12:34:56 -0500 Subject: [PATCH 3/4] Fixes to publish to pypi --- .github/workflows/build_wheels.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 53aa520..a5cdac7 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -140,7 +140,7 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3 env: - CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}* + CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}_${{ matrix.buildplat[2] }} CIBW_ARCHS: ${{ matrix.buildplat[2] }} CIBW_PRERELEASE_PYTHONS: True CIBW_FREE_THREADED_SUPPORT: True @@ -183,6 +183,7 @@ jobs: with: path: dist merge-multiple: false + - name: check wheels run: | for wheel in dist/*.whl; do From 109414be4844225316a30a41b0e1ce18d87d2eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Mart=C3=ADnez=20Gonz=C3=A1lez?= Date: Fri, 7 Feb 2025 13:06:59 -0500 Subject: [PATCH 4/4] Fixes to publish to pypi --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.py b/setup.py index c617fe2..3b84899 100644 --- a/setup.py +++ b/setup.py @@ -9,9 +9,7 @@ def finalize_options(self): self.root_is_pure = False def get_tag(self): - python, abi, plat = _bdist_wheel.get_tag(self) - python, abi = 'py3', 'none' - return python, abi, plat + return _bdist_wheel.get_tag(self) class MyDistribution(Distribution):