File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,8 @@ which will be triggered when the tag is pushed.
465
465
466
466
7. Download all wheels from the Anaconda repository where MacPython uploads them:
467
467
https://anaconda.org/multibuild-wheels-staging/pandas/files?version=<version>
468
- to the ``dist/ `` directory in the local pandas copy.
468
+ to the ``dist/ `` directory in the local pandas copy. You can use the script
469
+ ``scripts/download_wheels.sh `` to download all wheels at once.
469
470
470
471
8. Upload wheels to PyPI:
471
472
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # Download all wheels for a pandas version.
4
+ #
5
+ # This script is mostly useful during the release process, when wheels
6
+ # generated by the MacPython repo need to be downloaded locally to then
7
+ # be uploaded to the PyPI.
8
+ #
9
+ # There is no API to access the wheel files, so the script downloads the
10
+ # website, extracts the file urls from the html, and then downloads it
11
+ # one by one to the dist/ directory where they would be generated.
12
+
13
+ VERSION=$1
14
+ DIST_DIR=" $( realpath $( dirname -- $0 ) /../dist) "
15
+
16
+ if [ -z $VERSION ]; then
17
+ printf " Usage:\n\t$0 <version>\n\nWhere <version> is for example 1.5.3"
18
+ exit 1
19
+ fi
20
+
21
+ curl " https://anaconda.org/multibuild-wheels-staging/pandas/files?version=${VERSION} " | \
22
+ grep " href=\" /multibuild-wheels-staging/pandas/${VERSION} " | \
23
+ sed -r ' s/.*<a href="([^"]+\.whl)">.*/\1/g' | \
24
+ awk ' {print "https://anaconda.org" $0 }' | \
25
+ xargs wget -P $DIST_DIR
26
+
27
+ printf " \nWheels downloaded to $DIST_DIR \nYou can upload them to PyPI using:\n\n"
28
+ printf " \ttwine upload ${DIST_DIR} /pandas-${VERSION} *.{whl,tar.gz} --skip-existing"
You can’t perform that action at this time.
0 commit comments