-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
51 lines (45 loc) · 1017 Bytes
/
pyproject.toml
File metadata and controls
51 lines (45 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[project]
name = "teleapi"
version = "0.1.2"
description = "A lightweight Telegram channel API gateway"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.34",
"sqlmodel>=0.0.22",
"aiosqlite>=0.21",
"telethon>=1.40",
"pyyaml>=6.0",
"httpx[socks]>=0.28",
"qrcode[pil]>=8.0",
"cryptography>=44.0",
"greenlet>=3.0",
]
[project.scripts]
teleapi = "teleapi.main:cli"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"ruff>=0.8",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/teleapi"]
[tool.ruff]
line-length = 120
indent-width = 4
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = [
"unit: 纯逻辑测试",
"db: 内存数据库测试",
"service: 服务层测试(mock 外部依赖)",
"api: API 路由测试",
"e2e: 端到端流程测试",
]