[arch-commits] Commit in python-nose-randomly/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Mon Mar 16 23:40:58 UTC 2020


    Date: Monday, March 16, 2020 @ 23:40:57
  Author: bgyorgy
Revision: 599955

upgpkg: python-nose-randomly 1.2.6-4: Remove python2 support

Modified:
  python-nose-randomly/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++--------------------------
 1 file changed, 7 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 23:27:01 UTC (rev 599954)
+++ PKGBUILD	2020-03-16 23:40:57 UTC (rev 599955)
@@ -1,50 +1,31 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-nose-randomly
-pkgname=(python-nose-randomly python2-nose-randomly)
+pkgname=python-nose-randomly
 pkgver=1.2.6
-pkgrel=3
+pkgrel=4
 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")
+depends=('python-nose')
+makedepends=('python-setuptools')
+checkdepends=('python-numpy')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/adamchainz/nose-randomly/archive/$pkgver.tar.gz")
 sha512sums=('61f3b056911a9ebbba81594afa11492b760e98a1d8382c67e35afcf1059422b6589a7c214068fc233d96617dfb37c99ee14e77b92d5ec94a29eeab77a0520603')
 
-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')
+package() {
 
   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
-}



More information about the arch-commits mailing list