[arch-commits] Commit in python-unittest-mixins/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 20:23:02 UTC 2019
Date: Saturday, October 26, 2019 @ 20:23:01
Author: felixonmars
Revision: 520491
archrelease: copy trunk to community-staging-any
Added:
python-unittest-mixins/repos/community-staging-any/
python-unittest-mixins/repos/community-staging-any/PKGBUILD
(from rev 520489, python-unittest-mixins/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-unittest-mixins/repos/community-staging-any/PKGBUILD (from rev 520489, python-unittest-mixins/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:23:01 UTC (rev 520491)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-unittest-mixins
+pkgname=('python-unittest-mixins' 'python2-unittest-mixins')
+pkgver=1.6
+pkgrel=2
+pkgdesc='Helpful mixins for unittest classes'
+arch=('any')
+license=('Apache')
+url='https://github.com/nedbat/unittest-mixins'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/nedbat/unittest-mixins/archive/v$pkgver.tar.gz")
+sha512sums=('0d4a0bbf80264f34a03aebbb2668733cd3753f99b24b006ea6704a2b97df9fb51755e8c4efd0094219e65d25756ea31ff27d3892b32ab6829050236a6bcbc986')
+
+prepare() {
+ cp -a unittest-mixins-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/unittest-mixins-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/unittest-mixins-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/unittest-mixins-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/unittest-mixins-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-unittest-mixins() {
+ depends=('python-six')
+
+ cd unittest-mixins-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-unittest-mixins() {
+ depends=('python2-six')
+
+ cd unittest-mixins-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list