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

Daniel M. Capella polyzen at archlinux.org
Wed May 26 06:47:33 UTC 2021


    Date: Wednesday, May 26, 2021 @ 06:47:32
  Author: polyzen
Revision: 946615

upgpkg: python-ansicolor 0.3.2-1

Modified:
  python-ansicolor/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-26 06:44:44 UTC (rev 946614)
+++ PKGBUILD	2021-05-26 06:47:32 UTC (rev 946615)
@@ -3,16 +3,18 @@
 
 _name=ansicolor
 pkgname=python-ansicolor
-pkgver=0.2.6
-pkgrel=9
+pkgver=0.3.2
+pkgrel=1
 pkgdesc='Library to produce ansi color output and colored highlighting and diffing'
 depends=('python')
 makedepends=('python-setuptools')
+checkdepends=('python-pytest')
 arch=('any')
 url=https://github.com/numerodix/ansicolor
 license=('Apache')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('d17e1b07b9dd7ded31699fbca53ae6cd373584f9b6dcbc124d1f321ebad31f1d')
+sha256sums=('3b840a6b1184b5f1568635b1adab28147947522707d41ceba02d5ed0a0877279')
+b2sums=('c7f3287645ec3c1b02280b2ac4da0051ba1a88b71c09516f98103787ae2d09bed7b441ecb8cea9796f24f3935154cf1bc4180d12842f8ed1c6e024a066fa228a')
 
 build() {
   cd $_name-$pkgver
@@ -19,7 +21,17 @@
   python setup.py build
 }
 
+check() {
+  cd $_name-$pkgver
+  mkdir -p temp
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  python setup.py install --skip-build --root=temp
+  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" pytest
+}
+
 package() {
   cd $_name-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list