Files
telegram-exporter/pyproject.toml
T
tiennm99 65f8abdf18 build: add packaging and pin the verified Telethon version
Telethon 2.0 is alpha with a renamed API surface, hence the <2 bound.
requirements.txt records 1.44.0, the version the API probes were run
against, so a later resolver bump cannot silently change the semantics
the traversal depends on.
2026-08-12 15:45:00 +07:00

26 lines
688 B
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "telegram-exporter"
version = "0.1.0"
description = "Export all media from a Telegram group to local disk, grouped by post, resumably."
requires-python = ">=3.12"
license = { file = "LICENSE" }
# Telethon 2.0 is alpha with a renamed API surface. requirements.txt pins the
# exact version the API probes were verified against.
dependencies = ["telethon>=1.41,<2"]
[project.optional-dependencies]
dev = ["pytest>=8"]
[project.scripts]
tg-export = "telegram_exporter.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/telegram_exporter"]
[tool.pytest.ini_options]
testpaths = ["tests"]