[arch-commits] Commit in python-subunit/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:51:11 UTC 2020


    Date: Monday, November 9, 2020 @ 16:51:11
  Author: felixonmars
Revision: 747604

archrelease: copy trunk to community-staging-any

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

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

Copied: python-subunit/repos/community-staging-any/PKGBUILD (from rev 747602, python-subunit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:51:11 UTC (rev 747604)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-subunit
+pkgver=1.4.0
+pkgrel=2
+pkgdesc="Python implementation of subunit test streaming protocol"
+arch=('any')
+license=('Apache')
+url="https://launchpad.net/subunit"
+depends=('python-extras' 'python-testtools')
+makedepends=('python-setuptools')
+checkdepends=('python-fixtures' 'python-hypothesis' 'python-testscenarios')
+source=("https://pypi.io/packages/source/p/python-subunit/python-subunit-$pkgver.tar.gz")
+sha512sums=('7f8ebf1cfdd7ff22bfd68367cb90dd75e7f3b5f7da71830b304225905e1799ad1ec8f0d41f5f98895c831dc10fe77229137a472b8e8e57ea84c05c66694a5b5b')
+
+prepare() {
+  sed -i 's|import unittest2 as unittest|import unittest|' python-subunit-$pkgver/python/subunit/tests/test_test_protocol.py
+}
+
+build() {
+  cd python-subunit-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-subunit-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m testtools.run subunit.test_suite || :
+}
+
+package() {
+  cd python-subunit-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1
+}



More information about the arch-commits mailing list