-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (96 loc) · 3.76 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (96 loc) · 3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "shortlist"
description = "Private recommendation rows for every user on your Plex server, with optional AI"
readme = "README.md"
license = "MIT"
# A genuine floor (3.12 syntax/stdlib is used), NOT a support claim: the shipped
# artifact is one Docker image built FROM python:3.12-slim, and CI tests only 3.12.
# Deliberately left open-ended rather than capped at <3.13 — a hard cap makes
# `pip install -e .` fail outright for contributors on a newer interpreter, and the
# code runs fine on them. The classifiers below state what's actually tested.
requires-python = ">=3.12"
dynamic = ["version"]
authors = [{ name = "Steven Adams" }]
keywords = ["plex", "recommendations", "self-hosted", "llm"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"plexapi>=4.17",
"httpx>=0.27",
"loguru>=0.7",
"pydantic>=2.7",
"fastapi>=0.115",
"uvicorn>=0.30",
"sqlalchemy>=2.0",
"alembic>=1.13",
"apscheduler>=3.10,<4",
"itsdangerous>=2.1",
"cryptography>=42.0",
"python-multipart>=0.0.9",
"mcp==2.3.0",
"Authlib==1.8.0",
# The PMS notification socket (`watch_stream`). Already in the lock transitively via uvicorn's
# standard extras, but declared here because we import it directly — a transitive dependency that
# disappears when uvicorn changes its extras would break the only source of partial-watch data.
# >=14, not >=13: `websockets.connect` only became the asyncio client in 14.0. On 13.x it is the
# legacy client, which takes `extra_headers` rather than `additional_headers` and whose `recv()`
# is not documented as cancellation-safe — and `_listen` races it against the stop event with `ensure_future` + `wait`.
"websockets>=14",
]
[project.optional-dependencies]
anthropic = ["anthropic>=0.40"]
openai = ["openai>=1.40"]
google = ["google-genai>=1.0"]
posters = ["pillow>=10.0"]
dev = [
"pytest>=8.0",
"pytest-xdist>=3.5",
"pytest-cov>=5.0",
# Duration-balanced CI sharding (see ci.yml's test-python matrix). Splitting by test
# COUNT instead would be badly skewed — measured 51% of the suite's work in one third.
"pytest-split>=0.9",
"hypothesis>=6.100",
"ruff>=0.5",
"respx>=0.21",
"playwright>=1.45",
"pytest-rerunfailures>=14.0",
"pillow>=10.0", # so the poster text-renderer + upload-normalization tests run in CI
# Local commit guard: runs the same ruff check + ruff format CI enforces, so a format slip is
# caught at `git commit`, not in GitHub. Activate once per clone with `pre-commit install`.
"pre-commit>=3.7",
]
[project.urls]
Homepage = "https://github.com/stevezau/shortlist"
Issues = "https://github.com/stevezau/shortlist/issues"
[project.scripts]
shortlist-mcp-stdio = "shortlist.server.assistant.stdio_bridge:main"
[tool.hatch.version]
path = "shortlist/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["shortlist"]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF"]
[tool.ruff.lint.isort]
known-first-party = ["shortlist"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# e2e needs a built SPA + a browser; it runs in its own CI job via `pytest -m e2e`.
addopts = "-n auto -m 'not e2e' --cov=shortlist --cov-report=term-missing"
markers = [
"integration: crosses module boundaries",
"plex: requires a real Plex server (skipped in CI)",
"slow: long-running",
"real_migrations: needs an empty config dir, not the pre-seeded schema template",
"e2e: Playwright vs an in-process app (uvicorn + built SPA) + fake_plex",
]
[tool.coverage.report]
fail_under = 80