Date: Thursday, April 6, 2023 @ 13:00:34
  Author: felixonmars
Revision: 1438738

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-ansicolor/repos/community-staging-any/PKGBUILD (from rev 
1438736, python-ansicolor/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 13:00:34 UTC (rev 1438738)
@@ -0,0 +1,35 @@
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: Darshit Shah <[email protected]>
+
+_name=ansicolor
+pkgname=python-ansicolor
+pkgver=0.3.2
+pkgrel=5
+pkgdesc='Library to produce ansi color output and colored highlighting and 
diffing'
+arch=('any')
+url=https://github.com/numerodix/ansicolor
+license=('Apache')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz";)
+sha256sums=('3b840a6b1184b5f1568635b1adab28147947522707d41ceba02d5ed0a0877279')
+b2sums=('c7f3287645ec3c1b02280b2ac4da0051ba1a88b71c09516f98103787ae2d09bed7b441ecb8cea9796f24f3935154cf1bc4180d12842f8ed1c6e024a066fa228a')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to