Skip to content

Commit 6e14236

Browse files
committed
Try fix PyPI naming conventions
1 parent 517cf44 commit 6e14236

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/pypi_release.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,17 @@ jobs:
5959
python -m build --sdist --wheel
6060
cd dist
6161
# numpy-2.2.0-pp310-pypy310_pp73-macosx_14_0_x86_64.whl
62-
for file in *.whl; do \
62+
for file in *.whl; do \
6363
newname=$(echo "$file" | sed -E 's/-py3-none-any//'); \
6464
mv "$file" "${newname%.whl}-${{ matrix.os }}-py${{ matrix.python-version }}.whl"; \
65-
done
65+
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then \
66+
mv "${newname%.whl}-${{ matrix.os }}-py${{ matrix.python-version }}.whl" "${newname%.whl}-manylinux1_x86_64.whl"; \
67+
fi; \
68+
done
6669
cd ..
67-
70+
- name: List the files in dist directory
71+
run: |
72+
ls -l dist/
6873
- name: Store the distribution packages
6974
uses: actions/upload-artifact@v4
7075
with:

0 commit comments

Comments
 (0)