[arch-commits] Commit in python-pkginfo/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Tue Dec 17 14:26:45 UTC 2019
Date: Tuesday, December 17, 2019 @ 14:26:45
Author: jelle
Revision: 537928
upgpkg: python-pkginfo 1.5.0.1-4
remove python2 variant
Modified:
python-pkginfo/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++-------------------------
1 file changed, 5 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-12-17 14:11:08 UTC (rev 537927)
+++ PKGBUILD 2019-12-17 14:26:45 UTC (rev 537928)
@@ -3,51 +3,31 @@
# Contributor: Andrey Mikhaylenko <neithere at gmail dot com>
pkgbase=python-pkginfo
-pkgname=(python-pkginfo python2-pkginfo)
+pkgname=(python-pkginfo)
pkgver=1.5.0.1
-pkgrel=3
+pkgrel=4
pkgdesc='Query metadatdata from sdists / bdists / installed packages'
arch=('any')
url="https://pypi.python.org/pypi/pkginfo"
license=('PSF')
-makedepends=("python-setuptools" "python2-setuptools")
-checkdepends=("python-nose" "python2-nose" "python-coverage" "python2-coverage")
+depends=("python")
+makedepends=("python-setuptools")
+checkdepends=("python-nose" "python-coverage")
source=("https://pypi.io/packages/source/p/pkginfo/pkginfo-$pkgver.tar.gz")
sha512sums=('319bb403970affd5a4222dfdb3d17738630d1350ea84e51ad1bebc6c8c72e0dcfd69a4eaf5e7bd156b8e605d806357922c05cc994dcafb01b7a33c617b2df447')
-prepare() {
- cp -a pkginfo-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/pkginfo-$pkgver
python setup.py build
-
- cd "$srcdir"/pkginfo-$pkgver-py2
- python2 setup.py build
}
check() { (
cd "$srcdir"/pkginfo-$pkgver
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests3
-
- cd "$srcdir"/pkginfo-$pkgver-py2
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests2
) || warning "Tests failed"
}
package_python-pkginfo() {
- depends=("python")
-
cd pkginfo-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
-
-package_python2-pkginfo() {
- depends=("python2")
-
- cd pkginfo-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-
- mv "$pkgdir/usr/bin/pkginfo"{,2}
-}
More information about the arch-commits
mailing list