Skip to content

Commit 04f3a52

Browse files
try to fix license files not be accepting by twine
1 parent 5436c02 commit 04f3a52

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,19 @@ jobs:
157157
${{ matrix.python-version }} -m pip install --upgrade wheel
158158
${{ matrix.python-version }} -m pip install --upgrade setuptools
159159
${{ matrix.python-version }} -m pip install --upgrade build
160-
if [[ "${{ matrix.python-version }}" == pypy* ]]; then
161-
${{ matrix.python-version }} -m pip install "auditwheel<5.0"
162-
else
160+
if [[ "${{ matrix.python-version }}" != pypy* ]]; then
163161
${{ matrix.python-version }} -m pip install --upgrade auditwheel
162+
${{ matrix.python-version }} -m pip install --upgrade patchelf
163+
${{ matrix.python-version }} -m pip show -f patchelf
164164
fi
165-
${{ matrix.python-version }} -m pip install --upgrade patchelf
166-
${{ matrix.python-version }} -m pip show -f patchelf
167165
${{ matrix.python-version }} -m build --wheel
168-
${{ matrix.python-version }} -m auditwheel -v show dist/*.whl
169-
${{ matrix.python-version }} -m auditwheel repair dist/*.whl
166+
if [[ "${{ matrix.python-version }}" != pypy* ]]; then
167+
${{ matrix.python-version }} -m auditwheel -v show dist/*.whl
168+
${{ matrix.python-version }} -m auditwheel repair dist/*.whl
169+
else
170+
mkdir -p wheelhouse
171+
cp dist/*.whl wheelhouse/
172+
fi
170173
shell: bash
171174
- name: Rename wheel for testing
172175
run: |

0 commit comments

Comments
 (0)