Announcing the release of hatch 1.18.0 and hatchling 1.32.0
Some highlights of this release of hatch
-
Add the
sourcesenvironment 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 thedefaultenvironment, environments inherit sources entry by entry, theHATCH_NO_SOURCESenvironment variable disables them, andhatch dep show sourcesreports what each source redirects -
Add the
--all/-aflag to thebuildcommand to build the workspace root and every workspace member defined by the selected environment, consolidating artifacts in the workspace root’sdistdirectory by default. A root that does not define aprojecttable is skipped so that a top-levelpyproject.tomlmay only contain workspace configuration -
Add the
tool.hatch.requires-hatchfield, 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