Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (129 loc) · 4.43 KB
/
Copy pathpyproject.toml
File metadata and controls
144 lines (129 loc) · 4.43 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[build-system]
requires = ["hatchling", "pyyaml", "jinja2"]
build-backend = "hatchling.build"
[project]
name = "wzgram"
dynamic = ["version"]
description = "Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots"
readme = "README.md"
requires-python = ">=3.10"
authors = [{ name = "Dan", email = "dan@pyrogram.org" }]
maintainers = [
{ name = "rjriajul" },
{ name = "SilentDemonSD" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Free Threading :: 3 - Stable",
"Topic :: Internet",
"Topic :: Communications",
"Topic :: Communications :: Chat",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = ["python-socks[asyncio]>=2.4.0", "warpcrypto>=2.0.8", "aiosqlite>=0.20.0"]
license = "LGPL-3.0-or-later"
license-files = ["COPYING", "COPYING.lesser"]
keywords = [
"telegram",
"chat",
"messenger",
"mtproto",
"api",
"client",
"library",
"python",
]
[project.urls]
Homepage = "https://github.com/rjriajul/wzgram"
Documentation = "https://wzgram.com"
Source = "https://github.com/rjriajul/wzgram"
Issues = "https://github.com/rjriajul/wzgram/issues"
[project.optional-dependencies]
dev = [
"pytest>=8",
"pytest-asyncio>=0.24",
"pytest-cov>=5",
"twine>=5",
"pyyaml>=6",
"jinja2>=3",
"poethepoet>=0.32",
]
fast = [
"uvloop<=0.22.1; (sys_platform == 'darwin' or sys_platform == 'linux') and platform_python_implementation == 'CPython'",
]
mongo = [
"motor>=3.5",
]
redis = [
"redis>=5.0",
]
docs = [
"sphinx>=7",
"furo>=2023",
"sphinx-copybutton>=0.5",
]
botapi = [
"requests>=2.32",
"beautifulsoup4>=4.12",
"html5lib>=1.1",
]
[tool.hatch.version]
path = "pyrogram/__init__.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.hooks.custom]
path = "hatch_build.py"
[tool.hatch.build.targets.sdist]
exclude = [
".github/",
"docs/",
"tests/",
".gitignore",
]
[tool.hatch.build.targets.wheel]
ignore-vcs = true
packages = ["pyrogram", "wzgram"]
[tool.poe.tasks]
test = "pytest --no-header -q"
venv = "uv sync --frozen"
venv-dev = "uv sync --frozen --extra dev"
api = { shell = "uv run python3 compiler/api/compiler.py && uv run python3 compiler/errors/compiler.py && uv run python3 compiler/methods/compiler.py" }
botapi = "uv run python3 compiler/botapi/compiler.py"
botapi-refresh = "uv run --extra botapi python3 compiler/botapi/refresh.py"
docs = { shell = "uv run python3 compiler/docs/compiler.py && uv run sphinx-build -b dirhtml docs/source docs/build -j auto" }
docs-archive = { shell = "cd docs/build && zip -r docs.zip html/" }
build = "uv build"
publish = "uv publish"
tag = { shell = "git tag v$(uv run python3 -c 'from pyrogram import __version__; print(__version__)') && git push origin --tags" }
dtag = { shell = "git tag -d v$(uv run python3 -c 'from pyrogram import __version__; print(__version__)') && git push origin -d --tags" }
[tool.poe.tasks.clean]
sequence = ["clean-venv", "clean-build", "clean-api", "clean-docs"]
[tool.poe.tasks.clean-venv]
shell = "rm -rf .venv"
[tool.poe.tasks.clean-build]
shell = "rm -rf dist *.egg-info build"
[tool.poe.tasks.clean-api]
shell = "rm -rf pyrogram/errors/exceptions pyrogram/raw/all.py pyrogram/raw/base pyrogram/raw/functions pyrogram/raw/types"
[tool.poe.tasks.clean-docs]
shell = "rm -rf docs/build docs/source/api/bound-methods docs/source/api/methods docs/source/api/types docs/source/api/enums docs/source/telegram"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]