Add httpx and route Bilibili and Telegram requests through pooled clients with keepalive and explicit timeouts. Align Bilibili headers with data/raw-request.txt: Chrome 155 UA, sec-ch-ua, space.bilibili.com origin, folder-specific referer, and priority header. Close replaced clients when credentials change. Add transport contract tests and live read-only validation for nav, folder sync, WBI search, and Telegram getUpdates.
26 lines
585 B
TOML
26 lines
585 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "bili-fav"
|
|
version = "0.1.0"
|
|
description = "Bilibili favorite-folder tools and Reaction video dashboard"
|
|
readme = "README.md"
|
|
requires-python = ">=3.14,<3.15"
|
|
license = { text = "MIT" }
|
|
authors = [{ name = "bili-fav contributors" }]
|
|
dependencies = [
|
|
"httpx>=0.28.1",
|
|
]
|
|
|
|
[project.scripts]
|
|
bili-fav = "favsort:main"
|
|
reaction-board = "reaction_board.cli:main"
|
|
|
|
[dependency-groups]
|
|
dev = []
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
only-include = ["favsort.py", "app.py", "vendor", "reaction_board"]
|