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

Felix Yan felixonmars at archlinux.org
Sun Mar 17 10:44:39 UTC 2019


    Date: Sunday, March 17, 2019 @ 10:44:38
  Author: felixonmars
Revision: 442348

upgpkg: python-logilab-common 1.4.2-2

remove python2 sibling

Modified:
  python-logilab-common/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++------------------------------
 1 file changed, 10 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-17 10:40:06 UTC (rev 442347)
+++ PKGBUILD	2019-03-17 10:44:38 UTC (rev 442348)
@@ -3,16 +3,17 @@
 # Contributor: Stéphane Gaudreault <stephane at archlinux.org>
 # Contributor: Alexander Fehr <pizzapunk gmail com>
 
-pkgbase=python-logilab-common
-pkgname=('python2-logilab-common' 'python-logilab-common')
+pkgname=python-logilab-common
 pkgver=1.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Useful miscellaneous modules used by Logilab projects"
 arch=('any')
 url="http://www.logilab.org/project/logilab-common"
 license=('LGPL')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-six' 'python2-six' 'python-pytz' 'python2-pytz' 'python2-egenix-mx-base')
+depends=('python')
+optdepends=('python-six: for logilab.common.testlib')
+makedepends=('python-setuptools')
+checkdepends=('python-six' 'python-pytz')
 source=("https://pypi.io/packages/source/l/logilab-common/logilab-common-$pkgver.tar.gz")
 sha512sums=('729635383a4dc2f941806f573baae3c2e1045c01f0bd3bfc8d588a4461ced1841b9e750031bc3b3b50e38724ec4eb8a2a26312835cdc06e7432243dd90c3c691')
 
@@ -21,37 +22,16 @@
 }
 
 build() {
-  cd "$srcdir"/logilab-common-$pkgver
+  cd logilab-common-$pkgver
   python setup.py build
-
-  cd "$srcdir"/logilab-common-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/logilab-common-$pkgver
+  cd logilab-common-$pkgver
   PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python bin/logilab-pytest
-
-  cd "$srcdir"/logilab-common-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 bin/logilab-pytest
 }
 
-package_python-logilab-common() {
-  depends=('python')
-  optdepends=('python-six: for logilab.common.testlib')
-
-  cd "$srcdir"/logilab-common-$pkgver
-
+package() {
+  cd logilab-common-$pkgver
   python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
 }
-
-package_python2-logilab-common() {
-  depends=('python2')
-  optdepends=('python2-six: for logilab.common.testlib')
-
-  cd "$srcdir"/logilab-common-$pkgver-py2
-
-  python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
-
-  mv "$pkgdir"/usr/bin/logilab-pytest{,2}
-}



More information about the arch-commits mailing list