[arch-commits] Commit in python-testtools/repos/community-staging-any (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 20:45:33 UTC 2021


    Date: Wednesday, December 1, 2021 @ 20:45:33
  Author: felixonmars
Revision: 1060712

archrelease: copy trunk to community-staging-any

Added:
  python-testtools/repos/community-staging-any/PKGBUILD
    (from rev 1060711, python-testtools/trunk/PKGBUILD)
Deleted:
  python-testtools/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   71 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 39 insertions(+), 32 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-01 20:45:24 UTC (rev 1060711)
+++ PKGBUILD	2021-12-01 20:45:33 UTC (rev 1060712)
@@ -1,32 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-testtools
-pkgver=2.5.0
-pkgrel=2
-pkgdesc="Extensions to the Python standard library unit testing framework"
-arch=('any')
-license=('MIT')
-url="https://github.com/testing-cabal/testtools"
-depends=('python-pbr' 'python-extras' 'python-fixtures')
-makedepends=('python-setuptools')
-checkdepends=('python-testscenarios')
-source=("https://github.com/testing-cabal/testtools/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('81e2a31f34461aefa52a553966deb979e2cc8632c0fe2b87640925958d403598e45a3a16eb35d583894fac507670b349cebae002ae5376185e86032ebfb5da80')
-
-export PBR_VERSION=$pkgver
-
-build() {
-  cd testtools-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd testtools-$pkgver
-  python -m testtools.run testtools.tests.test_suite
-}
-
-package() {
-  cd testtools-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-testtools/repos/community-staging-any/PKGBUILD (from rev 1060711, python-testtools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-01 20:45:33 UTC (rev 1060712)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-testtools
+pkgver=2.5.0
+pkgrel=3
+pkgdesc="Extensions to the Python standard library unit testing framework"
+arch=('any')
+license=('MIT')
+url="https://github.com/testing-cabal/testtools"
+depends=('python-pbr' 'python-extras' 'python-fixtures')
+makedepends=('python-setuptools')
+checkdepends=('python-testscenarios')
+source=("https://github.com/testing-cabal/testtools/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        $pkgname-python310.patch::https://github.com/testing-cabal/testtools/commit/ec9bb7ed0265.patch)
+sha512sums=('81e2a31f34461aefa52a553966deb979e2cc8632c0fe2b87640925958d403598e45a3a16eb35d583894fac507670b349cebae002ae5376185e86032ebfb5da80'
+            'd1e9763a3fa5ef66666f28687e5c798c2d92c6eb73f702f216b125ef15f5eb10e100da8836e81a6dc0748f1cb8887c92647a29f0e615413d5c371653910f0573')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+  cd testtools-$pkgver
+  patch -Np1 -i ../$pkgname-python310.patch
+}
+
+build() {
+  cd testtools-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd testtools-$pkgver
+  python -m testtools.run testtools.tests.test_suite
+}
+
+package() {
+  cd testtools-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list