[arch-commits] Commit in python-mockito/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed Oct 30 21:07:59 UTC 2019
Date: Wednesday, October 30, 2019 @ 21:07:58
Author: jelle
Revision: 521007
remove python2
Modified:
python-mockito/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++-------------------------
1 file changed, 5 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-30 21:05:11 UTC (rev 521006)
+++ PKGBUILD 2019-10-30 21:07:58 UTC (rev 521007)
@@ -2,8 +2,7 @@
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Thomas S Hatch <thatch45 at gmail.com>
-pkgbase=python-mockito
-pkgname=('python-mockito' 'python2-mockito')
+pkgname=python-mockito
pkgver=1.1.1
pkgrel=2
pkgdesc='Spying framework'
@@ -10,42 +9,23 @@
arch=('any')
url='https://github.com/kaste/mockito-python'
license=('MIT')
-makedepends=('python-pytest' 'python2-pytest' 'python-setuptools' 'python2-setuptools'
- 'python2-funcsigs')
-checkdepends=('python-numpy' 'python2-numpy')
+depends=('python')
+makedepends=('python-pytest' 'python-setuptools')
+checkdepends=('python-numpy')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/kaste/mockito-python/archive/$pkgver.tar.gz")
sha512sums=('ae721fbea3b6ed810411ba795480060a080f217112cd06dfb95ebb6e2c5c86acc073559e8ee7d63367832dd8aa05ae63e7a6f6868b21261a0aedd6ade8591697')
-prepare() {
- cp -a mockito-python-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/mockito-python-$pkgver
python setup.py build
-
- cd "$srcdir"/mockito-python-$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/mockito-python-$pkgver
py.test build/lib
-
- cd "$srcdir"/mockito-python-$pkgver-py2
- py.test2 build/lib
}
-package_python-mockito() {
- depends=('python')
-
+package() {
cd mockito-python-$pkgver
python setup.py install --root="$pkgdir" -O1
}
-
-package_python2-mockito() {
- depends=('python2-funcsigs')
-
- cd mockito-python-$pkgver-py2
- python2 setup.py install --root="$pkgdir" -O1
-}
More information about the arch-commits
mailing list