Skip to main content

A hatch build hook python minifier

Project description

Hatch Minify Build Hook

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_minify-0.1.0.tar.gz (28.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_minify-0.1.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

Details for the file hatch_minify-0.1.0.tar.gz.

File metadata

  • Download URL: hatch_minify-0.1.0.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hatch_minify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53eef9ae5428db4d2cb66ffa215c7a586ca216287cf5a3ce054ffc72eff93afb
MD5 0888fc1369ace9365911efdf6089b18c
BLAKE2b-256 7fbf100725d7817673f729cb271bdae24e59de25ef14c12046855429ec629775

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_minify-0.1.0.tar.gz:

Publisher: release.yml on djcopley/hatch-minify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hatch_minify-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hatch_minify-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hatch_minify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9db64bacd77488358ede1ed5862ec6f6a8dfd8403e507752b3ac871a5bb6b10
MD5 2bf0a7cabbdbb72972a309ec22ececed
BLAKE2b-256 08c1b301beac1e64c52d1f4d3144a50fbafb7b72b1ea317ffb16d27bb2f3ffcc

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_minify-0.1.0-py3-none-any.whl:

Publisher: release.yml on djcopley/hatch-minify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page