Hatch v1.8.0
Changed:
- Drop support for Python 3.7
- The
get_build_process
method of theenvironment
interface has been removed; plugins should use the newrun_builder
method instead - Remove
pyperclip
dependency and the--copy
flag of theconfig find
command - When running the
build
command all output from builders is now displayed as-is in real time without the stripping of ANSI codes - Version information (for Hatch itself) is now derived from Git
Added:
- Support Python 3.12
- Add installers and standalone binaries
- Add the ability to manage Python installations
- Add
fmt
command - The
virtual
environment type can now automatically download requested versions of Python that are not installed - Add
dependency_hash
method to theenvironment
interface - The state of installed dependencies for environments is saved as metadata so if dependency definitions have not changed then no checking is performed, which can be computationally expensive
- The
build
command now supports backends other than Hatchling - Allow the use of
features
for environments whenskip-install
is enabled - The default is now
__TOKEN__
when prompting for a username for thepublish
command - Add a new
run_builder
method to theenvironment
interface - Bump the minimum supported version of Hatchling to 1.19.0
- Bump the minimum supported version of
click
to 8.0.6
Fixed:
- Fix nushell activation
- Better handling of flat storage directory hierarchies for the
virtual
environment type - Display useful information when running the
version
command outside of a project rather than erroring - Fix the
project metadata
command by only capturing stdout from the backend - Properly support Google Artifact Registry
- Fix parsing dependencies for environments when warnings are emitted