On 14/08/2024 08:17, Brian Inglis via Cygwin-apps wrote:
new source packages on pythonhosted appear to change dashes in package
names to underscores in archive names and directories, for example:

python-license-expression ->
license-expression ->
https://files.pythonhosted.org/packages/source/l/license_expression/license_expression-30.3.1.tar.gz
-> license_expression-30.3.1/

although dashes in pythonhosted package directory names
still seem to work as an alternative:

https://files.pythonhosted.org/packages/source/l/license{-,_}expression/license_expression-30.3.1.tar.gz

but dashes work and underscores do not in older package version
archives, although underscores in pythonhosted package directory names
still seem to work as an alternative:

https://files.pythonhosted.org/packages/source/l/license{-,_}expression/license-expression-30.3.0.tar.gz

Thanks for this.

Sorry about the delay in looking at this, but I have been very short of time recently.

So, first off, I am a bit unhappy about guessing how this supposed to work. Have PyPI not made any announcement of this change, explaining exactly what it is?

Secondly, I'm not crazy about the "try all the alternatives" approach. Perhaps it would be better to form the URL using the current (new) rules, with an escape (e.g. define PYTHON_ORG_OLD_STYLE_URL to form it using the old rules)?

Reply via email to