Skip to content

Commit 8891a6e

Browse files
committed
Fix build steps
1 parent c1feabe commit 8891a6e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

ci/repartition-index.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff 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 }}:

ci/upload.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
UPLOAD_USER = os.getenv("UPLOAD_USER", "")
1616
NO_UPLOAD = os.getenv("NO_UPLOAD", "no")[:1].lower() in "yt1"
1717

18+
# Set to 'true' when updating index.json, rather than the app
1819
UPLOADING_INDEX = os.getenv("UPLOADING_INDEX", "no")[:1].lower() in "yt1"
1920

2021

0 commit comments

Comments
 (0)