Bug 2378172 - python-resultsdb_api: Stop using deprecated %py3_build/%py3_install macros
Summary: python-resultsdb_api: Stop using deprecated %py3_build/%py3_install macros
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-resultsdb_api
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora QA Tools SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2376118
TreeView+ depends on / blocked
 
Reported: 2025-07-08 15:06 UTC by Miro Hrončok
Modified: 2025-07-09 15:40 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-07-08 21:37:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2025-07-08 15:06:40 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 2 Miro Hrončok 2025-07-09 07:55:20 UTC
Thanks.

However, note that using %pyproject_wheel and %pyproject_install without %pyproject_buildrequires is not supported.
The requirements to run those macros (such as pip, packaging) are not part of the API and are not guaranteed to be stable.

Comment 3 Adam Williamson 2025-07-09 15:21:26 UTC
IIRC I found it wasn't generating anything, not even pip. But I'll try again.

Comment 4 Adam Williamson 2025-07-09 15:40:19 UTC
Huh, seems fine today. I think I might've mistakenly put the pyproject_buildrequires in %prep yesterday...


Note You need to log in before you can comment on or make changes to this bug.