[arch-commits] Commit in python-qtconsole/repos/community-staging-any (2 files)

2021-12-05 Thread Bruno Pagani via arch-commits
Date: Sunday, December 5, 2021 @ 16:02:10
  Author: archange
Revision: 1065185

archrelease: copy trunk to community-staging-any

Added:
  python-qtconsole/repos/community-staging-any/PKGBUILD
(from rev 1065184, python-qtconsole/trunk/PKGBUILD)
Deleted:
  python-qtconsole/repos/community-staging-any/PKGBUILD

--+
 PKGBUILD |   98 ++---
 1 file changed, 56 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2021-12-05 16:01:46 UTC (rev 1065184)
+++ PKGBUILD2021-12-05 16:02:10 UTC (rev 1065185)
@@ -1,42 +0,0 @@
-# Maintainer: Kyle Keen 
-
-pkgname=python-qtconsole
-pkgver=5.1.1
-pkgrel=3
-pkgdesc="Qt-based console for Jupyter with support for rich media output"
-arch=('any')
-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-qtpy')
-makedepends=('python-setuptools')
-#checkdepends=('python-nose' 'python-pytest')
-source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz;)
-md5sums=('205b9da79216269b96c8c033c8820053')
-
-build() {
-  cd "$srcdir/qtconsole-$pkgver"
-  python setup.py build
-}
-
-check() {
-  # tests require an active X session
-  true
-  return
-  cd "$srcdir/qtconsole-$pkgver"
-  nosetests qtconsole
-}
-
-package() {
-  cd "$srcdir/qtconsole-$pkgver"
-  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  cd examples
-  # FS#47046 FS#57556 FS#64628 fix .desktop icon
-  sed -i 
's|^Icon=.*$|Icon=/usr/lib/python3.10/site-packages/qtconsole/resources/icon/JupyterConsole.svg|'
 \
-jupyter-qtconsole.desktop
-  install -Dm644 jupyter-qtconsole.desktop \
-"$pkgdir/usr/share/applications/jupyter-qtconsole.desktop"
-}

Copied: python-qtconsole/repos/community-staging-any/PKGBUILD (from rev 
1065184, python-qtconsole/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2021-12-05 16:02:10 UTC (rev 1065185)
@@ -0,0 +1,56 @@
+# Maintainer: Kyle Keen 
+# Maintainer: Bruno Pagani 
+
+_pkgname=qtconsole
+pkgname=python-qtconsole
+pkgver=5.2.1
+pkgrel=2
+pkgdesc="Qt-based console for Jupyter with support for rich media output"
+arch=(any)
+url="https://qtconsole.readthedocs.io/;
+license=(BSD)
+depends=(
+python-ipykernel
+python-jupyter_core
+python-jupyter_client
+python-traitlets
+python-pygments
+python-pyqt5
+python-pyzmq
+python-qtpy
+qt5-svg
+)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-pytest-qt python-flaky xorg-server-xvfb)
+source=(https://github.com/jupyter/${_pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+
${pkgname}-py3.10.patch::https://github.com/jupyter/qtconsole/pull/513.patch)
+sha256sums=('90e6eedb84f1e3ddc775599d9f14fe7fb68e55f2b849e9006a5c4706f869f7c4'
+'971fc34f2eada8ca6c0d1260dd7c6ce6be1082ae3eab2d31912b125e35eb239c')
+
+prepare() {
+  cd ${_pkgname}-${pkgver}
+  patch -p1 < ../${pkgname}-py3.10.patch
+}
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  # Tests passes but then xvfb-run segfaults
+  xvfb-run -s '-nolisten local' pytest -x -vv --color=yes qtconsole || echo 
"Tests segfaulted"
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 
--skip-build
+
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+
+  cd examples
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  sed -i 
"s|^Icon=.*$|Icon=${site_packages}/qtconsole/resources/icon/JupyterConsole.svg|"
 jupyter-qtconsole.desktop
+  install -Dm644 jupyter-qtconsole.desktop -t 
"${pkgdir}"/usr/share/applications/
+}



[arch-commits] Commit in python-qtconsole/repos/community-staging-any (2 files)

2021-12-02 Thread Felix Yan via arch-commits
Date: Thursday, December 2, 2021 @ 21:54:46
  Author: felixonmars
Revision: 1062751

archrelease: copy trunk to community-staging-any

Added:
  python-qtconsole/repos/community-staging-any/PKGBUILD
(from rev 1062749, python-qtconsole/trunk/PKGBUILD)
Deleted:
  python-qtconsole/repos/community-staging-any/PKGBUILD

--+
 PKGBUILD |   84 ++---
 1 file changed, 42 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===
--- PKGBUILD2021-12-02 21:54:45 UTC (rev 1062750)
+++ PKGBUILD2021-12-02 21:54:46 UTC (rev 1062751)
@@ -1,42 +0,0 @@
-# Maintainer: Kyle Keen 
-
-pkgname=python-qtconsole
-pkgver=5.1.1
-pkgrel=2
-pkgdesc="Qt-based console for Jupyter with support for rich media output"
-arch=('any')
-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-qtpy')
-makedepends=('python-setuptools')
-#checkdepends=('python-nose' 'python-pytest')
-source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz;)
-md5sums=('205b9da79216269b96c8c033c8820053')
-
-build() {
-  cd "$srcdir/qtconsole-$pkgver"
-  python setup.py build
-}
-
-check() {
-  # tests require an active X session
-  true
-  return
-  cd "$srcdir/qtconsole-$pkgver"
-  nosetests qtconsole
-}
-
-package() {
-  cd "$srcdir/qtconsole-$pkgver"
-  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  cd examples
-  # FS#47046 FS#57556 FS#64628 fix .desktop icon
-  sed -i 
's|^Icon=.*$|Icon=/usr/lib/python3.10/site-packages/qtconsole/resources/icon/JupyterConsole.svg|'
 \
-jupyter-qtconsole.desktop
-  install -Dm644 jupyter-qtconsole.desktop \
-"$pkgdir/usr/share/applications/jupyter-qtconsole.desktop"
-}

Copied: python-qtconsole/repos/community-staging-any/PKGBUILD (from rev 
1062749, python-qtconsole/trunk/PKGBUILD)
===
--- PKGBUILD(rev 0)
+++ PKGBUILD2021-12-02 21:54:46 UTC (rev 1062751)
@@ -0,0 +1,42 @@
+# Maintainer: Kyle Keen 
+
+pkgname=python-qtconsole
+pkgver=5.1.1
+pkgrel=3
+pkgdesc="Qt-based console for Jupyter with support for rich media output"
+arch=('any')
+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-qtpy')
+makedepends=('python-setuptools')
+#checkdepends=('python-nose' 'python-pytest')
+source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/qtconsole/archive/$pkgver.tar.gz;)
+md5sums=('205b9da79216269b96c8c033c8820053')
+
+build() {
+  cd "$srcdir/qtconsole-$pkgver"
+  python setup.py build
+}
+
+check() {
+  # tests require an active X session
+  true
+  return
+  cd "$srcdir/qtconsole-$pkgver"
+  nosetests qtconsole
+}
+
+package() {
+  cd "$srcdir/qtconsole-$pkgver"
+  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  cd examples
+  # FS#47046 FS#57556 FS#64628 fix .desktop icon
+  sed -i 
's|^Icon=.*$|Icon=/usr/lib/python3.10/site-packages/qtconsole/resources/icon/JupyterConsole.svg|'
 \
+jupyter-qtconsole.desktop
+  install -Dm644 jupyter-qtconsole.desktop \
+"$pkgdir/usr/share/applications/jupyter-qtconsole.desktop"
+}