Date: Saturday, November 9, 2019 @ 09:09:19
  Author: arojas
Revision: 524792

Drop python2

Modified:
  python-qtconsole/trunk/PKGBUILD

----------+
 PKGBUILD |   44 +++++++-------------------------------------
 1 file changed, 7 insertions(+), 37 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2019-11-09 09:07:46 UTC (rev 524791)
+++ PKGBUILD    2019-11-09 09:09:19 UTC (rev 524792)
@@ -1,7 +1,6 @@
 # Maintainer: Kyle Keen <keen...@gmail.com>
 
-pkgbase=python-qtconsole
-pkgname=(python-qtconsole python2-qtconsole)
+pkgname=python-qtconsole
 pkgver=4.5.5
 pkgrel=3
 pkgdesc="Qt-based console for Jupyter with support for rich media output"
@@ -8,26 +7,17 @@
 arch=('any')
 url="https://pypi.org/project/qtconsole/";
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-ipykernel' 
'python2-ipykernel'
-             'python-jupyter_core' 'python2-jupyter_core' 
'python-jupyter_client'
-             'python2-jupyter_client' 'python-traitlets' 'python2-traitlets'
-             'python-pygments' 'python2-pygments' 'python-pyzmq' 
'python2-pyzmq'
-             'python-pyqt5' 'python2-pyqt5' 'python-sip' 'python2-sip' 
'qt5-svg')
-checkdepends=('python-nose' 'python2-nose' 'python-pytest' 'python2-pytest')
-source=("$pkgbase-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz";)
+depends=('python-ipykernel' 'python-jupyter_core' 'python-jupyter_client'
+         'python-traitlets' 'python-pygments' 'python-pyzmq'
+         'qt5-svg' 'python-pyqt5' 'python-sip')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-pytest')
+source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz";)
 md5sums=('b6e58c890712d9522f2bb2d28b5ace39')
 
-prepare() {
-  cd "$srcdir"
-  cp -r qtconsole-$pkgver python2-qtconsole-$pkgver
-}
-
 build() {
   cd "$srcdir/qtconsole-$pkgver"
   python setup.py build
-
-  cd "$srcdir/python2-qtconsole-$pkgver"
-  python2 setup.py build
 }
 
 check() {
@@ -35,15 +25,9 @@
   return
   cd "$srcdir/qtconsole-$pkgver"
   nosetests qtconsole
-
-  cd "$srcdir/python2-qtconsole-$pkgver"
-  nosetests2 qtconsole
 }
 
 package_python-qtconsole() {
-depends=('python-ipykernel' 'python-jupyter_core' 'python-jupyter_client'
-         'python-traitlets' 'python-pygments' 'python-pyzmq'
-         'qt5-svg' 'python-pyqt5' 'python-sip')
   cd "$srcdir/qtconsole-$pkgver"
   python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
@@ -55,18 +39,4 @@
     jupyter-qtconsole.desktop
   install -Dm644 jupyter-qtconsole.desktop \
     "$pkgdir/usr/share/applications/jupyter-qtconsole.desktop"
-
 }
-
-package_python2-qtconsole() {
-  depends=('python2-ipykernel' 'python2-jupyter_core' 'python2-jupyter_client'
-           'python2-traitlets' 'python2-pygments' 'python2-pyzmq'
-           'qt5-svg' 'python2-pyqt5' 'python2-sip')
-
-  cd "$srcdir/python2-qtconsole-$pkgver"
-  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  cd "$pkgdir/usr/bin"
-  mv jupyter-qtconsole jupyter-qtconsole-py2
-}

Reply via email to