Use hatch build system to add cli entrypoint

This commit is contained in:
Marty Oehme 2025-01-18 10:39:56 +01:00
parent d96a9bb616
commit 5be71fc7da
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 15 additions and 3 deletions

View file

@ -9,3 +9,15 @@ dependencies = [
"python-tgpt>=0.8.1",
"yt-dlp>=2025.1.15",
]
[project.scripts]
summarize = "summarize:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [
"summarize.py",
]