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

Felix Yan felixonmars at gemini.archlinux.org
Thu Jul 15 11:54:22 UTC 2021


    Date: Thursday, July 15, 2021 @ 11:54:22
  Author: felixonmars
Revision: 977247

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   81 ++++++++++++++++++++++++-------------------------------------
 1 file changed, 32 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-15 11:54:09 UTC (rev 977246)
+++ PKGBUILD	2021-07-15 11:54:22 UTC (rev 977247)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-testtools
-pkgver=2.4.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' 'python-pyrsistent' 'python-mimeparse')
-makedepends=('python-setuptools')
-checkdepends=('python-testscenarios')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/testing-cabal/testtools/archive/$pkgver.tar.gz"
-        $pkgname-py39.patch::https://github.com/testing-cabal/testtools/commit/1d698cf91cb2.patch)
-sha512sums=('7983c6666b8d4dae3bc4e37d967e09f735d0753a9f517f00e53c4884d86c56d3272bb34d56a8246c74e44cff0087a713973a9cd4aa5d86f9ec8d60e842a6db92'
-            'a554d49e74f43269a847d767611f86fda655fe9ca27cf182c91975702b6928b4161e12d78283113b88b4d50b9fce240cd4fbf236e884e8b92698bdd512c42598')
-
-export PBR_VERSION=$pkgver
-
-prepare() {
-  patch -Np1 -d testtools-$pkgver <$pkgname-py39.patch
-
-  # These are for python 2.x and old python 3.x only
-  sed -i 's|unittest2|unittest|' testtools-$pkgver/testtools/tests/test_run.py \
-                                 testtools-$pkgver/testtools/tests/test_testsuite.py \
-                                 testtools-$pkgver/testtools/tests/twistedsupport/test_matchers.py \
-                                 testtools-$pkgver/testtools/tests/twistedsupport/test_deferred.py \
-                                 testtools-$pkgver/testtools/tests/twistedsupport/test_runtest.py
-  sed -i '/unittest2>=1.0.0/d' testtools-$pkgver/requirements.txt
-  sed -i 's|import linecache2 as linecache|import linecache|' testtools-$pkgver/testtools/tests/test_compat.py
-  sed -i "s|traceback = try_import('traceback2')|import traceback|" testtools-$pkgver/testtools/content.py
-  sed -i '/traceback2/d' testtools-$pkgver/requirements.txt
-}
-
-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-any/PKGBUILD (from rev 977246, python-testtools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-07-15 11:54:22 UTC (rev 977247)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-testtools
+pkgver=2.5.0
+pkgrel=1
+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
+}




More information about the arch-commits mailing list