[arch-commits] Commit in python-qtconsole/repos/community-any (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Jan 26 16:59:44 UTC 2022
Date: Wednesday, January 26, 2022 @ 16:59:43
Author: arojas
Revision: 1116066
archrelease: copy trunk to community-any
Added:
python-qtconsole/repos/community-any/PKGBUILD
(from rev 1116065, python-qtconsole/trunk/PKGBUILD)
Deleted:
python-qtconsole/repos/community-any/PKGBUILD
----------+
PKGBUILD | 105 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 49 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-26 16:59:34 UTC (rev 1116065)
+++ PKGBUILD 2022-01-26 16:59:43 UTC (rev 1116066)
@@ -1,56 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_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/
-}
Copied: python-qtconsole/repos/community-any/PKGBUILD (from rev 1116065, python-qtconsole/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-26 16:59:43 UTC (rev 1116066)
@@ -0,0 +1,49 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkgname=qtconsole
+pkgname=python-qtconsole
+pkgver=5.2.2
+pkgrel=1
+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)
+sha256sums=('d5cfb4bb2f812301ae75bd856c2bd0adcc52a935567ea72cc8037c7e1972a58a')
+
+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/
+}
More information about the arch-commits
mailing list