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

Andrzej Giniewicz aginiewicz at archlinux.org
Thu Mar 14 08:57:46 UTC 2019


    Date: Thursday, March 14, 2019 @ 08:57:45
  Author: aginiewicz
Revision: 440963

upgpkg: python-envisage 4.7.1-2

python-envisage: drop python2 support

Modified:
  python-envisage/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++--------------------------------
 1 file changed, 9 insertions(+), 32 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-14 08:49:08 UTC (rev 440962)
+++ PKGBUILD	2019-03-14 08:57:45 UTC (rev 440963)
@@ -1,56 +1,33 @@
 # Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
 
-pkgbase=python-envisage
-pkgname=('python2-envisage' 'python-envisage')
+pkgname='python-envisage'
 pkgver=4.7.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Extensible Application Framework"
 arch=('any')
 url="https://github.com/enthought/envisage"
 license=('BSD')
-makedepends=('python-setuptools' 'python-apptools' 'python2-setuptools' 'python2-apptools')
-checkdepends=('python-nose' 'python-configobj' 'python2-nose' 'python2-configobj')
+depends=('python-apptools')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-configobj')
+optdepends=('ipython: for IPython shell plugin')
 source=("envisage-$pkgver.tar.gz::https://github.com/enthought/envisage/archive/${pkgver}.tar.gz")
-sha1sums=('63c5bdad560bae33d9200e1b8202e1a6363d48df')
+sha256sums=('0b8bd997a32aa060237ae82ff86183e1cbc5c8a7fd3d8a68dec9f3e30e84fd66')
 
-prepare() {
-  cd "$srcdir"
-  cp -a envisage-${pkgver} envisage-py2-${pkgver}
-}
-
 build() {
-  cd "$srcdir"/envisage-py2-$pkgver
-
-  # "Building Python2"
-  python2 setup.py build
-
   cd "$srcdir"/envisage-$pkgver
 
-  # "Building Python3"
   python setup.py build
 }
 
 check() {
-  cd "$srcdir"/envisage-py2-$pkgver
-  nosetests2 envisage
+  cd "$srcdir"/envisage-$pkgver
 
-  cd "$srcdir"/envisage-$pkgver
+  # eggs tests are harmless (see https://github.com/enthought/envisage/issues/135)
   nosetests envisage || warning "tests failed"
 }
 
-package_python2-envisage() {
-  depends=('python2-apptools')
-  optdepends=('ipython2: for IPython shell plugin')
-  cd "$srcdir"/envisage-py2-$pkgver
-
-  python2 setup.py install --root="$pkgdir"/  --optimize=1
-
-  install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
 package_python-envisage() {
-  depends=('python-apptools')
-  optdepends=('ipython: for IPython shell plugin')
   cd "$srcdir"/envisage-$pkgver
 
   python setup.py install --root="$pkgdir"/  --optimize=1



More information about the arch-commits mailing list