mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-12 07:45:00 +00:00

## Summary Hatch allows for highly dynamic customization of metadata via hooks. In such cases, Hatch can't upload the PEP 517 contract, in that the metadata Hatch would return by `prepare_metadata_for_build_wheel` isn't guaranteed to match that of the built wheel. Hatch disables `prepare_metadata_for_build_wheel` entirely for pip. We'll instead disable it on our end when metadata is defined as "dynamic" in the pyproject.toml, which should allow us to leverage the hook in _most_ cases while still avoiding incorrect metadata for the remaining cases. Closes: https://github.com/astral-sh/uv/issues/2130.
10 lines
204 B
TOML
10 lines
204 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "hatchling-dynamic"
|
|
version = "1.0.0"
|
|
dynamic = ["dependencies"]
|
|
|
|
[tool.hatch.build.targets.wheel.hooks.custom]
|