c33dad9832
The on-demand /api/img path runs in the container (only fastapi+uvicorn), so without Pillow it fell back to caching the original full-size bytes instead of a downscaled WebP. Add Pillow>=10 to the web extra. The host cycle already had it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
807 B
TOML
34 lines
807 B
TOML
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "goodnews"
|
|
version = "0.1.0"
|
|
description = "Local-first constructive news ingestion and filtering prototype."
|
|
requires-python = ">=3.11"
|
|
# The ingestion CLI is intentionally pure-stdlib. The optional `web` extra adds
|
|
# the API/site layer so the two halves can be deployed and upgraded independently.
|
|
dependencies = []
|
|
|
|
[project.optional-dependencies]
|
|
web = [
|
|
"fastapi>=0.110",
|
|
"uvicorn[standard]>=0.29",
|
|
"Pillow>=10", # downscale/re-encode cached article images (goodnews/newsimg.py)
|
|
]
|
|
test = [
|
|
"pytest>=8",
|
|
"httpx>=0.27",
|
|
]
|
|
|
|
[project.scripts]
|
|
goodnews = "goodnews.cli:main"
|
|
|
|
[tool.setuptools]
|
|
packages = ["goodnews"]
|
|
|
|
[tool.setuptools.package-data]
|
|
goodnews = ["static/*"]
|
|
|