-
Notifications
You must be signed in to change notification settings - Fork 243
Description
Copying scientific-python/upload-nightly-action#57 here to get feedback from the Anaconda team. This is a breaking behavior change, so advice on how to proceed would be quite welcome.
Anaconda Cloud seems to have changed how they handle uploads of packages where there is already a package of the same name and version on Anaconda Cloud. In the past, this simply just resulted in the artifact being uploaded overwriting the previous artifact.
networkx
is one of the core packages that used this approach. However, I noticed thatnetworkx
's nightly workflow is failing to do so... File type is "Standard Python" Extracting standard python attributes for upload Creating package "networkx" Creating release "3.3rc0.dev0" Uploading file "scientific-python-nightly-wheels/networkx/3.3rc0.dev0/networkx-3.3rc0.dev0-py3-none-any.whl" Warning: Distribution "networkx-3.3rc0.dev0-py3-none-any.whl" already exists. Removing. Error: ("release version='3.3rc0.dev0' does not exist", 404) ##[debug]Docker Action run completed with exit code 1 ##[debug]Finishing: Upload nighlty wheel
(The success after failure is due to the package being removed and so there is no conflict the next upload.)
This started happening on 2024-01-04 for
networkx
, and was not happening before that. For example, this 2024-01-02 upload ran successfully+ anaconda --token *** upload --force --user scientific-python-nightly-wheels dist/networkx-3.3rc0.dev0-py3-none-any.whl ... Using Anaconda API: https://api.anaconda.org/ Using "scientific-python-nightly-wheels" as upload username Processing "dist/networkx-3.3rc0.dev0-py3-none-any.whl" Detecting file type... File type is "Standard Python" Extracting standard python attributes for upload Creating package "networkx" Creating release "3.3rc0.dev0" Uploading file "scientific-python-nightly-wheels/networkx/3.3rc0.dev0/networkx-3.3rc0.dev0-py3-none-any.whl" Warning: Distribution "networkx-3.3rc0.dev0-py3-none-any.whl" already exists. Removing. 0%| | 0.00/1.59M [00:00<?, ?B/s] 1.59MB [00:00, 5.26MB/s] Upload complete standard python located at: https://anaconda.org/scientific-python-nightly-wheels/networkx
We know that as we're using a lock file that nothing has changed from the
upload-nightly-action
action side, and so this has to be on the Anaconda Cloud side.