[arch-commits] Commit in python-testresources/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Feb 13 15:36:23 UTC 2020
Date: Thursday, February 13, 2020 @ 15:36:22
Author: felixonmars
Revision: 570540
upgpkg: python-testresources 2.0.1-6: remove python2 sibling
Modified:
python-testresources/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++----------------------------
1 file changed, 7 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-13 15:35:50 UTC (rev 570539)
+++ PKGBUILD 2020-02-13 15:36:22 UTC (rev 570540)
@@ -1,50 +1,29 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-testresources
-pkgname=('python-testresources' 'python2-testresources')
+pkgname=python-testresources
pkgver=2.0.1
-pkgrel=5
+pkgrel=6
pkgdesc="Testresources, a pyunit extension for managing expensive test resources"
arch=('any')
license=('Apache' 'BSD')
url="https://launchpad.net/testresources"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
- 'python-testtools' 'python2-testtools')
+depends=('python')
+makedepends=('python-pbr' 'python-testtools')
source=("https://pypi.io/packages/source/t/testresources/testresources-$pkgver.tar.gz")
sha512sums=('0b23432b019400fe378e957d14a91083eef7fe1130a494b567a5274d69e4e8e09ab75861e5453c3f217507e144cf179c908f84dd1a807992d4bee0b8d32cb0f4')
-prepare() {
- cp -a testresources-$pkgver{,-py2}
-}
-
build() {
- cd "$srcdir"/testresources-$pkgver
+ cd testresources-$pkgver
python setup.py build
-
- cd "$srcdir"/testresources-$pkgver-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/testresources-$pkgver
+ cd testresources-$pkgver
python -m testtools.run discover
-
- cd "$srcdir"/testresources-$pkgver-py2
- python2 -m testtools.run discover
}
-package_python-testresources() {
- depends=('python')
-
+package() {
cd testresources-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
-
-package_python2-testresources() {
- depends=('python2')
-
- cd testresources-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
-}
More information about the arch-commits
mailing list