File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ stages:
4444
4545 - powershell : |
4646 cd (mkdir -Force index)
47- python "$(Build.SourcesDirectory)\scripts\repartition-index.py" --default- windows
47+ python "$(Build.SourcesDirectory)\scripts\repartition-index.py" --windows-default
4848 displayName: 'Repartition index'
4949 workingDirectory: $(Build.BinariesDirectory)
5050
@@ -67,20 +67,17 @@ stages:
6767 displayName: 'Download PuTTY binaries'
6868
6969 - powershell : |
70- dir *.json | %{
71- pscp -batch -hostkey $env:UPLOAD_HOST_KEY -noagent -i $env:UPLOAD_KEYFILE `
72- $_ "${env:UPLOAD_USER}@${env:UPLOAD_HOST}:/srv/www.python.org/ftp/python/$($_.Name)"
73- plink -batch -hostkey $env:UPLOAD_HOST_KEY
74- }
70+ python ci\upload.py
7571 displayName: 'Publish packages'
7672 env:
77- UPLOAD_URL: $(PyDotOrgUrlPrefix)python/pymanager
78- UPLOAD_DIR: $(DIST_DIR)
73+ UPLOAD_URL: $(PyDotOrgUrlPrefix)python/
74+ UPLOAD_DIR: $(Build.BinariesDirectory)\index
7975 UPLOAD_URL_PREFIX: $(PyDotOrgUrlPrefix)
8076 UPLOAD_PATH_PREFIX: $(PyDotOrgUploadPathPrefix)
8177 UPLOAD_HOST: $(PyDotOrgServer)
8278 UPLOAD_HOST_KEY: $(PyDotOrgHostKey)
8379 UPLOAD_USER: $(PyDotOrgUsername)
80+ UPLOADING_INDEX: true
8481 ${{ if eq(parameters.TestPublish, 'true') }}:
8582 NO_UPLOAD: 1
8683 ${{ else }}:
Original file line number Diff line number Diff line change 1515UPLOAD_USER = os .getenv ("UPLOAD_USER" , "" )
1616NO_UPLOAD = os .getenv ("NO_UPLOAD" , "no" )[:1 ].lower () in "yt1"
1717
18+ # Set to 'true' when updating index.json, rather than the app
1819UPLOADING_INDEX = os .getenv ("UPLOADING_INDEX" , "no" )[:1 ].lower () in "yt1"
1920
2021
You can’t perform that action at this time.
0 commit comments