-
Notifications
You must be signed in to change notification settings - Fork 394
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (90 loc) · 2.26 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (90 loc) · 2.26 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "telegram-mcp"
version = "2.0.1"
description = "Telegram integration for Claude via the Model Context Protocol"
readme = "README.md"
authors = [
{name = "chigwell"},
{name = "l1v0n1"}
]
license = {text = "Apache-2.0"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
requires-python = ">=3.10"
dependencies = [
"dotenv>=0.9.9",
"httpx>=0.28.1",
"mcp[cli]>=1.8.0,<2",
"pillow>=11.0.0",
"python-dotenv>=1.1.0",
"python-json-logger>=3.3.0",
"qrcode>=8.2",
"telethon>=1.44.0",
]
[project.optional-dependencies]
# Required only when TELEGRAM_PROXY_TYPE is set to socks5/socks4/http.
proxy = [
"python-socks>=2.4.3",
]
[project.urls]
"Homepage" = "https://github.com/chigwell/telegram-mcp"
"Bug Tracker" = "https://github.com/chigwell/telegram-mcp/issues"
[tool.setuptools]
py-modules = ["main", "sanitize", "session_string_generator"]
packages = ["telegram_mcp", "telegram_mcp.tools"]
[project.scripts]
telegram-mcp = "main:main"
telegram-mcp-generate-session = "session_string_generator:main"
[tool.black]
line-length = 99
target-version = ['py311']
[tool.flake8]
ignore = ["E203", "E501", "W503"]
max-line-length = 99
max-complexity = 10
exclude = [
".git",
"__pycache__",
".venv",
"build",
"dist",
"docs/source/conf.py",
]
[dependency-groups]
dev = [
"black>=25.9.0",
"flake8>=7.3.0",
"pre-commit>=4.6.0",
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=6.0.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"--strict-markers",
"--strict-config",
]
[tool.coverage.run]
branch = true
# Unit coverage focuses on deterministic local logic. The Telegram tool modules
# are live API adapters and should get separate mocked or integration coverage.
source = [
"main",
"sanitize",
"telegram_mcp.runtime",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 80