From e424f83ceb0856204c96b1abac93a1cfe205df4a Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 31 Jul 2020 12:02:57 +0200 Subject: [PATCH] try to fix appveyor upload condition --- appveyor.yml | 6 +----- tools/tasks.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index a95ec881f..b53aaf4b4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -102,17 +102,13 @@ test_script: after_test: # If tests are successful, create binary packages for the project. - ps: ls dist - # Upload whl files if building a tag on master branch. The latest Python 3 - # is specified here because twine doesn't support older versions. + # Upload whl files if building a tag. - > - IF "%APPVEYOR_REPO_BRANCH%" == "master" - ( IF "%APPVEYOR_REPO_TAG%" == "true" ( python3 -m pip install twine && python3 -m twine upload --verbose --skip-existing dist/*.whl ) - ) artifacts: # Archive the generated packages in the ci.appveyor.com build report. diff --git a/tools/tasks.py b/tools/tasks.py index 35193c34f..31070a1dc 100644 --- a/tools/tasks.py +++ b/tools/tasks.py @@ -344,7 +344,7 @@ def appveyor_artifacts(ctx, vs, dest='win-dist', upload=False): f.write(chunk) if upload: py = make_env(default_py, 'twine') - run(['twine', 'upload', '{}/*'.format(dest)]) + run(['twine', 'upload', '--skip-existing', '{}/*'.format(dest)]) else: print("You can now upload these wheels with: ") print(" twine upload {}/*".format(dest))