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

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


    Date: Monday, March 16, 2020 @ 23:49:08
  Author: bgyorgy
Revision: 599957

upgpkg: python-sure 1.4.11-5: Remove python2 support

Modified:
  python-sure/trunk/PKGBUILD

----------+
 PKGBUILD |   32 +++++++-------------------------
 1 file changed, 7 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 23:41:00 UTC (rev 599956)
+++ PKGBUILD	2020-03-16 23:49:08 UTC (rev 599957)
@@ -1,22 +1,19 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-sure
-pkgname=("python-sure" "python2-sure")
+pkgname=python-sure
 pkgver=1.4.11
-pkgrel=4
+pkgrel=5
 pkgdesc="An idiomatic testing library for python with powerful and flexible assertions"
 arch=('any')
 url="https://github.com/gabrielfalcao/sure"
 license=('GPL')
-makedepends=('python-six' 'python2-six' 'python-mock' 'python2-mock' 'python-setuptools'
-             'python2-setuptools' 'git')
-checkdepends=('python-nose' 'python2-nose')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/gabrielfalcao/sure/archive/$pkgver.tar.gz")
+depends=('python-six' 'python-mock')
+makedepends=('python-setuptools' 'git')
+checkdepends=('python-nose')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gabrielfalcao/sure/archive/$pkgver.tar.gz")
 sha512sums=('0f3601eff81074d73568014aaf81b2a3e782c95d3a62cf689031bd0c53eaa8eb531a32e4e2d16c4bee4291157f621e52857b575bcfdaf82839f8e1d0d40d3563')
 
 prepare() {
-  cp -a sure-$pkgver{,-py2}
-
   export LC_CTYPE=en_US.UTF-8
 }
 
@@ -23,29 +20,14 @@
 build() {
   cd "$srcdir"/sure-$pkgver
   python setup.py build
-
-  cd "$srcdir"/sure-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/sure-$pkgver
   python setup.py test
-
-  cd "$srcdir"/sure-$pkgver-py2
-  python2 setup.py test
 }
 
-package_python-sure() {
-  depends=('python-six' 'python-mock')
-
+package() {
   cd sure-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-sure() {
-  depends=('python2-six' 'python2-mock')
-
-  cd sure-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list