Bug 279338

Summary: PYPI MASTERSITE broken for tools that conform to pep 625 filename normalization
Product: Ports & Packages Reporter: Derek Schrock <dereks>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://peps.python.org/pep-0625/

Description Derek Schrock 2024-05-26 20:55:19 UTC
As seen with https://pypi.org/project/python-gitlab/4.5.0/ [1] the filename found on https://files.pythonhosted.org/packages/source filenames that contain a hyphenated project name replacing will now be a normalized replacing the - with _ making the URL before:

https://files.pythonhosted.org/packages/source/p/python-gitlab/python-gitlab-4.5.0.tar.gz

to 

https://files.pythonhosted.org/packages/source/p/python-gitlab/python_gitlab-4.5.0.tar.gz

The sdist filename [2] is being normalized to support pip625 [3].

It appearas that maybe some tools/utilities are following this.  Should ports support both x-y-ver.tar.gz and x_y-var.tar.gz?

[1] https://github.com/python-gitlab/python-gitlab/actions/runs/9070561059/job/24922596892#step:6:798
[2] https://github.com/pypa/setuptools/issues/3593
[3] https://peps.python.org/pep-0625/