Bug 2361631

Summary: python-pytest-testinfra FTBFS in rawhide
Product: [Fedora] Fedora Reporter: Lumír Balhar <lbalhar>
Component: python-pytest-testinfraAssignee: Martin Hoyer <mhoyer>
Status: MODIFIED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: chedi.toueiti, cn137, mhoyer, mhroncok
Target Milestone: ---Flags: mhroncok: needinfo? (chedi.toueiti)
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
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: 2322407, 2339432    

Description Lumír Balhar 2025-04-22 11:12:55 UTC
The sources defined in the specfile cannot be downloaded:

$ spectool -g *.spec
error: %changelog not in descending chronological order
Downloading: https://files.pythonhosted.org/packages/source/p/pytest_testinfra/pytest_testinfra-10.1.1.tar.gz
Download failed:
404 Client Error: Not Found for url: https://files.pythonhosted.org/packages/source/p/pytest_testinfra/pytest_testinfra-10.1.1.tar.gz

and the name of the tarball is different than what is in the sources:

SHA512 (pytest-testinfra-10.1.1.tar.gz) = 6173937b03eaefb84a95b6fca616092ea0649f880fd1bccef6364f338b859bda8d09d706b517625b81cff4f663ababa766dac82d4d094c38683d9b170909f6c9

Reproducible: Always

Comment 1 Miro Hrončok 2025-05-06 21:45:35 UTC
Any chance you could fix that?

Comment 2 Miro Hrončok 2025-05-06 21:46:24 UTC
Sorry, I clicked the wrong item in the list, the needinfo was supposed to be on the assignee.

Comment 3 Fedora Admin user for bugzilla script actions 2025-05-07 03:17:30 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Martin Hoyer 2025-05-07 09:25:25 UTC
Probably my fault. Will try to fix it asap.

Comment 5 Martin Hoyer 2025-05-07 09:53:33 UTC
I remember now, it's already in rawhide. The pypi package name is `pytest-testinfra` while source tar is with underscore. 
One could presume that the pypi_source macro is taking the name of package as argument to be fair.

-Source:         %{pypi_source pytest-testinfra}
+Source:         %{pypi_source pytest_testinfra}

Will backport to the branches.

Comment 6 Fedora Admin user for bugzilla script actions 2025-05-07 16:38:09 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 7 Miro Hrončok 2025-05-07 17:06:43 UTC
That change in rawhide broke this.

The correct form is %{pypi_source pytest-testinfra} at least for the packaged version.

For newer versions, %{pypi_source pytest_testinfra} will be needed, but not for 10.1.1