Bug 2233752

Summary: python36-defusedxml doesn't provide python3-defusedxml
Product: [Fedora] Fedora EPEL Reporter: Ulrik Haugen <ulrik.haugen>
Component: python-defusedxmlAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: mhroncok, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-defusedxml-0.5.0-3.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-29 02:24:09 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:

Description Ulrik Haugen 2023-08-23 09:16:39 UTC
Description of problem:
I try to package a Python program that depends on defusedxml for el7-9.

At present there is no common way to express that dependency for all el versions as python36-defusedxml on el7 only provides that name, and on el8/9 the corresponding packages are called python3-defusedxml.

The packages on el8 and -9 also provide python3dist(defusedxml) (which is what %{py3_dist defusedxml} expands to on thos el versions) (and python3.6dist(defusedxml)/python3.9dist(defusedxml)).

Version-Release number of selected component (if applicable):

python36-defusedxml-0.5.0-2.el7.noarch.rpm

How reproducible:

Always.

Steps to Reproduce:

Build package that requires "%{py3_dist defusedxml}" on el7, publish it in a yum repo and try to install it.

Actual results:

Yum complains that it cannot satisfy requirement "python3.6dist(defusedxml)" and aborts the installation.

Expected results:

Yum installs the package and python36-defusedxml along with it.

Additional info:

The py3_dist macro is what i have experienced to be the most reliable way to express Python requirements across el versions, if some other variant would be better i would be happy to be enlightend!

Comment 1 Miro Hrončok 2023-08-24 09:00:54 UTC
python3dist(...) is generally not present in EPEL 7, but I'll check out why does the package not provide python3-defusedxml.

Comment 2 Ulrik Haugen 2023-08-24 11:34:07 UTC
Ok, that would also solve my problem. Thanks!

Comment 3 Miro Hrončok 2023-08-24 13:00:32 UTC
Rebuilding the package should fix this.

Comment 4 Miro Hrončok 2023-08-24 13:13:28 UTC
https://src.fedoraproject.org/rpms/python-defusedxml/c/4947a1210ba2b15b1e8a5af36897331e13d8f685?branch=epel7

Building python-defusedxml-0.5.0-3.el7 for epel7-candidate
Created task: 105238794
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=105238794

Comment 5 Fedora Update System 2023-08-25 19:59:50 UTC
FEDORA-EPEL-2023-6b87f33fb6 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-6b87f33fb6

Comment 6 Fedora Update System 2023-08-26 02:07:18 UTC
FEDORA-EPEL-2023-6b87f33fb6 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-6b87f33fb6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Ulrik Haugen 2023-08-28 09:17:31 UTC
Testing package tested and works well. Feedback submitted to Bodhi. Thanks again!

Comment 8 Fedora Update System 2023-08-29 02:24:09 UTC
FEDORA-EPEL-2023-6b87f33fb6 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.