[arch-commits] Commit in pyzo/repos/community-any (PKGBUILD PKGBUILD)

Bruno Pagani archange at gemini.archlinux.org
Fri Feb 4 14:05:08 UTC 2022


    Date: Friday, February 4, 2022 @ 14:05:07
  Author: archange
Revision: 1125480

archrelease: copy trunk to community-any

Added:
  pyzo/repos/community-any/PKGBUILD
    (from rev 1125467, pyzo/trunk/PKGBUILD)
Deleted:
  pyzo/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   92 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 51 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-04 14:05:07 UTC (rev 1125479)
+++ PKGBUILD	2022-02-04 14:05:07 UTC (rev 1125480)
@@ -1,41 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-# Contributor: Hector Mtz-Seara <hseara.#at#.gmail*.*com>
-
-pkgname=pyzo
-pkgver=4.11.4
-pkgrel=2
-pkgdesc="Cross-platform Python IDE focused on interactivity and introspection, very suitable for scientific computing."
-arch=(any)
-url="https://pyzo.org"
-license=(BSD)
-depends=(python)
-makedepends=(python-setuptools)
-optdepends=(
-    'pyside2: Qt5 backend'
-    'pyside6: Qt6 backend'
-    'python-pyqt5: alternative Qt5 backend'
-    'python-pyqt6: alternative Qt6 backend'
-)
-source=(https://github.com/pyzo/pyzo/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('612b778bf73130b3dbffe622b5f16dbfee749becbb004d7cd55f749b38969b24')
-
-build(){
-    cd ${pkgname}-${pkgver}
-    python setup.py build
-}
-
-package(){
-    cd ${pkgname}-${pkgver}
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-
-    # Clean
-    rm "${pkgdir}"/usr/{LICENSE.md,README.md,pyzo.appdata.xml,pyzolauncher.py}
-    install -Dm644 LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-    install -Dm644 pyzo.appdata.xml -t "${pkgdir}"/usr/share/metainfo/
-    install pyzolauncher.py "${pkgdir}"/usr/bin/pyzo
-
-    install -Dm644 pyzo/resources/pyzo.desktop -t "${pkgdir}"/usr/share/applications/
-    for i in 16 32 48 64 128 256 ; do
-        install -Dm644 pyzo/resources/appicons/pyzologo${i}.png "${pkgdir}"/usr/share/icons/hicolor/${i}x${i}/apps/pyzologo.png
-    done
-}

Copied: pyzo/repos/community-any/PKGBUILD (from rev 1125467, pyzo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-04 14:05:07 UTC (rev 1125480)
@@ -0,0 +1,51 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Hector Mtz-Seara <hseara.#at#.gmail*.*com>
+
+pkgname=pyzo
+pkgver=4.12.0
+pkgrel=1
+pkgdesc="Cross-platform Python IDE focused on interactivity and introspection, very suitable for scientific computing."
+arch=(any)
+url="https://pyzo.org"
+license=(BSD)
+depends=(python-packaging)
+makedepends=(python-setuptools)
+optdepends=(
+    'pyside2: Qt5 backend'
+    'pyside6: Qt6 backend'
+    'python-pyqt5: alternative Qt5 backend'
+    'python-pyqt6: alternative Qt6 backend'
+)
+checkdepends=(python-pytest pyside2 pyside6 python-pyqt5 python-pyqt6 xorg-server-xvfb)
+source=(https://github.com/pyzo/pyzo/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('55bc7955e391573a9c82272fc296816ff6f9b9caa992f4a610037b546f91c5df')
+
+build() {
+    cd ${pkgname}-${pkgver}
+    python setup.py build
+}
+
+check() {
+    cd ${pkgname}-${pkgver}
+    python -m venv --system-site-packages test-env
+    test-env/bin/python setup.py install --skip-build
+    test-env/bin/python -m pytest -v --color=yes tests
+    xvfb-run --auto-servernum test-env/bin/python pyzolauncher.py --test
+    test-env/bin/python tests/check_log.py
+}
+
+package() {
+    cd ${pkgname}-${pkgver}
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+    # Clean
+    rm "${pkgdir}"/usr/{LICENSE.md,README.md,pyzo.appdata.xml,pyzolauncher.py}
+    install -Dm644 LICENSE.md -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+    install -Dm644 pyzo.appdata.xml -t "${pkgdir}"/usr/share/metainfo/
+    install pyzolauncher.py "${pkgdir}"/usr/bin/pyzo
+
+    install -Dm644 pyzo/resources/pyzo.desktop -t "${pkgdir}"/usr/share/applications/
+    for i in 16 32 48 64 128 256 ; do
+        install -Dm644 pyzo/resources/appicons/pyzologo${i}.png "${pkgdir}"/usr/share/icons/hicolor/${i}x${i}/apps/pyzologo.png
+    done
+}



More information about the arch-commits mailing list