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

Antonio Rojas arojas at gemini.archlinux.org
Wed May 4 10:24:09 UTC 2022


    Date: Wednesday, May 4, 2022 @ 10:24:08
  Author: arojas
Revision: 1193113

Update to 20.0.0

Modified:
  python-irc/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-04 10:24:08 UTC (rev 1193112)
+++ PKGBUILD	2022-05-04 10:24:08 UTC (rev 1193113)
@@ -5,12 +5,12 @@
 # Contributor: Stefano Esposito <ragnarok at email.it>
 
 pkgname=python-irc
-pkgver=19.0.1
-pkgrel=3
+pkgver=20.0.0
+pkgrel=1
 pkgdesc="IRC (Internet Relay Chat) protocol client library for Python"
 depends=('python-six' 'python-pytz' 'python-more-itertools' 'python-jaraco'
          'python-tempora')
-makedepends=('python-setuptools-scm')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
 checkdepends=('python-pytest' 'python-pytest-flake8' 'python-pytest-black'
               'python-pytest-cov' 'python-pytest-mypy')
 arch=('any')
@@ -17,12 +17,12 @@
 url="https://pypi.python.org/pypi/irc"
 license=('LGPL')
 source=("https://files.pythonhosted.org/packages/source/i/irc/irc-$pkgver.tar.gz")
-sha256sums=('99fd5d1fa1d054dee4fbb81e0d5193dc1e8200db751d5da9a97850a62162b9ab')
+sha256sums=('59acb8d69d61a0cbd290e77e6ff10a8c7f2201fb8c7b7d5a195b5883d0c40b0a')
 
 build() {
   cd "irc-$pkgver"
   export LC_ALL=en_US.UTF-8
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -34,5 +34,7 @@
 package() {
   cd "irc-$pkgver"
   export LC_ALL=en_US.UTF-8
-  python setup.py install --root="$pkgdir" --optimize=0
+  python -m installer --destdir="$pkgdir" dist/*.whl
+# Remove sample scripts installed in generic namespace
+  rm -r "$pkgdir"/usr/lib/python*/site-packages/scripts
 }



More information about the arch-commits mailing list