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.5.tar.gz (43.9 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.5-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hatch_angee-0.1.5.tar.gz
  • Upload date:
  • Size: 43.9 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.5.tar.gz
Algorithm Hash digest
SHA256 2d237691a86e59abe800a32cc8f6e915e0d3fc53e269aa04d8bb26c484dda90a
MD5 65770ce8e15e59fb2c4a60c0f5791878
BLAKE2b-256 bc89abedae735da9fb8cbc6aec38241b66a8479cf35210f65497525a2604acd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hatch_angee-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 19.2 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f0c2951adc0364b2e9f68b24547102f72f12f36134495d5fb7ada4f4ff8c1dc6
MD5 dab66e22beb0d741e76ec460bbfa1c00
BLAKE2b-256 f9604f25a33b610535ea26e8e50b23fe0037d492b650a8d84085591380c2444c

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