From 77e4240a1a3e744ccd4424b4c6c1f0db0dba118c Mon Sep 17 00:00:00 2001 From: mattip Date: Tue, 15 Sep 2026 09:28:21 +0300 Subject: [PATCH] fix wheel renaming for pypy --- .github/workflows/cibuildwheel.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 1eeb9c6..dfb5bef 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -81,12 +81,13 @@ jobs: pypy -m pip install -r test_requirements.txt build pypy -m pytest vmprof -v || FAILED=true pypy -m pytest jitlog -v || FAILED=true - if [ "FAILED" == true ]; then exit 1; fi - # The wheel name is something like - # vmprof-0.4.15-py3-none-any.whl - # when it should be - # vmprof-0.4.15-pp3-none-any.whl - rename 's/py3/pp3/' vmprof-*.whl + if [ "$FAILED" == true ]; then exit 1; fi + # The wheel is pure python and comes out as + # vmprof-*-py3-none-any.whl + # which pip would also pick on CPython. Tag it for this PyPy + # version instead + TAG=$(pypy -c "import sys; print('pp%d%d' % sys.version_info[:2])") + rename "s/py3-none-any/$TAG-none-any/" vmprof-*.whl - name: Build sdist run: |