From 7c5cc341ba0cbca28dc5dbf8462ece04354c347f Mon Sep 17 00:00:00 2001 From: evandrocoan Date: Thu, 30 Apr 2020 16:46:15 -0300 Subject: [PATCH] Strips the build hash from pypi package releases https://github.com/ankitects/anki/pull 535 --- .github/workflows/checks.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e8a67ef69b9..410d8ca86a4 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -250,6 +250,7 @@ jobs: cd dist setlocal EnableDelayedExpansion cmd /C set "wheels=" && for /f "delims=" %%i in ('dir /b *.*') DO set "wheels="%%i" !wheels!" + python -m pip install pyqtwebengine %wheels% python -c "import aqt; # aqt.run()" @@ -279,9 +280,15 @@ jobs: TWINE_USERNAME: __token__ run: | echo on - rm -f "dist/%pyaudio%" + cd dist + rm -f "%pyaudio%" + setlocal EnableDelayedExpansion + cmd /C set "wheels=" && for /f "delims=" %%i in ('dir /b *.*') DO set "wheels="%%i" !wheels!" + + :: https://github.com/ankitects/anki/pull/535 + perl ../scripts/rename -f "s@\+[\w\d]+-@-@g" %wheels% python -m pip install twine - twine upload --non-interactive --skip-existing --verbose dist/* + python -m twine upload --non-interactive --skip-existing --verbose ./* - name: Upload to PyPi Linux/Mac OS if: matrix.BUILD_TYPE == 'disabled' && startsWith(github.ref, 'refs/tags/') && ( matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' ) @@ -291,4 +298,7 @@ jobs: run: | set -x python -m pip install twine - twine upload --non-interactive --skip-existing --verbose dist/* + + # https://github.com/ankitects/anki/pull/535 + perl scripts/rename -f "s@\+[\w\d]+-@-@g" dist/* + python -m twine upload --non-interactive --skip-existing --verbose dist/*