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

Jonas Witschel diabonas at gemini.archlinux.org
Sun Feb 27 18:09:25 UTC 2022


    Date: Sunday, February 27, 2022 @ 18:09:25
  Author: diabonas
Revision: 1137813

upgpkg: py3status 3.41-1: upstream release, switch to PEP 517 build

Modified:
  py3status/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-27 17:06:04 UTC (rev 1137812)
+++ PKGBUILD	2022-02-27 18:09:25 UTC (rev 1137813)
@@ -5,13 +5,14 @@
 # Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
 
 pkgname=py3status
-pkgver=3.40
-pkgrel=2
+pkgver=3.41
+pkgrel=1
 pkgdesc="An extensible i3status replacement/wrapper written in python"
 url="https://www.ultrabug.fr/tag/py3status/"
 arch=('any')
 license=('BSD')
 depends=('python' 'python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-pytest-runner')
 optdepends=('i3status: for i3status modules'
             'i3blocks: for i3blocks modules'
@@ -21,21 +22,21 @@
             'python-tzlocal: for the clock module'
             'pacman-contrib: for the arch_updates module')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/ultrabug/py3status/archive/$pkgver.tar.gz")
-sha256sums=('84885ec8a43626dcd7576b9cad029406c98675ca00ba66ff124d7607290d2b66')
+sha256sums=('9728ff6913a13087201c73f682f67afcd8dc73a71b044d6833737ee227ad5fba')
 
 build() {
     cd "$pkgname-$pkgver"
-    python setup.py build
+    python -m build --wheel --no-isolation
 }
 
 check() {
     cd "$pkgname-$pkgver"
-    python setup.py pytest
+    pytest
 }
 
 package() {
     cd "$pkgname-$pkgver"
-    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+    python -m installer --destdir="$pkgdir" dist/*.whl
     install -d "$pkgdir/usr/share/doc/$pkgname"{,/dev-guide,/user-guide}
     install -m644 docs/*.md README.md CHANGELOG "$pkgdir/usr/share/doc/$pkgname"
     install -m644 docs/dev-guide/* "$pkgdir/usr/share/doc/$pkgname/dev-guide"



More information about the arch-commits mailing list