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

Morten Linderud foxboron at archlinux.org
Sat Sep 26 16:02:30 UTC 2020


    Date: Saturday, September 26, 2020 @ 16:02:29
  Author: foxboron
Revision: 712479

upgpkg: python-irc 19.0.1-1 - Added pytest

Modified:
  python-irc/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-26 15:56:18 UTC (rev 712478)
+++ PKGBUILD	2020-09-26 16:02:29 UTC (rev 712479)
@@ -1,38 +1,38 @@
 # Maintainer: Kyle Keen <keenerd at gmail.com>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
 # Contributor: Jelle van der Waa <jelle at vdwaa.nl>
 # Contributor: Pierre Chapuis <catwell at archlinux.us>
 # Contributor: Stefano Esposito <ragnarok at email.it>
 
 pkgname=python-irc
-pkgver=19.0.0
+pkgver=19.0.1
 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')
-checkdepends=('python-pytest')
+checkdepends=('python-pytest' 'python-pytest-flake8' 'python-pytest-black'
+              'python-pytest-cov' 'python-pytest-mypy')
 arch=('any')
 url="https://pypi.python.org/pypi/irc"
 license=('LGPL')
 source=("https://files.pythonhosted.org/packages/source/i/irc/irc-$pkgver.tar.gz")
-md5sums=('efa8cbcf8e577e7f15552622a2ae280a')
+sha256sums=('99fd5d1fa1d054dee4fbb81e0d5193dc1e8200db751d5da9a97850a62162b9ab')
 
 build() {
-  cd "$srcdir/irc-$pkgver"
+  cd "irc-$pkgver"
   export LC_ALL=en_US.UTF-8
-  python3 setup.py build
+  python setup.py build
 }
 
 check() {
-  cd "$srcdir/irc-$pkgver"
+  cd "irc-$pkgver"
   export LC_ALL=en_US.UTF-8
-  #python3 setup.py test
-  # all 19.0.0 did was remove the explicit VERSION string
-  # in his typical style, this part of the API is still required for tests
+  pytest .
 }
 
 package() {
-  cd "$srcdir/irc-$pkgver"
+  cd "irc-$pkgver"
   export LC_ALL=en_US.UTF-8
-  python3 setup.py install --root="$pkgdir" --optimize=0
+  python setup.py install --root="$pkgdir" --optimize=0
 }



More information about the arch-commits mailing list