Skip to content

Commit

Permalink
trying to get appveyor pypi uploads to work
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Oct 19, 2016
1 parent b2e1457 commit c686c93
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
18 changes: 15 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ environment:
secure: fWe4otuWHdusx6FemAe47mLWoaDfuEthoKo5BpSlCIrmSVgOMX05ceuDgU3TlrfE
PYPI_PASSWORD:
secure: 1Azz/T29ed78wY4IFlTtyCRUavcANMDsZ5tDhNHk9Ys=
PYPI_USERNAME: andrewannex

matrix:
- PYTHON: "C:\\Python27"
Expand Down Expand Up @@ -120,10 +119,23 @@ artifacts:

deploy_script:
- echo "Starting Artifact Deployment"
# populate pypirc file for twine
- echo [distutils] > %USERPROFILE%\\.pypirc
- echo index-servers = >> %USERPROFILE%\\.pypirc
- echo pypi >> %USERPROFILE%\\.pypirc
- echo pypitest >> %USERPROFILE%\\.pypirc
- echo [pypitest] >> %USERPROFILE%\\.pypirc
- echo repository=https://testpypi.python.org/pypi >> %USERPROFILE%\\.pypirc
- echo username=andrewannex >> %USERPROFILE%\\.pypirc
- echo password=%PYPI_PASSWORD% >> %USERPROFILE%\\.pypirc
- echo [pypi] >> %USERPROFILE%\\.pypirc
- echo repository=https://pypi.python.org/pypi >> %USERPROFILE%\\.pypirc
- echo username=andrewannex >> %USERPROFILE%\\.pypirc
- echo password=%PYPI_PASSWORD% >> %USERPROFILE%\\.pypirc
# upload to pypi for windows
- set PATH=%BK_PATH%
- ps: echo $null >> ~/.pypirc
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_BRANCH -eq "master") { Invoke-Expression "twine upload -u andrewannex -p $env:PYPI_PASSWORD --repository pypitest --repository-url https://testpypi.python.org/pypi/ --skip-existing dist/*" 2>$null } Else { write-output "Not on a tag on master, won't deploy to pypi"}
- set HOME=%USERPROFILE%
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_BRANCH -eq "master") { Invoke-Expression "twine upload -r pypitest --skip-existing dist/*" 2>$null } Else { write-output "Not on a tag on master, won't deploy to pypi"}
# upload conda builds to conda cloud
- cmd: set PATH=%CONDA%;%CONDA%/Scripts;%CONDA%/Library/bin;%PATH%
# because appveyor prints to stderror, we will run it in command mode by doing a check firs
Expand Down
2 changes: 1 addition & 1 deletion appveyor/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: spiceypy
version: "1.1.0.dev1"
version: "1.1.0.dev2"

source:
path: ../
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def __getattr__(cls, name):
# built documents.
#
# The short X.Y version.
version = '1.1.0.dev1'
version = '1.1.0.dev2'
# The full version, including alpha/beta/rc tags.
release = '1.1.0.dev1'
release = '1.1.0.dev2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def windows_method():

setup(
name='spiceypy',
version='1.1.0.dev1',
version='1.1.0.dev2',
license='MIT',
author='Andrew Annex',
author_email='[email protected]',
Expand Down

0 comments on commit c686c93

Please sign in to comment.