[arch-commits] Commit in python-pywayland/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Tue Apr 19 07:41:16 UTC 2022


    Date: Tuesday, April 19, 2022 @ 07:41:15
  Author: dvzrv
Revision: 1187070

upgpkg: python-pywayland 0.4.12-1: Upgrade to 0.4.12.

Switch to PEP517.
Add debug package.

Modified:
  python-pywayland/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-19 06:24:51 UTC (rev 1187069)
+++ PKGBUILD	2022-04-19 07:41:15 UTC (rev 1187070)
@@ -2,7 +2,7 @@
 
 _name=pywayland
 pkgname=python-pywayland
-pkgver=0.4.11
+pkgver=0.4.12
 pkgrel=1
 pkgdesc="Python bindings for the libwayland library"
 arch=(x86_64)
@@ -9,17 +9,18 @@
 url="https://github.com/flacjacket/pywayland"
 license=(Apache)
 depends=(python-cffi wayland)
-makedepends=(python-setuptools wayland-protocols)
+makedepends=(python-build python-installer python-setuptools wayland-protocols python-wheel)
 checkdepends=(python-pytest)
+options=(debug)
 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha512sums=('136d42129559d569f372acb65df354c7dab6cb39b5c5039f40132c4ee62fcd89518843af1333a4a6d669855d3cf5c3064602dc12cc9b7ec8ced84d8e4f48bca0')
-b2sums=('f483b255d074cff977cfa1e235d6ed9492dd077eccc1aba9ebfe629977eb1be2b74f88650ce2e5f990a219ecabb37d1e3d81bd5626fa8a0b532a5d2c970a292b')
+sha512sums=('f27f4c375db26dcff5b42d377430810abf72fd98d8b24b4cd0671c97e5f8f0863fc71dcc9d7f2dcb60fdcd406218d6c70d5bc778e1cb9d08753d49972eec3e04')
+b2sums=('a2e0486a865a058fdc7cf3365a15c726b053e71179e9baec74695e5f195e65648cb93a30962be609970badad1f693a88c90ca763f7c9ca981526123f8136be39')
 
 build() {
   cd $_name-$pkgver
   python pywayland/ffi_build.py
   python -m pywayland.scanner
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -29,11 +30,11 @@
   mkdir -vp temp
   export PYTHONPATH="build/lib.linux-$CARCH-$_py_ver:$PYTHONPATH"
   export XDG_RUNTIME_DIR="$PWD/temp"
-  pytest -v
+  pytest -vv
 }
 
 package() {
   cd $_name-$pkgver
-  python setup.py install --optimize=1 --root="$pkgdir"
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
 }



More information about the arch-commits mailing list