[arch-commits] Commit in python-flexmock/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Fri Apr 10 20:42:17 UTC 2020
Date: Friday, April 10, 2020 @ 20:42:16
Author: jelle
Revision: 613167
upgpkg: python-flexmock 0.10.4-4
Remove python2 module
Modified:
python-flexmock/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-10 20:35:45 UTC (rev 613166)
+++ PKGBUILD 2020-04-10 20:42:16 UTC (rev 613167)
@@ -1,15 +1,15 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-flexmock
-pkgname=('python-flexmock' 'python2-flexmock')
+pkgname=python-flexmock
pkgver=0.10.4
-pkgrel=3
+pkgrel=4
pkgdesc="Mock/Stub/Spy library for Python"
arch=('any')
license=('BSD')
url="https://has207.github.com/flexmock"
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/bkabrda/flexmock/archive/$pkgver.tar.gz")
sha512sums=('96d3af9625b1dbd987b291c7ed26a77476f54fe4548d16ad70adeefc0093f51a3b47d8b3fb4339611dfadd8b2d55a1bc734e70bc093683192f1f351badf08553')
@@ -18,27 +18,15 @@
build() {
cd "$srcdir"/flexmock-$pkgver
python setup.py build
- python2 setup.py build
}
check() {
cd "$srcdir"/flexmock-$pkgver
python setup.py pytest
- python2 setup.py pytest
}
-package_python-flexmock() {
- depends=('python')
-
+package() {
cd flexmock-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-flexmock() {
- depends=('python2')
-
- cd flexmock-$pkgver
- 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