92aaa91a49
Round 3's two HIGHs: _fill_version resolved versions with the LAST same-title entry's cues (photo-aware lookup existed since round 1 but this caller never used it), and the round-2 diff rework let an earlier row's disagreement consume the exact-version copy a later row matched. Diff claims now settle strongest-first across all rows (exact matches, then versionless upgrades, then disagreement/second-copy), unvetoed bare duplicates stay owned per spec, and updates are withheld with a manual-fix note whenever any copy of the game already carries a version (the row edit targets by name and could hit the wrong copy). Also: entry-to-row pairing matches by photo overlap before position (titles.json order churn from reshoot filenames could swap editions); BGGQueueTimeout defers a title like a missing token; DismissStore writes atomically, mutates memory only after the write, and quarantines a torn file instead of bricking the server; version-picker page-limit exhaustion stays retryable; verify's copy-count shortfall reports once per game (the old guard was dead code); the upload log header is created atomically; transient version-lookup failures record a retryable version_error, not terminal version_unknown; extract isolates per-photo failures and salvages JSON followed by prose; a state revision counter stops stale poll responses reverting decisions; plus the shared-predicate/fsio/docstring consolidation and CLI wiring, live-diff, verify-wiring, and search-guard tests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
48 lines
937 B
TOML
48 lines
937 B
TOML
[project]
|
|
name = "bggpipe"
|
|
dynamic = ["version"]
|
|
description = "Shelf-to-BGG collection pipeline: photos in, BoardGameGeek collection out"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"typer>=0.12",
|
|
"httpx>=0.27",
|
|
"rapidfuzz>=3.9",
|
|
"defusedxml>=0.7.1",
|
|
"anthropic>=0.120.2",
|
|
"pillow>=12.3.0",
|
|
"pillow-heif>=1.5.0",
|
|
"rich>=15.0.0",
|
|
"fastapi>=0.141.1",
|
|
"uvicorn>=0.52.1",
|
|
"playwright>=1.62.0",
|
|
"pydantic>=2.13.4",
|
|
]
|
|
|
|
[project.scripts]
|
|
bggpipe = "bggpipe.cli:app"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8",
|
|
"ruff>=0.5",
|
|
]
|
|
|
|
[tool.hatch.version]
|
|
path = "src/bggpipe/__init__.py"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "SIM"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
markers = [
|
|
"live: hits the real BGG API; skipped unless --run-live is passed",
|
|
]
|