Announcement: Hatch 1.18.0/ Hatchling 1.32.0

Announcing the release of hatch 1.18.0 and hatchling 1.32.0

Some highlights of this release of hatch

  • Add the sources environment option, which redirects dependencies to a local path, Git repository, URL, alternate index, or workspace member at install time without altering published metadata. The top-level [tool.hatch.sources] table is an alias for the default environment, environments inherit sources entry by entry, the HATCH_NO_SOURCES environment variable disables them, and hatch dep show sources reports what each source redirects

  • Add the --all/-a flag to the build command to build the workspace root and every workspace member defined by the selected environment, consolidating artifacts in the workspace root’s dist directory by default. A root that does not define a project table is skipped so that a top-level pyproject.toml may only contain workspace configuration

  • Add the tool.hatch.requires-hatch field, a version specifier set that commands reading the project’s metadata enforce against the running version of Hatch

And Hatchling now supports metadata 2.5 as core metadata version!

More can be found on the blog post - Hatch v1.18.0 - Hatch

11 Likes