[arch-commits] Commit in python-irc/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Wed Jun 8 11:03:03 UTC 2022
Date: Wednesday, June 8, 2022 @ 11:03:03
Author: dvzrv
Revision: 1229233
upgpkg: python-irc 20.0.0-2: Depend on specific python-jaraco package
Modified:
python-irc/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++------------
1 file changed, 21 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-08 11:02:37 UTC (rev 1229232)
+++ PKGBUILD 2022-06-08 11:03:03 UTC (rev 1229233)
@@ -6,35 +6,44 @@
pkgname=python-irc
pkgver=20.0.0
-pkgrel=1
+pkgrel=2
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')
+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"
- 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 .
+ pytest -vv -c /dev/null
}
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
+ 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