Skip to content

Commit

Permalink
Automatizing wheel upload to pypi
Browse files Browse the repository at this point in the history
Should fix issue #563
  • Loading branch information
jdavid committed May 13, 2018
1 parent c61acaf commit 3cc439c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ version: 1.0.{build}
image: Visual Studio 2015
configuration: Release
environment:
global:
TWINE_USERNAME: jdavid
TWINE_PASSWORD:
secure: m6oBGys2nmQTRn7vDv8/FA==
matrix:
- GENERATOR: 'Visual Studio 10'
PYTHON: 'C:\Python27\python.exe'
Expand All @@ -26,6 +30,7 @@ environment:

init:
- cmd: '%PYTHON% -m pip install -U nose wheel'

build_script:
- cmd: |
set LIBGIT2=%APPVEYOR_BUILD_FOLDER%\build\libgit2
Expand All @@ -40,6 +45,7 @@ build_script:
IF "%GENERATOR%"=="Visual Studio 10 Win64" ( call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" )
"%PYTHON%" setup.py bdist_wheel
test_script:
- ps: |
cp build\Release\git2.dll .
Expand All @@ -51,3 +57,8 @@ test_script:
artifacts:
- path: dist\*.whl

deploy_script:
- ps: if ($env:APPVEYOR_REPO_TAG -eq $TRUE) { pip install twine; twine upload dist/* }

deploy: on

0 comments on commit 3cc439c

Please sign in to comment.