CI / validate-monitoring (push) Successful in 7s
CI / lint (push) Successful in 10s
CI / test (push) Successful in 1m22s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
- net.py: the only client federation uses, on httpcore (BSD-3-Clause) with a guarded network backend: https only, every resolved address must be public (private, loopback, link-local, CGNAT, multicast and IPv4-mapped forms refused), and the connection goes to the checked address; 3 redirects max (GET only), 1 MB cap, 10s/20s timeouts - outbound.py: signed GETs (instance actor, so authorized-fetch servers answer) and signed POSTs (as the user), trying the configured signature schemes in order and the next only on a 401 - remote.py + federation_remote_actors: fetch, validate (id matches URL and host, actor type, inbox on its host, key owned by the actor), cache for 24h, refresh on demand, 410 marks an actor gone; resolve a key id to its actor, including standalone key documents - Config: FEDERATION_SIGNATURE_SCHEMES, FEDERATION_BLOCKED_DOMAINS, FEDERATION_DELIVERY_CONCURRENCY, and FEDERATION_INSECURE_TESTING (http and private addresses; only allowed for .test domains) - Tests against a real local HTTP server, including verifying that our fetches carry a valid signature Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
57 lines
1.2 KiB
TOML
57 lines
1.2 KiB
TOML
[project]
|
|
name = "scrobby"
|
|
version = "0.1.0"
|
|
description = "Self-hosted, Last.fm-compatible music scrobbling service"
|
|
readme = "README.md"
|
|
license = "BSD-3-Clause"
|
|
license-files = ["LICENSE"]
|
|
requires-python = ">=3.13"
|
|
dependencies = [
|
|
"cryptography>=50.0.1",
|
|
"flask>=3.1.3",
|
|
"flask-cors>=6.0.5",
|
|
"flask-migrate>=4.1.0",
|
|
"flask-smorest>=0.47.0",
|
|
"flask-sqlalchemy>=3.1.1",
|
|
"gunicorn>=26.2.0",
|
|
"httpcore>=1.0.9",
|
|
"prometheus-client>=0.26.0",
|
|
"psycopg[binary]>=3.3.6",
|
|
"python-dotenv>=1.2.3",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/scrobbler"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["tests"]
|
|
addopts = "-ra"
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py313"
|
|
src = ["src", "tests"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "W", "I", "B", "UP", "SIM"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"openapi-spec-validator>=0.9.0",
|
|
"pylast>=7.1.0",
|
|
"pytest>=9.1.1",
|
|
"pyyaml>=6.0.3",
|
|
"ruff>=0.16.9",
|
|
]
|
|
|
|
[tool.ruff.format]
|
|
exclude = ["src/scrobbler/migrations/**"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"src/scrobbler/migrations/**" = ["E501", "I", "UP", "W"]
|