Skip to content

Commit

Permalink
Appveyor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkittenis committed May 18, 2018
1 parent 6f00294 commit be09668
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ artifacts:
- path: "*.whl"

deploy_script:
- IF "%APPVEYOR_REPO_TAG%" == "true"( python ci/appveyor/pypi_upload.py *.whl )
- python ci/appveyor/pypi_upload.py *.whl
6 changes: 4 additions & 2 deletions ci/appveyor/pypi_upload.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from __future__ import print_function

import sys
import subprocess
import os


def upload_pypi(files):
repo_tag = os.environ['APPVEYOR_REPO_TAG']
if repo_tag == 'false':
sys.stderr.write("Not a tagged release, skipping upload" + os.linesep)
return
_user, _pass = os.environ['PYPI_USER'], os.environ['PYPI_PASS']
try:
subprocess.check_call(['twine', 'upload', '-u', _user,
Expand Down

0 comments on commit be09668

Please sign in to comment.