Skip to content

Commit

Permalink
[appveyor] redirect stderr for twine inside powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Oct 27, 2017
1 parent b551153 commit 2d211eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ environment:
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C %APPVEYOR_BUILD_FOLDER%\\multibuild\\ci\\appveyor\\windows_sdk.cmd"
# PyPI username and encrypted password
PYPI_USER: anthrotype
PYPI_PSWD:
TWINE_USERNAME: anthrotype
TWINE_PASSWORD:
secure: i3kDZLpYJy081xLBTe0AjA==

matrix:
Expand Down Expand Up @@ -89,7 +89,9 @@ on_success:
if($env:APPVEYOR_REPO_TAG -eq 'true') {
Write-Output ("Deploying " + $env:APPVEYOR_REPO_TAG_NAME + " to PyPI...")
pip install --upgrade twine
twine upload -u $env:PYPI_USER -p $env:PYPI_PSWD dist\*.whl
# If powershell ever sees anything on stderr it thinks it's a fail.
# So we use cmd to redirect stderr to stdout before PS can see it.
cmd /c 'twine upload dist\*.whl 2>&1'
} else {
Write-Output "Not deploying as this is not a tagged commit"
}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def run(self):

setup(
name='zopfli',
version='0.1.2',
version='0.1.3',
author='Adam DePrince',
author_email='[email protected]',
maintainer='Cosimo Lupo',
Expand Down

0 comments on commit 2d211eb

Please sign in to comment.