diff options
author | Helio Loureiro | 2024-02-17 17:48:09 +0100 |
---|---|---|
committer | Helio Loureiro | 2024-02-17 17:48:09 +0100 |
commit | 4325f6c458d5a3956c6a86db18c42b37629e8ad7 (patch) | |
tree | 5d8723345eb57a4379fbf67085cdf612d838455f | |
parent | e97c1b5f534fcff18b047753f2d09d7634968578 (diff) | |
download | aur-4325f6c458d5a3956c6a86db18c42b37629e8ad7.tar.gz |
Step up to version 4.16.0
* Bot API support bumped up to v.7.1
- Maintainer note: the setup.py was removed on this version
so the package build required some... creative way to be
done.
-rwxr-xr-x | .SRCINFO | 10 | ||||
-rwxr-xr-x | PKGBUILD | 13 |
2 files changed, 16 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = python-pytelegrambotapi pkgdesc = Python Telegram bot api - pkgver = 4.15.2 + pkgver = 4.16.0 pkgrel = 1 url = https://github.com/eternnoir/pyTelegramBotAPI arch = any @@ -10,7 +10,11 @@ pkgbase = python-pytelegrambotapi depends = python-pytest depends = python-wheel depends = python-aiohttp - source = https://github.com/eternnoir/pyTelegramBotAPI/archive/refs/tags/4.15.2.tar.gz - sha256sums = 5af397c6dc3de672b6b5b549557eeaf5c58c15bf27181357112917808a4ab237 + depends = python-pip + depends = python-build + depends = sed + depends = coreutils + source = https://github.com/eternnoir/pyTelegramBotAPI/archive/refs/tags/4.16.0.tar.gz + sha256sums = 00f13823a48b28241d9e388dcdcff243fa4091fa3363a142b47c0d3c9878641d pkgname = python-pytelegrambotapi @@ -3,17 +3,22 @@ pkgname=python-pytelegrambotapi _pkgname=pyTelegramBotAPI -pkgver=4.15.2 +pkgver=4.16.0 pkgrel=1 pkgdesc="Python Telegram bot api" arch=('any') url="https://github.com/eternnoir/pyTelegramBotAPI" license=("GPLv2") -depends=('python' 'python-requests' 'python-pytest' 'python-wheel' 'python-aiohttp') +depends=('python' 'python-requests' 'python-pytest' 'python-wheel' 'python-aiohttp' 'python-pip' 'python-build' 'sed' 'coreutils') source=("https://github.com/eternnoir/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz") -sha256sums=('5af397c6dc3de672b6b5b549557eeaf5c58c15bf27181357112917808a4ab237') +sha256sums=('00f13823a48b28241d9e388dcdcff243fa4091fa3363a142b47c0d3c9878641d') package() { cd ${srcdir}/${_pkgname}-${pkgver}/ - python setup.py install --root ${pkgdir} + py_pkg_path=$(python -c 'import sys; [print(p) for p in sys.path]' | sed -n '/^\/usr.*site-packages/p' | head -1) + python -m build + mkdir -p ${pkgdir}/${py_pkg_path} + python -m pip install --no-deps \ + --target=${pkgdir}/${py_pkg_path} \ + dist/pytelegrambotapi-${pkgver}-py3-none-any.whl } |