[arch-commits] Commit in python-irc/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Wed Jun 8 11:03:18 UTC 2022


    Date: Wednesday, June 8, 2022 @ 11:03:18
  Author: dvzrv
Revision: 1229234

archrelease: copy trunk to community-any

Added:
  python-irc/repos/community-any/PKGBUILD
    (from rev 1229233, python-irc/trunk/PKGBUILD)
Deleted:
  python-irc/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   89 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 49 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-08 11:03:03 UTC (rev 1229233)
+++ PKGBUILD	2022-06-08 11:03:18 UTC (rev 1229234)
@@ -1,40 +0,0 @@
-# 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=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-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')
-url="https://pypi.python.org/pypi/irc"
-license=('LGPL')
-source=("https://files.pythonhosted.org/packages/source/i/irc/irc-$pkgver.tar.gz")
-sha256sums=('59acb8d69d61a0cbd290e77e6ff10a8c7f2201fb8c7b7d5a195b5883d0c40b0a')
-
-build() {
-  cd "irc-$pkgver"
-  export LC_ALL=en_US.UTF-8
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  cd "irc-$pkgver"
-  export LC_ALL=en_US.UTF-8
-  pytest .
-}
-
-package() {
-  cd "irc-$pkgver"
-  export LC_ALL=en_US.UTF-8
-  python -m installer --destdir="$pkgdir" dist/*.whl
-# Remove sample scripts installed in generic namespace
-  rm -r "$pkgdir"/usr/lib/python*/site-packages/scripts
-}

Copied: python-irc/repos/community-any/PKGBUILD (from rev 1229233, python-irc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-08 11:03:18 UTC (rev 1229234)
@@ -0,0 +1,49 @@
+# 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=20.0.0
+pkgrel=2
+pkgdesc="IRC (Internet Relay Chat) protocol client library for Python"
+arch=('any')
+url="https://pypi.python.org/pypi/irc"
+license=(MIT)
+depends=(
+  python-jaraco.collections
+  python-jaraco.functools
+  python-jaraco.logging
+  python-jaraco.stream
+  python-jaraco.text
+  python-more-itertools
+  python-pytz
+  python-tempora
+)
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
+checkdepends=(python-pytest python-pytest-enabler python-pygments)
+source=("https://files.pythonhosted.org/packages/source/i/irc/irc-$pkgver.tar.gz")
+sha256sums=('59acb8d69d61a0cbd290e77e6ff10a8c7f2201fb8c7b7d5a195b5883d0c40b0a')
+
+build() {
+  cd "irc-$pkgver"
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "irc-$pkgver"
+  pytest -vv -c /dev/null
+}
+
+package() {
+  cd "irc-$pkgver"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 *.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 scripts/*.py -t "$pkgdir/usr/share/doc/$pkgname/scripts/"
+
+  # Remove sample scripts installed in generic namespace
+  # TODO: report upstream!
+  rm -r "$pkgdir"/usr/lib/python*/site-packages/scripts
+}



More information about the arch-commits mailing list