Skip to content

Conversation

@charris
Copy link
Member

@charris charris commented May 18, 2025

The anaconda staging repositories have changed layout and now only 25 files are showing per page. This update uses a different URL to grab all of the names, thus avoiding the need for paging.

There are also some cleanups and added comments to make future maintenance easier.

@charris charris added this to the 2.3.0 release milestone May 18, 2025
@charris charris force-pushed the fix-download-wheels branch from f068a72 to c9eb859 Compare May 18, 2025 22:48
@andyfaff
Copy link
Member

Note, the webscape of the pypi.anaconda link will only have files for the latest version on it. Getting older versions will require a different approach.

The anaconda staging repositories have changed layout and now only
25 files are showing per page. This update uses a different URL to
grab all of the names, thus avoiding the need for paging.

There are also some cleanups and added comments to make future
maintenance easier.

[skip azp] [skip cirrus] [skip actions]
@charris charris force-pushed the fix-download-wheels branch from c9eb859 to c0e2559 Compare May 18, 2025 23:41
@charris
Copy link
Member Author

charris commented May 18, 2025

pypi.anaconda link will only have files for the latest version on it

Seems to do fine with all the versions that are there:

charris@fedora [numpy.git (fix-download-wheels)]$ python tools/download-wheels.py -t 2.2.5
1   numpy-2.2.5-cp310-cp310-macosx_10_9_x86_64.whl 20.27MB
2   numpy-2.2.5-cp310-cp310-macosx_11_0_arm64.whl 13.76MB
3   numpy-2.2.5-cp310-cp310-macosx_14_0_arm64.whl 5.18MB
...

@andyfaff
Copy link
Member

It may be due to how frequently the staging directories get cleaned out. For scipy there's two point versions. I tested the changes here and they LGTM.

@andyfaff andyfaff merged commit e927ee4 into numpy:main May 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants