Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
179 lines (159 loc) · 4.39 KB
/
Copy pathpyproject.toml
File metadata and controls
179 lines (159 loc) · 4.39 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[project]
name = "Hydrogram"
dynamic = ["version"]
description = "Sleek, advanced, and asynchronous Telegram MTProto API framework in Python, designed for fluid user and bot interactions."
authors = [{ name = "Hydrogram", email = "contact@hydrogram.org" }]
dependencies = ["pyaes==1.6.1", "pysocks==1.7.1", "aiosqlite>=0.19.0"]
readme = "README.md"
license = "LGPL-3.0-or-later"
requires-python = ">=3.9"
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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet",
"Topic :: Communications",
"Topic :: Communications :: Chat",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
keywords = ["telegram chat messenger mtproto api client library python"]
[tool.hatch.version]
path = "hydrogram/__init__.py"
# Used to call hatch_build.py
[tool.hatch.build.hooks.custom]
[project.urls]
homepage = "https://hydrogram.org"
tracker = "https://github.com/hydrogram/hydrogram/issues"
community = "https://t.me/HydrogramNews"
source = "https://github.com/hydrogram/hydrogram"
documentation = "https://docs.hydrogram.org"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"ruff>=0.4.7",
"pytest>=7.4.3",
"pytest-asyncio>=0.23.2",
"pytest-cov>=4.1.0",
"twine>=4.0.2",
"pre-commit>=3.7.1",
]
[project.optional-dependencies]
docs = [
"Sphinx>=7.3.7",
"furo>=2024.5.6",
"sphinx-autobuild>=2024.4.16",
"sphinx-copybutton>=0.5.2",
"pygments>=2.18.0",
"towncrier>=23.11.0",
"sphinxcontrib-towncrier>=0.4.0a0",
]
fast = [
"tgcrypto>=1.2.5",
"uvloop>=0.19.0; (sys_platform == 'darwin' or sys_platform == 'linux') and platform_python_implementation != 'PyPy'",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
exclude = [
".github/",
"docs/",
"news/",
"tests/",
".editorconfig",
".gitignore",
".pre-commit-config.yaml",
"CONTRIBUTING.md",
"NEWS.rst",
"requirements.lock",
"requirements-dev.lock",
]
[tool.hatch.build.targets.wheel]
ignore-vcs = true
package = "hydrogram"
[tool.ruff]
line-length = 99
target-version = "py39"
[tool.ruff.lint]
select = [
"FURB", # refurb
"I", # isort
"E", # pycodestyle: error
"W", # pycodestyle: warning
"UP", # pyupgrade
"F", # pyflakes
"SIM", # flake8-simplify
"RET", # flake8-return
"C4", # flake8-comprehensions
"PTH", # flake8-use-pathlib
"PERF", # perflint
"N", # pep8-naming
"RUF", # ruff
"G", # flake8-logging-format
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"FA", # flake8-future-annotations
"PL", # pylint
]
ignore = [
"RUF001",
"RUF002",
"RUF003",
"E203",
"PERF203",
"PLR09",
"PLR2004",
"PLR1702",
"PLW1514",
"PLW2901",
"PLW0603",
]
preview = true
[tool.ruff.lint.isort]
known-first-party = ["hydrogram"]
[tool.ruff.format]
docstring-code-format = true
preview = true
[tool.towncrier]
package = "hydrogram"
filename = "NEWS.rst"
directory = "news/"
template = "news/.template.rst.jinja2"
issue_format = "`#{issue} <https://github.com/hydrogram/hydrogram/issues/{issue}>`_"
[[tool.towncrier.section]]
path = ""
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bugfixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Deprecations and Removals"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Misc"
showcontent = true