chrome/pyproject.toml
Michał Kopeć bf840f1c5c Let a service mount the whole shell under a prefix
chrome served its assets at /chrome and the service's at /static, both
top-level. agent-bridge cannot use that: its design (D-0008) puts everything
behind exactly two proxied prefixes, /ui and /api, so assets at a third
top-level path are unreachable behind Caddy.

`mount_prefix="/ui"` moves both trees underneath it - /ui/chrome/... and
/ui/static/... - Web Awesome's versioned path included, which the autoloader
derives from its own script URL and so has to be right rather than
approximately right.

The default is unchanged, so marketplace on v0.1.0 is unaffected and does not
need the bump.

The test asserts the negative as well as the positive: nothing may be served
from a path the proxy does not forward. That is the actual requirement, and
it is the half such a test usually omits.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-04 19:03:56 +02:00

35 lines
895 B
TOML

[project]
name = "chrome"
version = "0.2.0"
description = "Shared page shell, design tokens and service helpers for the internal services."
requires-python = ">=3.13"
dependencies = [
"fastapi>=0.115",
"jinja2>=3.1",
]
[project.optional-dependencies]
dev = ["pytest>=8", "httpx>=0.27", "uvicorn[standard]>=0.30"]
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["chrome*"]
# The shell is useless without its templates and static tree, and a wheel
# carries only .py files unless told otherwise. scribe shipped a broken wheel
# this way once; the container worked only because uvicorn imported from the
# source tree.
[tool.setuptools.package-data]
chrome = [
"templates/*.html",
"static/*.css",
"static/*.js",
"static/vendor/*",
"static/wa/**/*",
]
[tool.pytest.ini_options]
testpaths = ["tests"]