Skip to main content

Hatchling build hooks for Angee addons — generated entry points + source distribution.

Project description

hatch-angee

The one published implementation of Angee's addon build machinery. An addon repo sets hatch_angee.build as its build backend and carries no hatch_build.py, no hook tables, and no dynamic of its own — the backend wires everything in.

# an addon repo's pyproject.toml — no Python hook code, no hook tables
[build-system]
requires = ["hatch-angee>=0.1"]          # pulls hatchling transitively
build-backend = "hatch_angee.build"

[project]
name = "angee-addon-crm"
version = "0.1.0"
# no `dynamic = [...]` — the backend declares entry-points dynamic for you

[tool.hatch.build.targets.wheel]
packages = ["vendor"]                    # the import package(s) to ship

On a wheel/editable build the backend discovers every addon.toml in the repo (pruning node_modules, .venv, dist, …) and:

  • generates the angee.addons entry points (name -> import anchor) — the runtime enumerates these over uv.lock to list available addons;
  • ships each addon's web/, templates/, skills/ into the wheel at the addon's import path (vendor.crmvendor/crm/...), layout-agnostic.

Backend config lives in [tool.hatch-angee] — e.g. extra-web names glob roots of non-addon shared web packages (no addon.toml) to ship verbatim. A normal addon repo configures none.

Escape hatch: explicit hatchling hooks

The same two hooks are also registered by name, so a repo that prefers plain hatchling can wire them itself instead of using the backend:

[build-system]
requires = ["hatchling", "hatch-angee>=0.1"]
build-backend = "hatchling.build"

[project]
dynamic = ["entry-points"]

[tool.hatch.metadata.hooks.angee-addons]
[tool.hatch.build.targets.wheel.hooks.angee-addon-sources]

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_angee-0.1.2.tar.gz (43.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_angee-0.1.2-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file hatch_angee-0.1.2.tar.gz.

File metadata

  • Download URL: hatch_angee-0.1.2.tar.gz
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hatch_angee-0.1.2.tar.gz
Algorithm Hash digest
SHA256 15f52fa7b690988dcd45653c539b8cad9d0d52fa27dc076600feabb594019b63
MD5 2d379d4cb09fe81e1310273e742ef4bb
BLAKE2b-256 2c62efc94b280d8d38a5feba632312b5f5f1858e55bcc26e272a465db0dc7f4c

See more details on using hashes here.

File details

Details for the file hatch_angee-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hatch_angee-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hatch_angee-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8967be95292ef99a7638c5194beddcb709ee9ca3fd08aa0265dc8d73eba2381
MD5 33419ecd4807320a37989aef72c9c40b
BLAKE2b-256 9e6f0deb61013ac6d029c79a24629efa5b4c510cd00f1e655999846ecfbca8d0

See more details on using hashes here.

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