Skip to content

hatchling metadata hook support#42

Merged
dfangl merged 3 commits intomainfrom
add-hatchling-metadata-plugin
Mar 12, 2026
Merged

hatchling metadata hook support#42
dfangl merged 3 commits intomainfrom
add-hatchling-metadata-plugin

Conversation

@alexrashed
Copy link
Member

@alexrashed alexrashed commented Feb 5, 2026

Motivation

#35 adds support for Hatchling as a build backend for the automatic discovery of plugins and to populate the plux.ini.
However, in contrast to setuptools, hatchling does not natively support fetching the entry-points from an external file. Instead hatchling provides an explicit "metadata hook" to allow simply dynamically modifying the project metadata.
This PR extends #35 by adding an explicit PluxMetadataHook which takes care of populating the entrypoints of the project with the plux.ini file.

Changes

  • Extends the hatchling integration in plux.build.hatchling with a simple PluxMetadataHook.

TODO

  • Modify the README.md

@alexrashed alexrashed requested a review from dfangl February 5, 2026 16:44
Base automatically changed from hatchling-support to main March 11, 2026 14:03
@dfangl dfangl force-pushed the add-hatchling-metadata-plugin branch from 7b11bec to 042098f Compare March 11, 2026 14:04
@alexrashed alexrashed force-pushed the add-hatchling-metadata-plugin branch from d2aaeef to 7127d95 Compare March 11, 2026 14:52
@alexrashed alexrashed marked this pull request as ready for review March 11, 2026 14:52
@alexrashed alexrashed requested a review from thrau as a code owner March 11, 2026 14:52
@alexrashed alexrashed added the enhancement New feature or request label Mar 12, 2026
Copy link
Member

@dfangl dfangl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Makes sense, and the additional tests are great!

@dfangl dfangl merged commit 37bfd3d into main Mar 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants