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

Felix Yan felixonmars at gemini.archlinux.org
Mon Aug 22 19:22:42 UTC 2022


    Date: Monday, August 22, 2022 @ 19:22:42
  Author: felixonmars
Revision: 1274862

archrelease: copy trunk to community-any

Added:
  python-green/repos/community-any/
  python-green/repos/community-any/PKGBUILD
    (from rev 1274861, python-green/trunk/PKGBUILD)

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

Copied: python-green/repos/community-any/PKGBUILD (from rev 1274861, python-green/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-08-22 19:22:42 UTC (rev 1274862)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-green
+pkgver=3.4.1
+pkgrel=1
+pkgdesc="Green is a clean, colorful, fast python test runner"
+url="https://github.com/CleanCut/green"
+license=('MIT')
+arch=('any')
+depends=('python-colorama' 'python-coverage' 'python-unidecode' 'python-lxml')
+makedepends=('python-setuptools')
+checkdepends=('python-django' 'python-testtools')
+source=("https://github.com/CleanCut/green/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('b9c3e6d3333ef1f665f77567bc867992e4d80987fb875a36934a3287644c8779933bf9f1ed667dd326e3d6793bce81bc66ce6ccb767474b19671456c32cd83aa')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd green-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd green-$pkgver
+  ./g 3 -r -vvvv green
+}
+
+package() {
+  cd green-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list