History¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Hatch¶
Unreleased¶
Changed:
- The
run_shell_commandenvironment interface method now accepts arbitrarysubprocess.Popenkeyword arguments. This is not strictly breaking, but will be utilized in upcoming features. - The internal directory structure for storing
virtualenvironments is now more nested. This is not breaking, but any local environments will be created anew.
Added:
- Add
projectcommand group to view details about the project like PEP 621 metadata - Better support for auto-detection of environments by tools like Visual Studio Code now that the storage directory of
virtualenvironments will be flat if Hatch's configuredvirtualenvironment directory resides somewhere within the project root or if it is set to a.virtualenvsdirectory within the user's home directory - Build environments for the
virtualenvironment type are now cached for improved performance - Add
build_environment_existsmethod to the environment interface for implementations that cache the build environment - Add
pathoption to thevirtualenvironment type - Add
--initialize-authflag to theindexpublisher to allow for the saving of authentication information before publishing - Support Bash on Windows for the
shellcommand - The
setuptoolsmigration script no longer modifies the formatting of existingpyproject.tomlconfiguration - Bump the minimum supported version of Hatchling to 1.10.0
Fixed:
- Environments now respect dynamically defined project dependencies
- The
dep hashand alldep showcommands now respect dynamically defined project dependencies - The
env show,dep hash, and alldep showcommands now honor context formatting - Fix matrix variable inclusion filtering of the
runandenv runcommands when there are multiple possible variables - Build environment compatibility is now checked before use
- Decreasing verbosity now has no affect on output that should always be displayed
- Handle more edge cases in the
setuptoolsmigration script - Environments now respect user defined environment variables for context formatting
- Update the scripts in the generated test environment template for new projects to reflect the documentation
- Allow
extra-dependenciesin environment overrides - Depend on
packagingexplicitly rather than relying on it being a transitive dependency of Hatchling
1.5.0 - 2022-08-28¶
Added:
- The
indexpublisher now recognizes repository-specific options - Add the
--ignore-compatflag to theenv runcommand - Setting the
HATCH_PYTHONenvironment variable toselfwill now force the use of the Python executable Hatch is running on forvirtualenvironment creation
Fixed:
- Fix the
--force-continueflag of theenv runcommand - Handle more edge cases in the
setuptoolsmigration script
1.4.2 - 2022-08-16¶
Fixed:
- Fix check for updating static versions with the
versioncommand when metadata hooks are in use
1.4.1 - 2022-08-13¶
Fixed:
- Fix non-detached inheritance disabling for environments
1.4.0 - 2022-08-06¶
Added:
- The default Python for
virtualenvironments now checks PATH before using the one Hatch is running on - Values for environment
env-varsnow support context formatting - Add
nameoverride for environments to allow for regular expression matching - The
indexpublisher now better supports non-PyPI indices - Add certificate options to the
indexpublisher - Display waiting text when checking dependencies and removing environments
- Display help text the first time the
shellcommand is executed - Update project templates with Python 3.11 and the latest versions of various GitHub Actions
- Add support for Almquist (
ash) shells - Add
hyperlinkas a dependency for better handling of package index URLs - Bump the minimum supported version of
virtualenvto 20.16.2 - Bump the minimum supported version of
tomlkitto 0.11.1
Fixed:
- Acknowledge
extra-dependenciesfor theenv showcommand - Fix locating executables within virtual environments on Debian
- Fix managing the terminal size inside the
shellcommand - Fix default code coverage file omission for the src-layout project template option
1.3.1 - 2022-07-11¶
Fixed:
- Support
-h/--helpflag for theruncommand
1.3.0 - 2022-07-10¶
Changed:
- Rename the default publishing plugin from
pypito the more genericindex
Added:
- Support the absence of
pyproject.tomlfiles, as is the case for apps and non-Python projects - Hide scripts that start with an underscore for the
env showcommand by default - Ignoring the exit codes of commands by prefixing with hyphens now works with entire named scripts
- Add a way to require confirmation for publishing
- Add
--force-continueflag to theenv runcommand - Make tracebacks colorful and less verbose
- When shell configuration has not been defined, attempt to use the current shell based on parent processes before resorting to the defaults
- The shell name
pwshis now an alias forpowershell - Remove
atomicwritesdependency - Relax constraint on
userpathdependency - Bump the minimum supported version of Hatchling to 1.4.1
Fixed:
- Keep environments in sync with the dependencies of the selected features
- Use
utf-8for all files generated for new projects - Escape special characters Git may return in the user name when writing generated files for new projects
- Normalize the package name to lowercase in
setuptoolsmigration script - Fix parsing of source distributions during publishing
1.2.1 - 2022-05-30¶
Fixed:
- Fix handling of top level
data_filesinsetuptoolsmigration script
1.2.0 - 2022-05-22¶
Changed:
- The
enter_shellenvironment plugin method now accepts an additionalargsparameter
Added:
- Allow context string formatting for environment dependencies
- Add environment context string formatting fields
env_name,env_type,matrix,verbosity, andargs - Support overriding the default arguments used to spawn shells on non-Windows systems
- Bump the minimum supported version of Hatchling to 1.3.0
Fixed:
- Improve
setuptoolsmigration script
1.1.2 - 2022-05-20¶
Fixed:
- Bump the minimum supported version of Hatchling to 1.2.0
- Update project metadata to reflect support for Python 3.11
1.1.1 - 2022-05-12¶
Fixed:
- Fix
setuptoolsmigration script for non-Windows systems
1.1.0 - 2022-05-12¶
Changed:
- In order to simplify the implementation of command execution for environment plugins, the
run_shell_commandsmethod has been replaced by the singularrun_shell_command. A newcommand_contextmethod has been added to more easily satisfy complex use cases. - The
finalize_commandenvironment plugin method has been removed in favor of the newly introduced context formatting functionality.
Added:
- Add context formatting functionality i.e. the ability to insert values into configuration like environment variables and command line arguments
- Any verbosity for command execution will now always display headers, even for single environments
- Every executed command is now displayed when running multiple commands or when verbosity is enabled
- Similar to
make, ignore the exit code of executed commands that start with-(a hyphen) - Add ability for the
--initflag of thenewcommand to automatically migratesetuptoolsconfiguration - Update project metadata to reflect the adoption by PyPA and production stability
1.0.0 - 2022-04-28¶
This is the first stable release of Hatch v1, a complete rewrite. Enjoy!
Hatchling¶
Unreleased¶
1.11.0 - 2022-10-08¶
Added:
- Add
envversion source to retrieve the version from an environment variable - Add
validate-bumpoption to thestandardversion scheme
Fixed:
- Use proper CSV formatting for the
RECORDmetadata file of thewheeltarget to avoid warnings during installation bypipif, for example, file names contain commas - Fix installations with pip for build hooks that modify runtime dependencies
- Decreasing verbosity now has no affect on output that should always be displayed
1.10.0 - 2022-09-18¶
Added:
- Add the following to the list of directories that cannot be traversed:
__pypackages__,.hg,.hatch,.tox,.nox - Add deprecated option to allow ambiguous features
Fixed:
- Improve tracking of dynamic metadata
- Fix core metadata for entries in
project.optional-dependenciesthat use direct references
1.9.0 - 2022-09-09¶
Changed:
- File pattern matching now more closely resembles Git's behavior
Added:
- Implement a minimal version of
prepare_metadata_for_build_wheelandprepare_metadata_for_build_editablefor non-frontend tools that only need to inspect a project's metadata - Add
metadatacommand to view PEP 621 project metadata - Improve error messages for SPDX license errors
- Retroactively support
License-Filefor core metadata starting at version 2.1 - Bump the minimum supported version of
pathspecto 0.10.1
Fixed:
- Allow the valid non-SPDX
licensevaluesLicenseRef-Public-DomainandLicenseRef-Proprietary - Show the help text of the CLI when no subcommand is selected
1.8.1 - 2022-08-25¶
Fixed:
- Fix default file inclusion for
wheelbuild targets when both the project name and package directory name are not normalized
1.8.0 - 2022-08-16¶
Added:
- Add
get_known_classifiersmethod to metadata hooks
Fixed:
- Fix check for updating static versions with the
versioncommand when metadata hooks are in use
1.7.1 - 2022-08-13¶
Fixed:
- Fix the value of the
relative_pathattribute of included files, that some build plugins may use, when selecting explicit paths
1.7.0 - 2022-08-12¶
Added:
- Add
require-runtime-featuresoption for builders and build hooks - Check for unknown trove classifiers
- Update SPDX license information to version 3.18
Fixed:
- Add better error message for
wheeltarget dev mode installations that define path rewrites with thesourcesoption - Note the
allow-direct-referencesoption in the relevant error messages
1.6.0 - 2022-07-23¶
Changed:
- When no build targets are specified on the command line, now default to
sdistandwheeltargets rather than what happens to be defined in config - The
codeversion source now only supports files with known extensions - Global build hooks now run before target-specific build hooks to better match expected behavior
Added:
- The
codeversion source now supports loading extension modules - Add
search-pathsoption for thecodeversion source
Fixed:
- Fix removing
sourcesusing an empty string value in the mapping - The
strict-namingoption now also applies to the metadata directory ofwheeltargets
1.5.0 - 2022-07-11¶
Added:
- Support the final draft of PEP 639
- Add
strict-namingoption forsdistandwheeltargets
Fixed:
- Project names are now stored in
sdistandwheeltarget core metadata exactly as defined inpyproject.tomlwithout normalization to allow control of how PyPI displays them
1.4.1 - 2022-07-04¶
Fixed:
- Fix forced inclusion of important files like licenses for
sdisttargets when using the explicit selection options - Don't sort project URL metadata so that the rendered order on PyPI can be controlled
1.4.0 - 2022-07-03¶
Changed:
- The
packagesoption uses the newonly-includeoption to provide targeted inclusion, since that is desired most of the time. You can retain the old behavior by using theincludeandsourcesoptions together.
Added:
- Support PEP 561 type hinting
- Add
versionbuild hook - Add
only-includeoption - The
editableversion ofwheeltargets now respects theforce-includeoption by default - The
force-includeoption now supports path rewriting with thesourcesoption - The
wheeltargetshared-dataandextra-metadataoptions now respect file selection options - The
wheeltarget now auto-detects single module layouts - Improve performance by never entering directories that are guaranteed to be undesirable like
__pycache__rather than excluding individual files within - Update SPDX license information to version 3.17
Fixed:
- Don't write empty entry points file for
wheeltargets if there are no entry points defined - Allow metadata hooks to set the
versionin all cases - Prevent duplicate file entries from inclusion when using the
force-includeoption
1.3.1 - 2022-05-30¶
Fixed:
- Better populate global variables for the
codeversion source
1.3.0 - 2022-05-22¶
Removed:
- Remove unused global
argscontext string formatting field
Added:
- Improve error messages for the
envcontext string formatting field
Fixed:
- Fix
uricontext string formatting modifier on Windows
1.2.0 - 2022-05-20¶
Added:
- Allow context formatting for
project.dependenciesandproject.optional-dependencies
1.1.0 - 2022-05-19¶
Added:
- Add
uriandrealcontext string formatting modifiers for file system paths
1.0.0 - 2022-05-17¶
Changed:
- Drop support for Python 2
Added:
- Improve error messaging for invalid versions
- Update project metadata to reflect support for Python 3.11
0.25.1 - 2022-06-14¶
Fixed:
- Fix support for Windows on Python 2 by removing its support for symlinks
0.25.0 - 2022-05-15¶
Added:
- Add
skip-excluded-dirsbuild option - Allow build data to add additional project dependencies for
wheelandsdistbuild targets - Add
force_include_editablebuild data for thewheelbuild target - Add
build_hooksbuild data - Add support for Mercurial's
.hgignorefiles when using glob syntax - Update project metadata to reflect the adoption by PyPA
Fixed:
- Properly use underscores for the name of
force_includebuild data - No longer greedily skip excluded directories by default
0.24.0 - 2022-04-28¶
This is the initial public release of the Hatchling build system. Support for Python 2 will be dropped in version 1.