Skip to content

Commit 06aa144

Browse files
FIX: Keep the filenames of verified wheels unchanged
* Once a wheel has been created through a build process and its metadata set and verified it should not be altered as this can invalidate the metadata. A package can have a project name that is '-' seperated and a wheel filename that is '_' seperated and still be fine.
1 parent d65af28 commit 06aa144

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/upload_to_anaconda_staging.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ upload_wheels() {
1313
VERSION=$(git describe --tags --abbrev=8)
1414
popd
1515

16-
# if only rename was built-in to bash...
17-
for f in dist/*.whl; do cp $f "${f/scipy_openblas/scipy-openblas}"; done
1816
if [ "$OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN" != "" ]; then
1917
echo "Uploading OpenBLAS $VERSION to anaconda.org/multibuild-wheels-staging"
2018

2119
anaconda -t $OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN upload \
2220
--no-progress --force -u multibuild-wheels-staging \
23-
dist/scipy-openblas*.whl
21+
dist/scipy_openblas*.whl
2422

2523
fi
2624
if [ "$ANACONDA_SCIENTIFIC_PYTHON_UPLOAD" == "" ]; then
@@ -30,7 +28,7 @@ upload_wheels() {
3028

3129
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \
3230
--no-progress --force -u scientific-python-nightly-wheels \
33-
dist/scipy-openblas*.whl
31+
dist/scipy_openblas*.whl
3432

3533
tarballs=$(ls -d builds/openblas*.zip libs/openblas*.tar.gz 2>/dev/null)
3634
anaconda -t $ANACONDA_SCIENTIFIC_PYTHON_UPLOAD upload \

0 commit comments

Comments
 (0)