[arch-commits] Commit in python-testtools/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:02:02 UTC 2019
Date: Friday, October 25, 2019 @ 15:02:02
Author: felixonmars
Revision: 518922
archrelease: copy trunk to community-staging-any
Added:
python-testtools/repos/community-staging-any/PKGBUILD
(from rev 518921, python-testtools/trunk/PKGBUILD)
Deleted:
python-testtools/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 134 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 67 insertions(+), 67 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-25 15:01:46 UTC (rev 518921)
+++ PKGBUILD 2019-10-25 15:02:02 UTC (rev 518922)
@@ -1,67 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-testtools
-pkgname=('python-testtools' 'python2-testtools')
-pkgver=2.3.0
-pkgrel=3
-pkgdesc="Extensions to the Python standard library unit testing framework"
-arch=('any')
-license=('MIT')
-url="https://github.com/testing-cabal/testtools"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pyrsistent' 'python2-pyrsistent'
- 'git' 'python-pbr' 'python2-pbr' 'python-extras' 'python2-extras'
- 'python-fixtures' 'python2-fixtures' 'python-mimeparse' 'python2-mimeparse'
- 'python2-unittest2' 'python2-traceback2')
-checkdepends=('python-testscenarios' 'python2-testscenarios')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/testing-cabal/testtools/archive/$pkgver.tar.gz")
-sha512sums=('7c3b9e180c5f22d613763446525fcb3f7f260d79bc875669134c3077af0e0d3e101863429e0469ffcb26fd0755b2c915454abc949be864639a2faa9cf5024c62')
-
-prepare() {
- cp -a testtools-$pkgver{,-py2}
-
- # 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
-
- export PBR_VERSION=$pkgver
-}
-
-build() {
- cd "$srcdir"/testtools-$pkgver
- python setup.py build
-
- cd "$srcdir"/testtools-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/testtools-$pkgver
- python -m testtools.run testtools.tests.test_suite
-
- cd "$srcdir"/testtools-$pkgver-py2
- python2 -m testtools.run testtools.tests.test_suite
-}
-
-package_python-testtools() {
- depends=('python-pbr' 'python-extras' 'python-fixtures' 'python-pyrsistent' 'python-mimeparse')
-
- cd testtools-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-testtools() {
- depends=('python2-pbr' 'python2-extras' 'python2-fixtures' 'python2-pyrsistent'
- 'python2-mimeparse' 'python2-unittest2' 'python2-traceback2')
-
- cd testtools-$pkgver-py2
- python2 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 518921, python-testtools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-25 15:02:02 UTC (rev 518922)
@@ -0,0 +1,67 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-testtools
+pkgname=('python-testtools' 'python2-testtools')
+pkgver=2.3.0
+pkgrel=4
+pkgdesc="Extensions to the Python standard library unit testing framework"
+arch=('any')
+license=('MIT')
+url="https://github.com/testing-cabal/testtools"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyrsistent' 'python2-pyrsistent'
+ 'git' 'python-pbr' 'python2-pbr' 'python-extras' 'python2-extras'
+ 'python-fixtures' 'python2-fixtures' 'python-mimeparse' 'python2-mimeparse'
+ 'python2-unittest2' 'python2-traceback2')
+checkdepends=('python-testscenarios' 'python2-testscenarios')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/testing-cabal/testtools/archive/$pkgver.tar.gz")
+sha512sums=('7c3b9e180c5f22d613763446525fcb3f7f260d79bc875669134c3077af0e0d3e101863429e0469ffcb26fd0755b2c915454abc949be864639a2faa9cf5024c62')
+
+prepare() {
+ cp -a testtools-$pkgver{,-py2}
+
+ # 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
+
+ export PBR_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/testtools-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/testtools-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/testtools-$pkgver
+ python -m testtools.run testtools.tests.test_suite
+
+ cd "$srcdir"/testtools-$pkgver-py2
+ python2 -m testtools.run testtools.tests.test_suite
+}
+
+package_python-testtools() {
+ depends=('python-pbr' 'python-extras' 'python-fixtures' 'python-pyrsistent' 'python-mimeparse')
+
+ cd testtools-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-testtools() {
+ depends=('python2-pbr' 'python2-extras' 'python2-fixtures' 'python2-pyrsistent'
+ 'python2-mimeparse' 'python2-unittest2' 'python2-traceback2')
+
+ cd testtools-$pkgver-py2
+ python2 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