[arch-commits] Commit in python-testresources/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:29:08 UTC 2019
Date: Saturday, October 26, 2019 @ 20:29:07
Author: felixonmars
Revision: 520558
archrelease: copy trunk to community-staging-any
Added:
python-testresources/repos/community-staging-any/
python-testresources/repos/community-staging-any/PKGBUILD
(from rev 520557, python-testresources/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-testresources/repos/community-staging-any/PKGBUILD (from rev 520557, python-testresources/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:29:07 UTC (rev 520558)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-testresources
+pkgname=('python-testresources' 'python2-testresources')
+pkgver=2.0.1
+pkgrel=4
+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')
+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
+ python setup.py build
+
+ cd "$srcdir"/testresources-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/testresources-$pkgver
+ python -m testtools.run discover
+
+ cd "$srcdir"/testresources-$pkgver-py2
+ python2 -m testtools.run discover
+}
+
+package_python-testresources() {
+ depends=('python')
+
+ 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