Bug 279338 - PYPI MASTERSITE broken for tools that conform to pep 625 filename normalization
Summary: PYPI MASTERSITE broken for tools that conform to pep 625 filename normalization
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://peps.python.org/pep-0625/
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-26 20:55 UTC by Derek Schrock
Modified: 2024-05-26 20:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/