Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend anaconda copy to allow name & version changes #616

Open
msaroufim opened this issue Jul 29, 2022 · 0 comments
Open

Extend anaconda copy to allow name & version changes #616

msaroufim opened this issue Jul 29, 2022 · 0 comments

Comments

@msaroufim
Copy link

msaroufim commented Jul 29, 2022

What is the idea?

I'd like to be able to download some conda binaries from https://anaconda.org/pytorch-nightly/torchserve-nightly and then promote them to https://anaconda.org/pytorch/torchserve. Version numbers for nightly scripts will include some date like 20220709 and the official release versions will look something like 0.6.0 https://docs.anaconda.com/anaconda-repository/user-guide/tasks/pkgs/copy-pkg/

So basically I'd like an extension of anaconda copy --old-name conda-forge/glueviz/20220101 --to jsmith/glueviz/0.23

But I'm not sure how to go about renaming a conda package even manually (would happily do so if an automated solution is ways out)

Why is this needed?

My team has a Github Action that takes care of uploading conda binaries for our package on a nightly basis pytorch/serve#1685

When that PR is landed we will be able to do official releases by using another manually triggerable Github Action which takes in as arguments a nightly release date to promote from and an official release version to promote to. The script will work by downloading a nightly release, renaming it and then reuploading to an official channel. This is somewhat easy to do with PyPi https://github.com/pytorch/serve/blob/master/binaries/pip/retag_pypi_binary.sh and especially easy with Docker with their docker tag

What else did I try?

I tried writing my own script which would do this change manually but the bz2 file I end up with doesn't get recognized by conda

Was asked here to put this issue here instead conda/conda#11613

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant