Skip to content

Commit

Permalink
Make twine check distribution files before uploading AppVeyor artif…
Browse files Browse the repository at this point in the history
…acts
  • Loading branch information
althonos committed Sep 4, 2020
1 parent df35c72 commit d46eacb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ test_script:
- "%PYTHON%\\python.exe -m unittest discover -b -v"

before_deploy:
- "%WITH_ENV% %PYTHON%\\python.exe setup.py sdist bdist_wheel"
- "%PYTHON%\\python.exe setup.py sdist bdist_wheel"
- "%PYTHON%\\python.exe -m twine check dist\\*"

deploy_script:
- ps: .\ci\appveyor\deploy.ps1
2 changes: 1 addition & 1 deletion ci/appveyor/deploy.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
If ($env:APPVEYOR_REPO_TAG -eq "true") {
Invoke-Expression "twine upload --skip-existing dist/*.whl" 2>$null
Invoke-Expression "$env:PYTHON\\python.exe -m twine upload --skip-existing dist\\*.whl"
} Else {
write-output "Not on a tag on master, won't deploy to PyPI"
}

0 comments on commit d46eacb

Please sign in to comment.