Bug 2442577

Summary: python-pip-requirements-parser fails to build with Python 3.15: missing whitespace in a few tests
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-pip-requirements-parserAssignee: Robert-André Mauchin 🐧 <eclipseo>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: eclipseo, ksurma, mhroncok, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-03-09 09:45:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2412434    

Description Karolina Surma 2026-02-25 09:11:39 UTC
python-pip-requirements-parser fails to build with Python 3.15.0a6.

___________ TestInstallRequirement.test_pep440_url_link_requirement ____________

self = <pip_requirements_parser_tests.unit.test_req.TestInstallRequirement testMethod=test_pep440_url_link_requirement>

    def test_pep440_url_link_requirement(self) -> None:
        line = "foo @ git+http://foo.com@ref#egg=foo"
        req = build_install_req(line)
>       assert str(req.req) == "foo @ git+http://foo.com@ref#egg=foo"
E       AssertionError: assert 'foo@ git+htt...m@ref#egg=foo' == 'foo @ git+ht...m@ref#egg=foo'
E         
E         - foo @ git+http://foo.com@ref#egg=foo
E         ?    -
E         + foo@ git+http://foo.com@ref#egg=foo

FAILED tests/pip_requirements_parser_tests/unit/test_req.py::TestInstallRequirement::test_pep440_url_link_requirement
FAILED tests/pip_requirements_parser_tests/unit/test_req.py::TestInstallRequirement::test_pep440_wheel_link_requirement
FAILED tests/pip_requirements_parser_tests/unit/test_req_file.py::TestProcessFile::test_parse_name_at_url_to_wheel_with_packaging
FAILED tests/pip_requirements_parser_tests/unit/test_req_file.py::TestProcessFile::test_parse_name_at_url__with_packaging
FAILED tests/pip_requirements_parser_tests/unit/test_req_file.py::TestProcessFile::test_parse_name_at_vcs_url_to_wheel_with_packaging
FAILED tests/pip_requirements_parser_tests/unit/test_req_file.py::TestProcessFile::test_can_dumps_name_at_url_to_wheel
FAILED tests/pip_requirements_parser_tests/unit/test_req_file.py::TestProcessFile::test_can_dumps_name_at_url_to_wheel_with_space
FAILED tests/test_pip_api_parse_requirements.py::test_parse_requirements_PEP508[test_5080]
FAILED tests/test_pip_api_parse_requirements.py::test_parse_requirements_PEP508[test_5081]

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/10163917-python-pip-requirements-parser/

For all our attempts to build python-pip-requirements-parser with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-pip-requirements-parser/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2026-03-06 17:45:57 UTC
This looks like an incompatibility with packaging < 26 introduced by https://src.fedoraproject.org/rpms/python-pip-requirements-parser/c/c308125e4b98af121d3e0522bc131895b295d39e?branch=rawhide -- please ensure packaging is updated to 26.

Comment 2 Miro Hrončok 2026-03-06 17:46:27 UTC
> please ensure packaging is updated to 26

I mean, in our copr, in https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-packaging

Comment 3 Karolina Surma 2026-03-09 09:45:39 UTC
Done, thanks. And the automatic rebuild is set up for packaging.