-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pyprpject.toml instead of setup.py
- Loading branch information
1 parent
e42b0ec
commit f1f35d4
Showing
4 changed files
with
53 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ MANIFEST | |
*.pyc | ||
.DS_Store | ||
.vscode | ||
telegram/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,57 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "python-telegram" | ||
dynamic = ["version"] | ||
description = "Python library to help you build your own Telegram clients" | ||
readme = "README.md" | ||
authors = [{name = "Alexander Akhmetov", email = "[email protected]"}] | ||
license = {text = "MIT"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: POSIX :: Linux", | ||
"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 :: 3 :: Only", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
keywords = ["telegram", "client", "api", "tdlib", "tdjson", "td"] | ||
dependencies = [ | ||
"telegram-text==0.2.0", | ||
] | ||
requires-python = ">=3.9" | ||
|
||
[project.urls] | ||
Source = "https://github.com/alexander-akhmetov/python-telegram" | ||
Documentation = "https://python-telegram.readthedocs.io/en/latest/" | ||
Tutorial = "https://python-telegram.readthedocs.io/en/latest/tutorial.html" | ||
Changelog = "https://python-telegram.readthedocs.io/en/latest/changelog.html" | ||
|
||
[tool.setuptools] | ||
packages = ["telegram"] | ||
include-package-data = true | ||
zip-safe = false | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["tests*"] | ||
|
||
[tool.setuptools.package-data] | ||
telegram = [ | ||
"lib/darwin/*", | ||
"lib/linux/*", | ||
"py.typed", | ||
] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "telegram/_version.py" | ||
|
||
[tool.ruff] | ||
line-length = 119 |