[arch-commits] Commit in python-qtconsole/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Thu Jul 19 23:09:36 UTC 2018
Date: Thursday, July 19, 2018 @ 23:09:35
Author: eschwartz
Revision: 362462
upgpkg: python-qtconsole 4.3.1-3
python 3.7 rebuild
add testsuite
Modified:
python-qtconsole/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-19 23:08:14 UTC (rev 362461)
+++ PKGBUILD 2018-07-19 23:09:35 UTC (rev 362462)
@@ -4,15 +4,17 @@
pkgbase=python-qtconsole
pkgname=(python-qtconsole python2-qtconsole)
pkgver=4.3.1
-pkgrel=2
+pkgrel=3
pkgdesc="Qt-based console for Jupyter with support for rich media output"
arch=('any')
-url="https://pypi.python.org/pypi/qtconsole"
+url="https://pypi.org/project/qtconsole/"
license=('BSD')
-depends=('python-ipykernel' 'python-jupyter_core' 'python-jupyter_client'
- 'python-traitlets' 'python-pygments' 'python-pyzmq'
- 'qt5-svg' 'python-pyqt5' 'python-sip')
-makedepends=('python-setuptools' 'python2-setuptools')
+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')
source=("$pkgbase-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz")
md5sums=('45f15be486ea24522ac97f39a0cbcedc')
@@ -22,10 +24,25 @@
}
build() {
- cd "$srcdir"
+ cd "$srcdir/qtconsole-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/python2-qtconsole-$pkgver"
+ python2 setup.py build
}
+check() {
+ 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 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
@@ -33,7 +50,7 @@
cd examples
# FS#47046 fix .desktop icon
# FS#57556 fix .desktop icon again
- sed -i 's|^Icon=.*$|Icon=/usr/lib/python3.6/site-packages/qtconsole/resources/icon/JupyterConsole|' \
+ sed -i 's|^Icon=.*$|Icon=/usr/lib/python3.7/site-packages/qtconsole/resources/icon/JupyterConsole|' \
jupyter-qtconsole.desktop
install -Dm644 jupyter-qtconsole.desktop \
"$pkgdir/usr/share/applications/jupyter-qtconsole.desktop"
@@ -52,4 +69,3 @@
cd "$pkgdir/usr/bin"
mv jupyter-qtconsole jupyter-qtconsole-py2
}
-
More information about the arch-commits
mailing list