Skip to content

Commit be09668

Browse files
author
Pan
committed
Appveyor fixes
1 parent 6f00294 commit be09668

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ artifacts:
128128
- path: "*.whl"
129129

130130
deploy_script:
131-
- IF "%APPVEYOR_REPO_TAG%" == "true"( python ci/appveyor/pypi_upload.py *.whl )
131+
- python ci/appveyor/pypi_upload.py *.whl

ci/appveyor/pypi_upload.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
from __future__ import print_function
2-
31
import sys
42
import subprocess
53
import os
64

75

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

0 commit comments

Comments
 (0)