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

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


    Date: Wednesday, May 26, 2021 @ 06:47:51
  Author: polyzen
Revision: 946616

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   62 ++++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 37 insertions(+), 25 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-26 06:47:32 UTC (rev 946615)
+++ PKGBUILD	2021-05-26 06:47:51 UTC (rev 946616)
@@ -1,25 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Darshit Shah <darnir at gmail.com>
-
-_name=ansicolor
-pkgname=python-ansicolor
-pkgver=0.2.6
-pkgrel=9
-pkgdesc='Library to produce ansi color output and colored highlighting and diffing'
-depends=('python')
-makedepends=('python-setuptools')
-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')
-
-build() {
-  cd $_name-$pkgver
-  python setup.py build
-}
-
-package() {
-  cd $_name-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-ansicolor/repos/community-any/PKGBUILD (from rev 946615, python-ansicolor/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-26 06:47:51 UTC (rev 946616)
@@ -0,0 +1,37 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Darshit Shah <darnir at gmail.com>
+
+_name=ansicolor
+pkgname=python-ansicolor
+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=('3b840a6b1184b5f1568635b1adab28147947522707d41ceba02d5ed0a0877279')
+b2sums=('c7f3287645ec3c1b02280b2ac4da0051ba1a88b71c09516f98103787ae2d09bed7b441ecb8cea9796f24f3935154cf1bc4180d12842f8ed1c6e024a066fa228a')
+
+build() {
+  cd $_name-$pkgver
+  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