Skip to content

Commit

Permalink
Merge pull request #48 from AllYarnsAreBeautiful/pypi-upload2
Browse files Browse the repository at this point in the history
uploading to pypi only once
  • Loading branch information
niccokunzmann committed Jul 14, 2016
2 parents 7e6de40 + 9465427 commit bc23e06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ environment:
# isn't covered by this document) at the time of writing.

- PYTHON: "C:\\Python33"
UPLOAD_TO_PYPI: true
- PYTHON: "C:\\Python34"
UPLOAD_TO_PYPI: false
- PYTHON: "C:\\Python35"
UPLOAD_TO_PYPI: false
# 64 bit does not make a difference
# - PYTHON: "C:\\Python33-x64"
# DISTUTILS_USE_SDK: "1"
Expand Down Expand Up @@ -65,5 +68,6 @@ on_success:
# see http://www.appveyor.com/docs/branches#build-on-tags-github-and-gitlab-only
- echo %APPVEYOR_REPO_TAG%
- echo %APPVEYOR_REPO_TAG_NAME%
- "IF %APPVEYOR_REPO_TAG% == true ( FOR /F %%V IN ('%PYTHON%\\python.exe setup.py --version') DO ( IF \"v%%V\" == \"%APPVEYOR_REPO_TAG_NAME%\" ( %PYTHON%\\python.exe setup.py sdist bdist_wininst upload || echo \"Error because the build is already uploaded.\" ) ELSE ( echo \"Invalid tag %APPVEYOR_REPO_TAG_NAME% should be v%%V.\" ) ) ) ELSE ( echo \"Normal build without PyPi deployment.\" )"
- echo %UPLOAD_TO_PYPI%
- "IF %APPVEYOR_REPO_TAG% == true ( if \"%UPLOAD_TO_PYPI%\" == \"true\" ( FOR /F %%V IN ('%PYTHON%\\python.exe setup.py --version') DO ( IF \"v%%V\" == \"%APPVEYOR_REPO_TAG_NAME%\" ( %PYTHON%\\python.exe setup.py bdist_wininst upload || echo \"Error because the build is already uploaded.\" ) ELSE ( echo \"Invalid tag %APPVEYOR_REPO_TAG_NAME% should be v%%V.\" ) ) ) ELSE ( echo \"Upload skipped.\" ) ) ELSE ( echo \"Normal build without PyPi deployment.\" )"

2 changes: 1 addition & 1 deletion knittingpattern/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# there should be no imports

#: the version of the knitting pattern library
__version__ = '0.1.12'
__version__ = '0.1.13'

#: an empty knitting pattern set as specification
EMPTY_KNITTING_PATTERN_SET = {"version": "0.1", "type": "knitting pattern",
Expand Down

0 comments on commit bc23e06

Please sign in to comment.