Skip to content

Commit

Permalink
Use pyprpject.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 f1f35d4
Show file tree
Hide file tree
Showing 4 changed files with 53 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
53 changes: 52 additions & 1 deletion pyproject.toml
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
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 f1f35d4

Please sign in to comment.