Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.49 KB

File metadata and controls

43 lines (29 loc) · 1.49 KB

Hatch Minify Build Hook

Hatch Tests PyPI version PyPI Supported Python Versions Downloads

This Hatch plugin provides a build hook for minifying python source code. This is useful for keeping distributions lean.

Global dependency

Ensure hatch-minify is defined within the build-system.requires field in your pyproject.toml file.

[build-system]
requires = ["hatchling", "hatch-minify"]
build-backend = "hatchling.build"

Build hook

The build hook plugin name is minify.

  • pyproject.toml

    [tool.hatch.build.targets.wheel.hooks.minify]
  • hatch.toml

    [build.targets.wheel.hooks.minify]

Note: It is not recommended to minify source distributions.

Editable installs

This build hook does not support editable installations.