[arch-commits] Commit in python-matrix-nio/trunk (PKGBUILD)
Jonas Witschel
diabonas at gemini.archlinux.org
Sun Feb 20 09:43:14 UTC 2022
Date: Sunday, February 20, 2022 @ 09:43:14
Author: diabonas
Revision: 1135237
upgpkg: python-matrix-nio 0.19.0-2: update PEP 517 build process according to new Python package guidelines
Modified:
python-matrix-nio/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-20 08:59:08 UTC (rev 1135236)
+++ PKGBUILD 2022-02-20 09:43:14 UTC (rev 1135237)
@@ -2,7 +2,7 @@
pkgname=python-matrix-nio
pkgver=0.19.0
_tag=52109a160765f1a9e7f78be1aed8a282a83515f1 # git rev-parse "$pkgver"
-pkgrel=1
+pkgrel=2
pkgdesc='Python Matrix client library, designed according to sans I/O principles'
arch=('any')
url='https://github.com/poljar/matrix-nio'
@@ -10,7 +10,7 @@
depends=('python' 'python-aiofiles' 'python-aiohttp' 'python-aiohttp-socks' 'python-atomicwrites'
'python-cachetools' 'python-future' 'python-h11' 'python-h2' 'python-jsonschema' 'python-logbook'
'python-olm' 'python-peewee' 'python-pycryptodome' 'python-unpaddedbase64')
-makedepends=('git' 'python-dephell' 'python-setuptools')
+makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
checkdepends=('python-aioresponses' 'python-faker' 'python-hpack' 'python-hyperframe' 'python-hypothesis'
'python-pytest' 'python-pytest-aiohttp' 'python-pytest-benchmark')
source=("git+$url.git?signed#tag=$_tag")
@@ -22,14 +22,9 @@
git describe | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}
-prepare() {
- cd "${pkgname#python-}"
- dephell deps convert --from pyproject.toml --to setup.py
-}
-
build() {
cd "${pkgname#python-}"
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
@@ -39,6 +34,6 @@
package() {
cd "${pkgname#python-}"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
More information about the arch-commits
mailing list