bioconda / bioconda-recipes

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

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

Open corneliusroemer opened 3 months ago

corneliusroemer commented 3 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 3 months ago

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