summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-02-17 02:07:58 +0800
committerUniversebenzene2019-02-17 02:07:58 +0800
commitc150796f1ee7a11c994dd90ea02c29aa03dfbd18 (patch)
tree6eca748d78974358fbbb2b26d22e2ce60f48ed01
downloadaur-c150796f1ee7a11c994dd90ea02c29aa03dfbd18.tar.gz
Initial import 3.2.2
-rw-r--r--.SRCINFO33
-rw-r--r--PKGBUILD74
-rw-r--r--correct_underline.patch11
3 files changed, 118 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5126c7d3431
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,33 @@
+# Generated by mksrcinfo v8
+# Sat Feb 16 18:06:54 UTC 2019
+pkgbase = python-pytest-qt
+ pkgdesc = Pytest plugin for Qt (PyQt4, PyQt5 and PySide) application testing
+ pkgver = 3.2.2
+ pkgrel = 1
+ url = https://pytest-qt.readthedocs.io/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ checkdepends = python-pytest
+ checkdepends = python2-pytest
+ checkdepends = python-pyqt5
+ checkdepends = python2-pyqt5
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ makedepends = python-sphinx
+ source = https://files.pythonhosted.org/packages/source/p/pytest-qt/pytest-qt-3.2.2.tar.gz
+ source = correct_underline.patch
+ md5sums = f35eee66fdfee776dd4523ab09c2da73
+ md5sums = 0273d3ad485751e5e61f49f914f86b5e
+
+pkgname = python-pytest-qt
+ depends = python-pytest>=2.7
+ optdepends = python-pytest-qt-doc: Documentation for pytest-qt
+
+pkgname = python2-pytest-qt
+ depends = python2-pytest>=2.7
+ optdepends = python-pytest-qt-doc: Documentation for pytest-qt
+
+pkgname = python-pytest-qt-doc
+ pkgdesc = Documentation for pytest qt plugin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5112d0fc190
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,74 @@
+# Maintainer: Astro Benzene <universebenzene at sina dot com>
+pkgbase=python-pytest-qt
+_pyname=${pkgbase#python-}
+pkgname=("python-${_pyname}" "python2-${_pyname}" "python-${_pyname}-doc")
+pkgver=3.2.2
+pkgrel=1
+pkgdesc="Pytest plugin for Qt (PyQt4, PyQt5 and PySide) application testing"
+arch=('i686' 'x86_64')
+url="https://pytest-qt.readthedocs.io/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-sphinx')
+checkdepends=('python-pytest' 'python2-pytest' 'python-pyqt5' 'python2-pyqt5')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
+ 'correct_underline.patch')
+md5sums=('f35eee66fdfee776dd4523ab09c2da73'
+ '0273d3ad485751e5e61f49f914f86b5e')
+
+prepare() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ patch -Np1 -i "${srcdir}/correct_underline.patch"
+ cp -a ${srcdir}/${_pyname}-${pkgver}{,-py2}
+}
+
+build() {
+ msg "Building Python2"
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd ${srcdir}/${_pyname}-${pkgver}
+ python setup.py build
+
+ msg "Building Docs"
+ python setup.py build_sphinx
+}
+
+check() {
+ msg "Checking Python3"
+ cd ${srcdir}/${_pyname}-${pkgver}
+ python setup.py test
+
+ msg "Checking Python2"
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+ python2 setup.py test
+}
+
+package_python2-pytest-qt() {
+ depends=('python2-pytest>=2.7')
+ optdepends=('python-pytest-qt-doc: Documentation for pytest-qt')
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+
+ install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}
+
+package_python-pytest-qt() {
+ depends=('python-pytest>=2.7')
+ optdepends=('python-pytest-qt-doc: Documentation for pytest-qt')
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}
+
+package_python-pytest-qt-doc() {
+ pkgdesc="Documentation for pytest qt plugin"
+ cd ${srcdir}/${_pyname}-${pkgver}/build/sphinx
+
+ install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
+ cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
+}
diff --git a/correct_underline.patch b/correct_underline.patch
new file mode 100644
index 00000000000..2b1db2358c6
--- /dev/null
+++ b/correct_underline.patch
@@ -0,0 +1,11 @@
+--- a/docs/signals.rst 2018-12-14 01:55:12.000000000 +0800
++++ b/docs/signals.rst 2019-02-17 00:56:50.461908330 +0800
+@@ -101,7 +101,7 @@
+
+
+ timeout parameter
+-----------------
++-----------------
+
+ The ``timeout`` parameter specifies how long ``waitSignal`` should wait for a
+ signal to arrive. If the timeout is ``None``, there won't be any timeout, i.e.