Uploading windows wheels to pypi via Azure

This commit is contained in:
Thomas Ferreira de Lima 2019-04-02 23:08:37 -04:00
parent c5ea287158
commit d5031b09e4
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 9 additions and 1 deletions

View File

@ -101,7 +101,7 @@ jobs:
artifactName: 'wheel-$(python.version).$(python.architecture)' artifactName: 'wheel-$(python.version).$(python.architecture)'
- job: 'Deploy' - job: 'Deploy'
displayName: 'Combine Windows wheels' displayName: 'Combine Windows wheels and deploy to PyPI'
dependsOn: Build dependsOn: Build
pool: pool:
vmImage: 'vs2017-win2016' # other options: 'macOS-10.13', 'ubuntu-16.04' vmImage: 'vs2017-win2016' # other options: 'macOS-10.13', 'ubuntu-16.04'
@ -149,4 +149,12 @@ jobs:
inputs: inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)' pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'windows_wheels' artifactName: 'windows_wheels'
- bash: |
pip install -U twine
twine upload --skip-existing $BUILD_ARTIFACTSTAGINGDIRECTORY/*
env:
TWINE_USERNAME: $(TWINE_USERNAME)
TWINE_PASSWORD: $(TWINE_PASSWORD)
TWINE_REPOSITORY_URL: $(TWINE_REPOSITORY_URL)
displayName: 'Uploading to PyPI'