Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strips the build hash from pypi package releases #601

Merged
merged 1 commit into from
May 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()"

Expand Down Expand Up @@ -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' )
Expand All @@ -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/*