Skip to content

Commit a09aca1

Browse files
committed
build(rewrite-v2): add pyproject.toml and uv.lock
Project configuration with hatchling, python-telegram-bot, psycopg, and dev dependencies (ruff, mypy, pytest).
1 parent b3f9e8f commit a09aca1

2 files changed

Lines changed: 376 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[project]
2+
name = "python-italy-telegram-bot"
3+
version = "0.1.0"
4+
description = "Official Telegram bot for the main Italian Python group and local sub-groups in Italy"
5+
readme = "README.md"
6+
requires-python = ">=3.14"
7+
license = { text = "MIT" }
8+
dependencies = [
9+
"python-telegram-bot>=22.0",
10+
"python-dotenv>=1.0",
11+
"psycopg[pool]>=3.2",
12+
]
13+
14+
[project.optional-dependencies]
15+
dev = [
16+
"ruff>=0.8",
17+
"mypy>=1.0",
18+
"pytest>=8.0",
19+
]
20+
21+
[project.scripts]
22+
python-italy-bot = "python_italy_bot.main:main"
23+
24+
[build-system]
25+
requires = ["hatchling"]
26+
build-backend = "hatchling.build"
27+
28+
[tool.hatch.build.targets.wheel]
29+
packages = ["src/python_italy_bot"]
30+
31+
[tool.uv]
32+
dev-dependencies = [
33+
"ruff>=0.8",
34+
"mypy>=1.0",
35+
"pytest>=8.0",
36+
]

0 commit comments

Comments
 (0)