Date: Sunday, November 27, 2022 @ 06:59:39
  Author: felixonmars
Revision: 1354077

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-27 06:59:29 UTC (rev 1354076)
+++ PKGBUILD    2022-11-27 06:59:39 UTC (rev 1354077)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-subunit
-pkgver=1.4.0
-pkgrel=5
-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
-}

Copied: python-subunit/repos/community-any/PKGBUILD (from rev 1354076, 
python-subunit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-11-27 06:59:39 UTC (rev 1354077)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-subunit
+pkgver=1.4.1
+pkgrel=1
+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://github.com/testing-cabal/subunit/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('c21ab0791ccc92e47df5d741deaae56fffe792777958193727f47c2739135fb77880d30b106e525239c0c35841834dd937e2b30fce27fbe73ca9116753147a65')
+
+build() {
+  cd subunit-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd subunit-$pkgver
+  PYTHONPATH="$PWD/build/lib" python -m testtools.run subunit.test_suite || 
echo "Tests failed"
+}
+
+package() {
+  cd subunit-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}

Reply via email to