Skip to content

Commit 31e3bd1

Browse files
authored
Merge pull request eternnoir#2157 from coder2020official/newsetup
Testing out pyproject.toml instead of legacy setup.py
2 parents 2c0d815 + d8b4dcc commit 31e3bd1

File tree

4 files changed

+52
-48
lines changed

4 files changed

+52
-48
lines changed

.github/workflows/setup_python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
python-version: [ '3.8', '3.9', '3.10', '3.11', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10']
23+
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9', 'pypy-3.10']
2424
name: ${{ matrix.python-version }} and tests
2525
steps:
2626
- uses: actions/checkout@v2
@@ -31,5 +31,5 @@ jobs:
3131
architecture: x64
3232
- run: |
3333
pip3 install -r requirements.txt
34-
python setup.py install
34+
pip3 install .
3535
cd tests && py.test

pyproject.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "pyTelegramBotAPI"
7+
version = "4.15.4"
8+
description = "Python Telegram bot api."
9+
authors = [{name = "eternnoir", email = "[email protected]"}]
10+
license = {text = "GPL2"}
11+
readme = "README.md"
12+
requires-python = ">=3.7"
13+
keywords = ["telegram", "bot", "api", "tools"]
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.7",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Environment :: Console",
24+
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)"
25+
]
26+
dependencies = ["requests"]
27+
28+
[project.urls]
29+
Homepage = "https://github.com/eternnoir/pyTelegramBotAPI"
30+
Documentation = "https://pytba.readthedocs.org"
31+
Repository = "https://github.com/eternnoir/pyTelegramBotAPI"
32+
Issues = "https://github.com/eternnoir/pyTelegramBotAPI/issues"
33+
34+
35+
[project.optional-dependencies]
36+
json = ["ujson"]
37+
PIL = ["Pillow"]
38+
redis = ["redis>=3.4.1"]
39+
aioredis = ["aioredis"]
40+
aiohttp = ["aiohttp"]
41+
fastapi = ["fastapi"]
42+
uvicorn = ["uvicorn"]
43+
psutil = ["psutil"]
44+
coloredlogs = ["coloredlogs"]
45+
watchdog = ["watchdog"]
46+
47+
48+
[tool.hatch.build.targets.wheel]
49+
include = ["telebot/*"]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pytest
22
requests==2.31.0
33
wheel==0.38.1
4-
aiohttp>=3.8.0,<3.9.0
4+
aiohttp==3.9.0

setup.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)