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.3.tar.gz (43.8 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.3-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hatch_angee-0.1.3.tar.gz
  • Upload date:
  • Size: 43.8 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.3.tar.gz
Algorithm Hash digest
SHA256 687c7a2092cf55b13f73c2dce3504728eb7cdcd850562c1407fc40907488b6de
MD5 f28fe27c1c52bff4972bfb91534afda7
BLAKE2b-256 497a8aaeebfb1eebd37c410581bdecc180655e9463da6c4226c30d7a30197be3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hatch_angee-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 36808931e3f6c8723081c1bea776b8b6bc9067a2ea8c423c68547ef8f32af3d2
MD5 794548b6c2a26377a0f299bab25935c8
BLAKE2b-256 03858eb859a4f485f3ee32bcad8ec00baf6b123fd024dbcc2b405747526fddd5

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