[Bug 279338] PYPI MASTERSITE broken for tools that conform to pep 625 filename normalization

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 May 2024 20:55:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279338

            Bug ID: 279338
           Summary: PYPI MASTERSITE broken for tools that conform to pep
                    625 filename normalization
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://peps.python.org/pep-0625/
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dereks@lifeofadishwasher.com

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/

-- 
You are receiving this mail because:
You are the assignee for the bug.