[arch-commits] Commit in python-qtpy/trunk (PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Sat Oct 16 22:58:57 UTC 2021
Date: Saturday, October 16, 2021 @ 22:58:57
Author: archange
Revision: 1030603
upgpkg: python-qtpy 1.11.2-1
Adopt, lint, enable tests
Modified:
python-qtpy/trunk/PKGBUILD
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++------------------
1 file changed, 36 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-16 22:38:13 UTC (rev 1030602)
+++ PKGBUILD 2021-10-16 22:58:57 UTC (rev 1030603)
@@ -1,29 +1,47 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
# Maintainer: Muflone http://www.muflone.com/contacts/english/
+_pkgname=qtpy
pkgname=python-qtpy
-_pkgname='qtpy'
-pkgver=1.9.0
-pkgrel=5
-pkgdesc='Provides an uniform layer to support PyQt5, PyQt4 and PySide with a single codebase'
-arch=('any')
-url="https://github.com/spyder-ide/${_pkgname}/"
-license=('MIT')
-source=("python-${_pkgname}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${_pkgname}/archive/v${pkgver}.tar.gz")
-sha256sums=('a6783acab8f7f7b04026c7da19c65bf904d69629d06d951cb7b9344468270c5b')
-makedepends=('python' 'python-setuptools')
-depends=('python')
+pkgver=1.11.2
+pkgrel=1
+pkgdesc="Provides an uniform layer to support PyQt5 and PySide2 with a single codebase"
+arch=(any)
+url="https://github.com/spyder-ide/qtpy/"
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools)
optdepends=('python-pyqt5: Qt5 Python bindings'
- 'python-pyqtwebengine: Qt5-WebEngine python bindings'
- 'python-pyside2: PySide Qt5 Python bindings')
+ 'python-pyqt5-webengine: Qt5-WebEngine python bindings'
+ 'pyside2: PySide Qt5 Python bindings')
+checkdepends=(
+ python-pytest
+ python-mock
+ python-pyqt5
+ python-pyqt5-webengine
+ pyside2
+ qt5-serialport
+ qt5-svg
+ qt5-tools
+ qt5-websockets
+ qt5-xmlpatterns
+ xorg-server-xvfb
+)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('0c93485cff68c02449dcf2b8db413fffd7467da16fa106b18b96d4eff2e68d73')
build() {
- cd "${_pkgname}-${pkgver}"
+ cd ${_pkgname}-${pkgver}
python setup.py build
}
+check() {
+ cd ${_pkgname}-${pkgver}
+ xvfb-run --auto-servernum pytest -x qtpy -v -rw
+}
+
package() {
- cd "${_pkgname}-${pkgver}"
- python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
- # Install license file
- install -D -m644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd ${_pkgname}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
More information about the arch-commits
mailing list