[arch-commits] Commit in python-mock/repos/community-staging-any (PKGBUILD PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Wed Nov 11 15:15:54 UTC 2020
Date: Wednesday, November 11, 2020 @ 15:15:54
Author: foutrelis
Revision: 751034
archrelease: copy trunk to community-staging-any
Added:
python-mock/repos/community-staging-any/PKGBUILD
(from rev 751033, python-mock/trunk/PKGBUILD)
Deleted:
python-mock/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 116 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 58 insertions(+), 58 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-11 15:15:52 UTC (rev 751033)
+++ PKGBUILD 2020-11-11 15:15:54 UTC (rev 751034)
@@ -1,58 +0,0 @@
-# Maintainer: jelle van der Waa <jelle at vdwaa.nl>
-# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
-
-pkgbase=python-mock
-pkgname=(python2-mock python-mock)
-pkgver=3.0.5
-pkgrel=4
-pkgdesc='Mocking and Patching Library for Testing'
-url='http://www.voidspace.org.uk/python/mock/'
-makedepends=('python2' 'python' 'python-pbr' 'python2-pbr')
-checkdepends=('python2-funcsigs')
-license=('BSD')
-arch=('any')
-source=(mock-$pkgver.tar.gz::https://github.com/testing-cabal/mock/archive/$pkgver.tar.gz)
-sha512sums=('9ab4f0c794f5701ba1367d982cf79a5662d4233753d12ed9c88ae20282db1f44be73f84c4d9f6d03ff64926b8c1b6d0c9a79b2a4724a3eb36c247ffd4ab03e2d')
-
-prepare() {
- cd "$srcdir/mock-$pkgver"
- # use unittest instead of unittest2 as they are the same on recent python*
- sed -i 's/unittest2/unittest/g' mock/tests/*.py
-
- cd "$srcdir"
- cp -rf "mock-$pkgver" "mock2-$pkgver"
-}
-
-build() {
- cd "$srcdir/mock-$pkgver"
- python3 setup.py build
-
- cd "$srcdir/mock2-$pkgver"
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir/mock-$pkgver"
- echo 'python tests'
- python -m unittest discover
-
- cd "$srcdir/mock2-$pkgver"
- echo 'python2 tests'
- # Remove Python 3 only test
- rm mock/tests/testhelpers_py3.py
- python2 -m unittest discover
-}
-
-package_python-mock() {
-depends=('python' 'python-six' 'python-pbr')
- cd "$srcdir/mock-$pkgver"
- python3 setup.py install --optimize=1 --root="$pkgdir"
- install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
-
-package_python2-mock() {
-depends=('python2' 'python2-six' 'python2-pbr' 'python2-funcsigs') # Backported Py > 3.3 functionality
- cd "$srcdir/mock2-$pkgver"
- python2 setup.py install --optimize=1 --root="$pkgdir"
- install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}
Copied: python-mock/repos/community-staging-any/PKGBUILD (from rev 751033, python-mock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-11 15:15:54 UTC (rev 751034)
@@ -0,0 +1,58 @@
+# Maintainer: jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgbase=python-mock
+pkgname=(python2-mock python-mock)
+pkgver=3.0.5
+pkgrel=5
+pkgdesc='Mocking and Patching Library for Testing'
+url='http://www.voidspace.org.uk/python/mock/'
+makedepends=('python2' 'python' 'python-pbr' 'python2-pbr')
+checkdepends=('python2-funcsigs')
+license=('BSD')
+arch=('any')
+source=(mock-$pkgver.tar.gz::https://github.com/testing-cabal/mock/archive/$pkgver.tar.gz)
+sha512sums=('9ab4f0c794f5701ba1367d982cf79a5662d4233753d12ed9c88ae20282db1f44be73f84c4d9f6d03ff64926b8c1b6d0c9a79b2a4724a3eb36c247ffd4ab03e2d')
+
+prepare() {
+ cd "$srcdir/mock-$pkgver"
+ # use unittest instead of unittest2 as they are the same on recent python*
+ sed -i 's/unittest2/unittest/g' mock/tests/*.py
+
+ cd "$srcdir"
+ cp -rf "mock-$pkgver" "mock2-$pkgver"
+}
+
+build() {
+ cd "$srcdir/mock-$pkgver"
+ python3 setup.py build
+
+ cd "$srcdir/mock2-$pkgver"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/mock-$pkgver"
+ echo 'python tests'
+ python -m unittest discover
+
+ cd "$srcdir/mock2-$pkgver"
+ echo 'python2 tests'
+ # Remove Python 3 only test
+ rm mock/tests/testhelpers_py3.py
+ python2 -m unittest discover
+}
+
+package_python-mock() {
+depends=('python' 'python-six' 'python-pbr')
+ cd "$srcdir/mock-$pkgver"
+ python3 setup.py install --optimize=1 --root="$pkgdir"
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-mock() {
+depends=('python2' 'python2-six' 'python2-pbr' 'python2-funcsigs') # Backported Py > 3.3 functionality
+ cd "$srcdir/mock2-$pkgver"
+ python2 setup.py install --optimize=1 --root="$pkgdir"
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list