@@ -138,19 +138,19 @@ stages:
138138 auditwheel repair dist/*linux_x86_64.whl --plat manylinux2014_x86_64 -w wheelhouse-manylinux/
139139 displayName: 'Audit wheels'
140140
141- # - task: DownloadSecureFile@1
142- # name: PYPIRC_CONFIG
143- # displayName: 'Download pypirc'
144- # inputs:
145- # secureFile: 'pypirc'
141+ - task : DownloadSecureFile@1
142+ name : PYPIRC_CONFIG
143+ displayName : ' Download pypirc'
144+ inputs :
145+ secureFile : ' pypirc'
146146
147- # - bash: |
148- # "${PYBIN}/python" -m pip install twine
149- # "${PYBIN}/python" -m twine upload -r testpypi --config-file $(PYPIRC_CONFIG.secureFilePath) --skip-existing --disable-progress-bar wheelhouse-manylinux/*
150- # "${PYBIN}/python" -m twine upload -r testpypi --config-file $(PYPIRC_CONFIG.secureFilePath) --skip-existing --disable-progress-bar dist/*.tar.gz
151- # displayName: 'Publish wheel to PyPi'
152- # env:
153- # PYBIN: /opt/python/$(python.version)/bin
147+ - bash : |
148+ "${PYBIN}/python" -m pip install twine
149+ "${PYBIN}/python" -m twine upload -r pypi --config-file $(PYPIRC_CONFIG.secureFilePath) --skip-existing --disable-progress-bar wheelhouse-manylinux/*
150+ "${PYBIN}/python" -m twine upload -r pypi --config-file $(PYPIRC_CONFIG.secureFilePath) --skip-existing --disable-progress-bar dist/*.tar.gz
151+ displayName: 'Publish wheel to PyPi'
152+ env:
153+ PYBIN: /opt/python/$(python.version)/bin
154154
155155 - job : BuildWindowsAndMacOSArtifacts
156156 displayName : Build source dists and wheels for windows and macOS
@@ -216,14 +216,14 @@ stages:
216216 displayName: Raise error if version doesnt match tag
217217 condition: and(succeeded(), ne(variables['Build.SourceBranchName'], variables['packageVersionFormatted']))
218218
219- # - task: DownloadSecureFile@1
220- # name: PYPIRC_CONFIG
221- # displayName: 'Download pypirc'
222- # inputs:
223- # secureFile: 'pypirc'
224-
225- # - script: |
226- # pip install twine
227- # twine upload -r testpypi --config-file $(PYPIRC_CONFIG.secureFilePath) --skip-existing dist/*
228- # displayName: 'Upload to PyPI'
229- # condition: and(succeeded(), eq(variables['Build.SourceBranchName'], variables['packageVersionFormatted']))
219+ - task : DownloadSecureFile@1
220+ name : PYPIRC_CONFIG
221+ displayName : ' Download pypirc'
222+ inputs :
223+ secureFile : ' pypirc'
224+
225+ - script : |
226+ pip install twine
227+ twine upload -r pypi --config-file $(PYPIRC_CONFIG.secureFilePath) --skip-existing dist/*
228+ displayName: 'Upload to PyPI'
229+ condition: and(succeeded(), eq(variables['Build.SourceBranchName'], variables['packageVersionFormatted']))
0 commit comments