Date: Wednesday, April 5, 2023 @ 18:24:04
  Author: felixonmars
Revision: 1437882

archrelease: copy trunk to community-staging-any

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

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

Copied: python-subunit/repos/community-staging-any/PKGBUILD (from rev 1437881, 
python-subunit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 18:24:04 UTC (rev 1437882)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-subunit
+pkgver=1.4.2
+pkgrel=4
+pkgdesc="Python implementation of subunit test streaming protocol"
+arch=('any')
+license=('Apache')
+url="https://launchpad.net/subunit";
+depends=('python-extras' 'python-testtools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+checkdepends=('python-fixtures' 'python-hypothesis' 'python-testscenarios')
+source=("https://github.com/testing-cabal/subunit/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('21413f0ed26f5f0572249ff4bcf948ea25d9185a1df73421836b9b21e11f323300f93a0275f0d64dc7c81a8e038fa0661a34f818bb038abf79c0637e051bc69e')
+
+build() {
+  cd subunit-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd subunit-$pkgver
+  PYTHONPATH="$PWD/build/lib" python -m testtools.run subunit.test_suite || 
echo "Tests failed"
+}
+
+package() {
+  cd subunit-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to