pypi / hatchling
hatchling
What changed in hatchling 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking3 new APIs and options2 behavior and defaults11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithatchling 119 changes
Breaking changes 3
Absolute paths and paths resolving outside the project directory are rejected.
Support for Python 3.9 was dropped.
Support for Python 2 was dropped.
New APIs and options 3
Pass --force to allow an explicit downgrade when setting a static project.version.
The wheel build target adds the sbom-files option for including Software Bill of Materials files.
The wheel build target adds sbom_files build data for including Software Bill of Materials files.
Behavior and default changes 2
The default core metadata version is now 2.5.
The version command can update a statically defined project.version in pyproject.toml in place.
Fixes and other changes 11
Python 3.15 is officially supported.
BuilderConfig is no longer generic, restoring the pre-1.32.3 plugin interface.
Reverts the extra type parameter that broke plugins subscripting BuildHookInterface with a single argument, restoring the pre-1.32.3 plugin interface.
Spaces are stripped around version metadata when original input is used for CalVer, preserving leading zeroes.
Preserves the version string exactly as written in core metadata, including leading zeros in CalVer versions; distribution file names and .dist-info directories still use the PEP 440 normalized form.
Entries with the
; privateannotation are accepted rather than rejected as invalid import names.Only rewrite a shared script’s shebang when a Python shebang is present on the first line, preserving binary files and other content verbatim.
The default core metadata version remains 2.4 until more tools support 2.5.
No longer fails when set to a date before 1980.
Error messaging for invalid versions was improved.
Project metadata was updated to reflect support for Python 3.11.