Skip to content

Commit a7f3cac

Browse files
dmealingclaude
andcommitted
chore(python): pyproject no longer claims the wheel vendors agent-context
hatch_build.py has been a no-op since agent-context scaffolding moved to the Node `meta agent-docs` CLI, but pyproject.toml still described it copying ../../agent-context into the package and forced a gitignored `_content/**` tree into both artifacts. That glob matched nothing. The comment now says what is true, the dead `artifacts` line is gone, and the FR-033 note sits on the wheel target it describes (without its stale file count). Verified with uv build: the wheel still carries the committed spec_metamodel JSON, and no _content. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ApQWqotP1jaKs85XhKVXG4
1 parent 6a00844 commit a7f3cac

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

server/python/pyproject.toml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,21 @@ integration = ["pg8000>=1.31", "fastapi>=0.110", "httpx>=0.27"]
6262
requires = ["hatchling"]
6363
build-backend = "hatchling.build"
6464

65-
[tool.hatch.build.targets.wheel]
66-
packages = ["src/metaobjects"]
67-
exclude = ["**/KNOWN_GAPS.md"]
68-
69-
# Bundle the repo-root agent-context/ content tree into the package so the installed
70-
# `metaobjects agent-docs` command can resolve it offline (no Node, no monorepo).
71-
# A custom build hook (hatch_build.py) copies ../../agent-context into
72-
# src/metaobjects/agent_context/_content at build time, and `artifacts` below forces
73-
# that (gitignored) tree into BOTH the sdist and the wheel — so `uv build`
74-
# (sdist -> wheel) works, not just a direct wheel build. In dev/test the resolver
75-
# falls back to walking up to the monorepo agent-context/.
76-
[tool.hatch.build.hooks.custom]
77-
78-
# FR-033 — the 15 shared spec/metamodel/*.json files are COMMITTED copies under
65+
# FR-033 — the shared spec/metamodel/*.json files are COMMITTED copies under
7966
# src/metaobjects/spec_metamodel/ (not build-time-generated), so hatchling's default
8067
# package inclusion ships them in both the sdist and the wheel (read via
8168
# importlib.resources, AOT-safe). A byte-identity gate
8269
# (tests/conformance/test_spec_metamodel_embed.py) keeps the copies from drifting
8370
# from the repo-root spec/metamodel/ source.
84-
[tool.hatch.build]
85-
artifacts = ["src/metaobjects/agent_context/_content/**"]
71+
[tool.hatch.build.targets.wheel]
72+
packages = ["src/metaobjects"]
73+
exclude = ["**/KNOWN_GAPS.md"]
74+
75+
# No agent-context ships in this package. `metaobjects agent-docs` redirects to the Node
76+
# scaffolder (`npx meta agent-docs --server python`), which owns that content, so the wheel
77+
# and sdist carry none of it and an agent-context/ edit never makes PyPI publish.
78+
# hatch_build.py is a deliberate no-op, kept only so tooling that names the hook does not break.
79+
[tool.hatch.build.hooks.custom]
8680

8781
[tool.pytest.ini_options]
8882
testpaths = ["tests"]

0 commit comments

Comments
 (0)