Date: Sunday, February 20, 2022 @ 09:44:52 Author: diabonas Revision: 1135239
upgpkg: weechat-matrix 0.3.0-6: update PEP 517 build process according to new Python package guidelines Modified: weechat-matrix/trunk/PKGBUILD ----------+ PKGBUILD | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-20 09:43:30 UTC (rev 1135238) +++ PKGBUILD 2022-02-20 09:44:52 UTC (rev 1135239) @@ -2,7 +2,7 @@ pkgname=weechat-matrix pkgver=0.3.0 _tag=ebf792a233a50d639b13e5f7c9a1c1fe988e7476 # git rev-parse "$pkgver" -pkgrel=5 +pkgrel=6 pkgdesc='WeeChat Matrix protocol script written in Python' arch=('any') url='https://github.com/poljar/weechat-matrix' @@ -9,7 +9,7 @@ license=('ISC') depends=('python' 'python-atomicwrites' 'python-attrs' 'python-logbook' 'python-matrix-nio' 'python-pygments' 'python-pyopenssl' 'python-webcolors' 'weechat') -makedepends=('git' 'python-dephell' 'python-setuptools') +makedepends=('git' 'python-build' 'python-installer' 'python-poetry') checkdepends=('python-hypothesis' 'python-pytest') optdepends=('python-aiohttp: matrix_sso_helper support' 'python-magic: matrix_upload support' @@ -30,7 +30,6 @@ prepare() { cd "$pkgname" sed -ri 's|#!/usr/bin/env( -S)? python3|#!/usr/bin/python3|' contrib/*.py - dephell deps convert --from pyproject.toml --to setup.py # SSLContext.set_npn_protocols broken in Python 3.10 # (https://github.com/poljar/weechat-matrix/issues/308) @@ -39,7 +38,7 @@ build() { cd "$pkgname" - python setup.py build + python -m build --wheel --no-isolation --skip-dependency-check } check() { @@ -49,7 +48,7 @@ package() { cd "$pkgname" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm755 main.py "$pkgdir/usr/share/weechat/python/weechat-matrix.py" for _script in matrix_decrypt matrix_sso_helper matrix_upload do