Feature request: hatchling should implement the prepare_metadata_for_build_wheel hook
See original GitHub issueIn Fedora Linux, the prepare_metadata_for_build_wheel
hook is used to generate a package’s runtime requirements to use as build-time RPM dependencies, which is helpful for ensuring everything is in place to run the tests. Since hatchling
does not implement this hook, it’s not possible to do this for hatchling
or for projects that use it as a build backend. The most popular Python build systems (setuptools
, poetry
, flit
, build
, etc.) do support this hook.
This is just an inconvenience, and can be worked around by some manual effort or project-specific scripting hacks, but it would be a helpful feature if it’s practical to implement.
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
Feature Request: Keyed Hooks · Issue #15893 · facebook/react
The rules are the following: Hooks can only be called at the top level from custom hooks or React components; The same hooks,...
Read more >Hookmark Feature Requests
Topic Replies Views Activity
About the Hookmark Feature Requests category 0 281 December 19, 2020
iOS Integration 2 58 December 17, 2022
Support for Logic Pro?...
Read more >Feature Request Template: How to Manage Suggestions at ...
Streamline and organize user feedback with this free feature request template. Available in Google Docs and Sheets (no email required).
Read more >Feature Requests: What are they and how to manage them
Feature requests are a form of product feedback you may frequently encounter as a SaaS product manager. They typically come in the form...
Read more >Feature request: hooks for get_title - WordPress.org
I'm trying to remove the link (the tag A in HTML) from the post type carousel. Digging into the code i've saw that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks. Currently, there are three packages in Fedora that would benefit:
python-hatchling
,python-userpath
, andhatch
(once 1.0 is released). For now, I think that I’m personally happier maintaining the scripted workarounds in these packages than figuring out the implications and caveats of building the wheel in%generate_buildrequires
in the general case.If
hatch
/hatchling
becomes quite popular, or if other build systems make the same choice not to offer this hook, then it might become much more beneficial to figure out how to deal with this in%pyproject_buildrequires
.I’ll go ahead and close this issue. Thanks for considering and investigating it.