Skip to content

Releases: pypa/hatch

Hatchling v1.30.1

02 Jun 00:10
Immutable release. Only release title and notes can be modified.
37b00c3

Choose a tag to compare

Fixed

  • Default core metadata version kept at 2.4 until more tools support 2.5

Hatch v1.17.0

02 Jun 00:27
Immutable release. Only release title and notes can be modified.
37b00c3

Choose a tag to compare

Changed:

  • The hatch fmt command is now deprecated in favor of the new hatch check command group
  • Migrate HTTP client from httpx to httpx2

Added:

  • Add hatch check command group with subcommands for check code (linting), check fmt (formatting), and check types (type checking)
  • Add hatch check types command for type checking using Pyrefly, with --summarize and --cover flags
  • Add hatch env lock command to generate PEP 751 compliant lockfiles (pylock.toml) for environments
  • Add hatch dep lock and hatch lock commands as shortcuts for locking the active environment
  • Add hatch dep sync command for syncing dependencies from a lockfile
  • Add pluggable dependency locker interface with built-in UV and pip implementations
  • Add --cover-xml and --cover-xml-output flags to the hatch test command for generating XML coverage reports
  • Add linehaul telemetry data to User-Agent header for PyPI download statistics
  • Auto-create environment when locking if it doesn't exist

Fixed:

  • Fix help output formatting for the run command

Hatch v1.16.5

27 Feb 18:49
Immutable release. Only release title and notes can be modified.
b998d2b

Choose a tag to compare

Fixed:

  • Handle a breaking change in virtualenv by only supporting the latest version and adding python-discovery as a dependency.

Hatchling v1.29.0

23 Feb 19:42
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Fixed:

  • Source Date Epoch no longer fails when set to date before 1980.

Hatch v1.16.4

23 Feb 22:50
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Fixed:

  • Fixes hatch shell type error for keep_env.
  • SBOM documentation for including SBOM files in sdist
  • Fixes workspace member detection to properly handle shared path prefixes.

Hatch v1.16.3

21 Jan 01:35
dec7d6d

Choose a tag to compare

Added:

  • Env var for keep-env when an exception occurs during environment creation to enable debugging.

Fixed:

  • Fix issue with self-referential dependencies not being recognized.
  • Fix incomplete environments created when an exception occurs during creation.
  • Fix dependency-groups not working with when environment is not marked as builder.
  • Change Keyring to take expect repository URL instead of repository name.

Hatch v1.16.2

06 Dec 19:17
e966480

Choose a tag to compare

Fixed:

  • Properly send informational output to stderr instead of stdout
  • Implement documented support for sbom-files as build data for the wheel build target
  • Fix regression where environments no longer acknowledged the project.optional-dependencies field

Hatchling v1.28.0

27 Nov 00:30
8e1a709

Choose a tag to compare

Changed:

  • Drop support for Python 3.9

Added:

  • Add sbom-files option and sbom_files build data to the wheel build target for including Software Bill of Materials files.

Hatch v1.16.1

27 Nov 20:05
d96983f

Choose a tag to compare

Fixed:

  • Handle special characters correctly in path for editable installs.
  • Fix multiple calls to install on sync_dependencies to become a single call.
  • Fix context variable formatting in project dependencies to prevent crashes when using variables like {root:parent:uri} in the [project] section.
  • Fix environment overrides for dependency-groups field to properly support matrix and conditional configurations.

Hatch v1.16.0

27 Nov 00:31
8e1a709

Choose a tag to compare

Changed:

  • Drop support for 3.9
  • Environment type plugins are now no longer expected to support a pseudo-build environment as any environment now may be used for building. The following methods have been removed: build_environment, build_environment_exists, run_builder, construct_build_command

Added:

  • Support for workspaces inspired by Cargo Workspaces
  • Dependency group support.
  • The version and project metadata commands now support projects that do not use Hatchling as the build backend
  • The version command accepts a --force option, allowing for downgrades when an explicit version number is given.
  • Build environments can now be configured, the default build environment is hatch-build
  • The environment interface now has the following methods and properties in order to better support builds on remote machines: project_root, sep, pathsep, fs_context
  • Bump the minimum supported version of packaging to 24.2
  • Upgrade Ruff to 0.13.2

Fixed:

  • All HTTP requests now set an identifiable User-Agent header.
  • Fix issue where terminal output would be out of sync during build.
  • Fix for Click Sentinel value when using run command