[arch-commits] Commit in python-exam/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Jan 15 17:15:19 UTC 2020
Date: Wednesday, January 15, 2020 @ 17:15:19
Author: arojas
Revision: 552661
Drop python2
Modified:
python-exam/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++--------------------------
1 file changed, 6 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-15 17:11:52 UTC (rev 552660)
+++ PKGBUILD 2020-01-15 17:15:19 UTC (rev 552661)
@@ -1,53 +1,33 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
_pypiname=exam
-pkgbase=python-exam
-pkgname=('python-exam' 'python2-exam')
+pkgname=python-exam
pkgver=0.10.6
-pkgrel=5
+pkgrel=6
pkgdesc="Helpers for better testing"
arch=('any')
url="https://pypi.python.org/pypi/exam"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-mock' 'python2-mock' 'git')
-checkdepends=('python-nose' 'python2-nose')
+depends=('python-mock')
+makedepends=('python-setuptools' 'git')
+checkdepends=('python-nose')
source=("git+https://github.com/Fluxx/exam.git#tag=$pkgver")
md5sums=('SKIP')
-prepare() {
- cp -a exam{,-py2}
-}
-
build() {
cd "$srcdir/exam"
python setup.py build
-
- cd "$srcdir/exam-py2"
- python2 setup.py build
}
check() {
cd "$srcdir/exam"
python setup.py test
-
- cd "$srcdir/exam-py2"
- python2 setup.py test
}
-package_python-exam() {
- depends=('python-mock')
-
+package() {
cd "$srcdir/$_pypiname"
python setup.py install --root="$pkgdir/" --optimize=1
install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-package_python2-exam() {
- depends=('python2-mock')
-
- cd "$srcdir/$_pypiname-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
- install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list