bioconda / bioconda-recipes

Conda recipes for the bioconda channel.
https://bioconda.github.io
MIT License
1.65k stars 3.29k forks source link

Migrate urls from files.pythonhosted.org/packages/$sha to sha-less url for autobump compatibility #49244

Open corneliusroemer opened 4 months ago

corneliusroemer commented 4 months ago

Autobump is (often) not able to work with pypi source urls that include a sha like:

url: https://files.pythonhosted.org/packages/a4/22/39d1b2ae26ba833c994c4019995a67c10edceec99c27f227f5cdf989ab09/isa-rwval-{{ version }}.tar.gz

The solution is to use the predictable URL:

https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/isa-rwval-{{ version }}.tar.gz

There are around 130 recipes that could benefit from this migration.

It shouldn't be hard to write a script to do this in bulk.

martin-g commented 4 months ago

https://github.com/bioconda/bioconda-recipes/pull/49234/files It appears the Bot can update such urls!