Skip to content

Commit

Permalink
Use pyproject.toml instead of setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akhmetov committed Jun 23, 2024
1 parent e42b0ec commit ac517d0
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 44 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ MANIFEST
*.pyc
.DS_Store
.vscode
telegram/_version.py
51 changes: 50 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,55 @@
[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 = "me@alx.cx"}]
license = {text = "MIT"}
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"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
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

41 changes: 0 additions & 41 deletions setup.py

This file was deleted.

0 comments on commit ac517d0

Please sign in to comment.