The head linked `icons/favicon.svg` under the service's static files and nothing else, so a service that kept its icon elsewhere (scribe) or had none (agent-bridge) showed no icon at all, and clients that ignore SVG (Safari, bookmark bars) or ask /favicon.ico without reading the page got a 404 everywhere. Chrome now resolves five icon kinds - svg, 32 px png, the Apple touch icon, 192 and 512 - from the service's static dir with a few accepted paths each, falling back per kind to a generic set shipped here, links svg + png + touch icon in the head, and answers /favicon.ico and /apple-touch-icon.png at the root and under the mount prefix. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
35 lines
895 B
TOML
35 lines
895 B
TOML
[project]
|
|
name = "chrome"
|
|
version = "0.7.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"]
|