Bug 2377609

Summary: python-dbusmock: Stop using deprecated %py3_build/%py3_install macros
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-dbusmockAssignee: Neal Gompa <ngompa13>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mpitt, ngompa13
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-dbusmock-0.36.0-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-07-15 10:05:45 UTC 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: 2376118    

Description Miro Hrončok 2025-07-08 14:29:09 UTC
Dear package maintainer,

this bugzilla is automated becasue the number of impacted packages it too high to go trough manually.


It appears that your package uses the deprecated %py3_build and/or %py3_install macro.

See https://fedoraproject.org/wiki/Changes/DeprecateSetuppyMacros for why the macros are deprecated.

%py3_install expands to python setup.py install. This has been a deprecated command for 5 years and will likely stop working in Fedora 45.



Please migrate to %pyproject_buildrequires + %pyproject_wheel + %pyproject_install macros instead.

See https://fedoraproject.org/wiki/Changes/DeprecateSetuppyMacros#Migrating_to_%pyproject_macros for migration guide.

See https://github.com/hroncok/pyprojectize/ for a tool that can help you automate the migration.


Thank you. Let me know if you need help.

Comment 1 Martin Pitt 2025-07-14 13:54:32 UTC
Ack -- actually I have prepared that for 4 years already -- https://github.com/martinpitt/python-dbusmock/pull/153 . It's been held back by CentOS/RHEL 9 having a broken pybuild, and I still support that on main.

However, I can conditionalize this.

Comment 2 Miro Hrončok 2025-07-14 14:34:14 UTC
Thanks. Please don't use /usr/lib/python* in the %files section.

Comment 3 Martin Pitt 2025-07-14 14:46:09 UTC
Ack Miro, fixing in https://github.com/martinpitt/python-dbusmock/pull/240

Comment 4 Martin Pitt 2025-07-15 09:02:38 UTC
Landed upstream, and in https://github.com/martinpitt/python-dbusmock/releases/tag/0.36.0 . Packaging for Fedora now (via packit).

Comment 5 Fedora Update System 2025-07-15 09:40:41 UTC
FEDORA-2025-397a0c7ac8 (python-dbusmock-0.36.0-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-397a0c7ac8

Comment 6 Fedora Update System 2025-07-15 10:05:45 UTC
FEDORA-2025-397a0c7ac8 (python-dbusmock-0.36.0-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.