[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Jun 6 06:01:55 UTC 2018


    Date: Wednesday, June 6, 2018 @ 06:01:55
  Author: felixonmars
Revision: 340808

addpkg: python-nose-randomly 1.2.5-1

Added:
  python-nose-randomly/
  python-nose-randomly/repos/
  python-nose-randomly/trunk/
  python-nose-randomly/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Added: python-nose-randomly/trunk/PKGBUILD
===================================================================
--- python-nose-randomly/trunk/PKGBUILD	                        (rev 0)
+++ python-nose-randomly/trunk/PKGBUILD	2018-06-06 06:01:55 UTC (rev 340808)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-nose-randomly
+pkgname=(python-nose-randomly python2-nose-randomly)
+pkgver=1.2.5
+pkgrel=1
+pkgdesc="Nose plugin to randomly order tests and control random.seed."
+url="https://github.com/adamchainz/nose-randomly"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-nose' 'python2-nose')
+checkdepends=('python-numpy' 'python2-numpy')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/adamchainz/nose-randomly/archive/$pkgver.tar.gz")
+sha512sums=('46b28a1305b638a4a0b44704bd4fb6c5372eddb3d2a7d5c0fe53b124240385c5ad61a916b98f7e3f059794a1171b77654e8d94143facc2d995077a2fc4eeae84')
+
+prepare() {
+  cp -a nose-randomly-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/nose-randomly-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/nose-randomly-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/nose-randomly-$pkgver
+  python setup.py nosetests
+
+  cd "$srcdir"/nose-randomly-$pkgver-py2
+  python2 setup.py nosetests
+}
+
+package_python-nose-randomly() {
+  depends=('python-nose')
+
+  cd nose-randomly-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-nose-randomly() {
+  depends=('python2-nose')
+
+  cd nose-randomly-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


Property changes on: python-nose-randomly/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list