Bug 2008810

Summary: python3-ipmi owns /usr/lib/python3.10/site-packages/tests
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-ipmiAssignee: Luis Bazan <bazanluis20>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: bazanluis20
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ipmi-0.5.2-2.el8 python-ipmi-0.5.2-2.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-07 00:45:44 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 Miro Hrončok 2021-09-29 08:54:35 UTC
The python3-ipmi-0:0.5.1-1.fc35 package owns /usr/lib/python3.10/site-packages/tests and files within.
This clashes with other packages owning (files in) that directory.

In most cases, a "tests" module in site-packages is an error that should be corrected in upstream packaging. As downstream mitigation, it can be removed at the end of %install.

Comment 1 Miro Hrončok 2021-12-05 09:40:04 UTC
Friendly bump.

Comment 2 Ben Cotton 2022-02-08 21:22:54 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 3 Luis Bazan 2022-06-28 00:41:42 UTC
(In reply to Miro Hrončok from comment #1)
> Friendly bump.

%build
%py3_build

%install
%py3_install 
rm -rf /tests <<<<<---- and remove the path in this site?

 
%check
export PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib}
nosetests-%{python3_version} -v tests
 
%files -n python3-%{srcname}
%doc README.rst
%{_bindir}/ipmitool.py
%{python3_sitelib}/pyipmi
%{python3_sitelib}/tests   <<<<<<<<<<<<<---------- We need remove the tests files?
%{python3_sitelib}/*-py%{python3_version}.egg-info

Comment 4 Miro Hrončok 2022-06-28 09:48:31 UTC
You rm %{buildroot}%{python3_sitelib}/tests. But you better fix this upstream.

Comment 5 Luis Bazan 2022-06-28 12:47:41 UTC
Working on it!

Comment 6 Fedora Update System 2022-06-28 15:28:43 UTC
FEDORA-EPEL-2022-37f18bd2b1 has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-37f18bd2b1

Comment 7 Fedora Update System 2022-06-28 15:28:44 UTC
FEDORA-2022-cabd026eeb has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-cabd026eeb

Comment 8 Fedora Update System 2022-06-29 01:33:41 UTC
FEDORA-2022-cabd026eeb has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-cabd026eeb`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-cabd026eeb

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

Comment 9 Fedora Update System 2022-06-29 02:12:22 UTC
FEDORA-EPEL-2022-37f18bd2b1 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-37f18bd2b1

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

Comment 10 Fedora Update System 2022-07-07 00:45:44 UTC
FEDORA-EPEL-2022-37f18bd2b1 has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2022-07-07 01:15:34 UTC
FEDORA-2022-cabd026eeb has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.