From d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 15 Jun 2021 14:57:03 +0100 Subject: gentoo resync : 15.06.2021 --- dev-python/pytest-qt/Manifest | 6 ++- dev-python/pytest-qt/pytest-qt-3.3.0.ebuild | 46 +++++++++++++++------- dev-python/pytest-qt/pytest-qt-4.0.0.ebuild | 59 +++++++++++++++++++++++++++++ dev-python/pytest-qt/pytest-qt-4.0.1.ebuild | 59 +++++++++++++++++++++++++++++ 4 files changed, 156 insertions(+), 14 deletions(-) create mode 100644 dev-python/pytest-qt/pytest-qt-4.0.0.ebuild create mode 100644 dev-python/pytest-qt/pytest-qt-4.0.1.ebuild (limited to 'dev-python/pytest-qt') diff --git a/dev-python/pytest-qt/Manifest b/dev-python/pytest-qt/Manifest index e4421b0c17ee..dfce014349b4 100644 --- a/dev-python/pytest-qt/Manifest +++ b/dev-python/pytest-qt/Manifest @@ -1,5 +1,9 @@ AUX pytest-qt-3.3.0-fix-file-match-test.patch 646 BLAKE2B 60a34a0a5d3e7d4cedd6e0e0886eeee5eb4bf447544a0f712e8906edc5ea62f60555917b97c143a4804fe76e5244090907abf51bf69f98c2893552115af64fd2 SHA512 ab68967a2f30acc2aaed1c8eadeee84283b469b3465c5e79d9c37ee14236ea0e2fe827ba83efa92d5d33c369298e548cea72f80109949426aa38121ba7edb45f AUX pytest-qt-3.3.0-skip-show-window-test.patch 1318 BLAKE2B 7e1c628c13f02d6219d752e3bbd6c54d17b54d45fe84b608093a42796ed6208f12c62a6bfc7a685cf3f445f5c4f6ca9e496d9b55b088cfddc28313e02c07d45d SHA512 27f788b560e66e0de3b9f17144cdc2a31fb9a4a270efdb490dfe106109051669d55e10072c841ce8f0aa313bcfec397ff59c6c76842a6a4b58194a03c3ff07d3 DIST pytest-qt-3.3.0.tar.gz 113439 BLAKE2B 1eb486d2d44825058577306ed3b9ade34e6cbad0d90038fe314114bb22c82ae069c9fe66c170591de6c97bad99f5f9e0021c8b3dc38c858b8293a22c448bed74 SHA512 8b3ce7b62621c55fb319966b162cb60663c5ef290f34e62e6a9329e67f530c2bde1329ae0b045b15c99ae14f5f6a5fef9ee930475fa700922c50ee725adf7983 -EBUILD pytest-qt-3.3.0.ebuild 1186 BLAKE2B 170bbde7f87dd7e77d6a07120176087550577fab22b81749db2003b889ea33edfd0947493f2c3e092b955973dea63e3ed7ad43da47ab5a97da8175536ae50d2b SHA512 f2c01fb7fd902e11f20937d0abc947f44d2da84087cd7db5ade934e0bd20168e4d94512d3156c85d9bccf2bd8df8e64d713bcf1f0128c427d238364aca8a344a +DIST pytest-qt-4.0.0.tar.gz 113333 BLAKE2B 69c2c8c823b55c44150c7beb0754e90866c7659912dbc0d99ee29904b0a20eadf26939709a5d120d0b95e23bcb99310415932e87934ae84571c55e3ffd07c284 SHA512 cfdde2e82b42979313d96f9a14bdafea0d4d5d5b64b4785ac73b74e36bfb892ab7b5ec6eb1c4e540ec00ccec6739e8bd9a3ffb610f204f6cfe97061f57a3971a +DIST pytest-qt-4.0.1.tar.gz 113473 BLAKE2B b77438ea2e6f71566daa50628d481671bc5ece0cffe2c67d689e780274884d70d94d70305c92775e5d9bba7fe09431ce7116aa5823234675237149726178ba43 SHA512 4f6d9057d5c6ebf439d0f69a341b3d7a4297e3eea251f85c82cf5ecc7aca1419b7a2ab0e846852661a0a2236af6225518b3ae691bb014fb56dbc1d39106db4cc +EBUILD pytest-qt-3.3.0.ebuild 1661 BLAKE2B 8af76902d54c81283ed1627278746fd874a0bf91eede889ec3de5a0be397e8b9cc5633abd67466e6bc9508bd56c84da0b5c069d3dc9bf339dc11b7cecb51ee37 SHA512 f39627d2dd504df4601390d1a310302d3e132db8d27a8e1d801560c921a87754691798bdbe60cc7b9337417cef993229f2c7673f9c91da8f9ffd4eac8aa9540f +EBUILD pytest-qt-4.0.0.ebuild 1615 BLAKE2B c30a0cfbed765d18c8b840a4776c8a328896bcb7266048cb8c4967f34c6085d12a0a0e5272e34e15fc4d7a7d98d7961054001125689f424ed95251bdb071b5a4 SHA512 b9e282f1e0645fca53f8346787d6e5775b8cf624eb7aab896631084b78af6bd5c303f12211841859d9ebf5ba646ec1b49563d076de65dcd68b6ff5a4bbdee22d +EBUILD pytest-qt-4.0.1.ebuild 1615 BLAKE2B 0bf2eb72bf57c352a1b503d5177316aed02ee6c33c28a3bce4bfb8a2b61db3575245bf5bd2adddcb7ea7cf2d712d85c9563e5f634f09413fcf6344ef8163e4d7 SHA512 12c60cb9b6621b155b84ed1d28fb5646fccf45d0aa95f6330f2f3dc5bef5851ec0843f3dec989f3cc0b9f5fc9dd76354e01983c557ff840a2604f7fc1631a9e4 MISC metadata.xml 414 BLAKE2B 841b7a751e41917fe4f3c672a196d41ce020832ce8794c2b5bc52f24061a3742a605550e7429791e940f4d44fbb035e026a1d665bca323a7c84e5b9c2d1615f7 SHA512 50fe7cca60f607561b5f5b9436d75365ffba1704745c761f6043db274f07e1a0065e6a7c107f3d4fcaf7b51837a872525a0f509bd9f55b96852ad9c2da41072f diff --git a/dev-python/pytest-qt/pytest-qt-3.3.0.ebuild b/dev-python/pytest-qt/pytest-qt-3.3.0.ebuild index 9d310725f1e6..8e4e3f6611c2 100644 --- a/dev-python/pytest-qt/pytest-qt-3.3.0.ebuild +++ b/dev-python/pytest-qt/pytest-qt-3.3.0.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=( python3_{7..10} ) inherit distutils-r1 virtualx -DESCRIPTION="pytest plugin for PyQt4 or PyQt5 applications" +DESCRIPTION="pytest plugin for PyQt5 and PySide2 applications" HOMEPAGE=" https://pypi.org/project/pytest-qt/ https://github.com/pytest-dev/pytest-qt/" @@ -17,7 +17,15 @@ LICENSE="MIT" SLOT="0" KEYWORDS="amd64 x86" -DEPEND="dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}]" +RDEPEND="dev-python/QtPy[gui,testlib,widgets(+),${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/PyQt5[gui,testlib,widgets,${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pyside2[gui,testlib,widgets,${PYTHON_USEDEP}] + ' python3_{7..9} ) + ) +" # Patch 1 skips a test that does not work inside the emerge environment: # pytestqt.exceptions.TimeoutError: widget not activated in 1000 ms. @@ -30,14 +38,26 @@ PATCHES=( distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx_rtd_theme +python_prepare_all() { + # This is not going to work since we want to test both implementations + # and therefore pull in both and explicitly set PYTEST_QT_API + sed -i -e 's:test_qt_api_ini_config_with_envvar:_&:' \ + -e 's:test_qt_api_ini_config:_&:' \ + tests/test_basics.py || die + + distutils-r1_python_prepare_all +} + +src_test() { + virtx python_foreach_impl python_test +} + python_test() { - pytest_qt_test() { - # pytest-qt test fail to test in ${BUILDIR}/lib - # if and only if pytest-qt is not already installed - # test do work if executed directly in the extracted tarball - local PYTHONPATH="${WORKDIR}/${P}" - pytest -vv - } - - virtx pytest_qt_test + distutils_install_for_testing + PYTEST_QT_API="pyqt5" epytest + if [[ "${EPYTHON}" == "python3.10" ]]; then + return + else + PYTEST_QT_API="pyside2" epytest + fi } diff --git a/dev-python/pytest-qt/pytest-qt-4.0.0.ebuild b/dev-python/pytest-qt/pytest-qt-4.0.0.ebuild new file mode 100644 index 000000000000..a86288ff3b73 --- /dev/null +++ b/dev-python/pytest-qt/pytest-qt-4.0.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..10} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="pytest plugin for PyQt5 and PySide2 applications" +HOMEPAGE=" + https://pypi.org/project/pytest-qt/ + https://github.com/pytest-dev/pytest-qt/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-python/QtPy[gui,testlib,widgets(+),${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/PyQt5[gui,testlib,widgets,${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pyside2[gui,testlib,widgets,${PYTHON_USEDEP}] + ' python3_{7..9} ) + ) +" + +distutils_enable_tests --install pytest +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme + +python_prepare_all() { + # This show window test does not work inside the emerge env, as we cannot show windows. + # pytestqt.exceptions.TimeoutError: widget not activated in 1000 ms. + sed -i -e 's:test_wait_window:_&:' tests/test_basics.py || die + + # This is not going to work since we want to test both implementations + # and therefore pull in both and explicitly set PYTEST_QT_API + sed -i -e 's:test_qt_api_ini_config_with_envvar:_&:' \ + -e 's:test_qt_api_ini_config:_&:' \ + tests/test_basics.py || die + + distutils-r1_python_prepare_all +} + +src_test() { + virtx python_foreach_impl python_test +} + +python_test() { + distutils_install_for_testing + PYTEST_QT_API="pyqt5" epytest + if [[ "${EPYTHON}" == "python3.10" ]]; then + return + else + PYTEST_QT_API="pyside2" epytest + fi +} diff --git a/dev-python/pytest-qt/pytest-qt-4.0.1.ebuild b/dev-python/pytest-qt/pytest-qt-4.0.1.ebuild new file mode 100644 index 000000000000..01570364aa94 --- /dev/null +++ b/dev-python/pytest-qt/pytest-qt-4.0.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="pytest plugin for PyQt5 and PySide2 applications" +HOMEPAGE=" + https://pypi.org/project/pytest-qt/ + https://github.com/pytest-dev/pytest-qt/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-python/QtPy[gui,testlib,widgets(+),${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/PyQt5[gui,testlib,widgets,${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pyside2[gui,testlib,widgets,${PYTHON_USEDEP}] + ' python3_{8..9} ) + ) +" + +distutils_enable_tests --install pytest +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme + +python_prepare_all() { + # This show window test does not work inside the emerge env, as we cannot show windows. + # pytestqt.exceptions.TimeoutError: widget not activated in 1000 ms. + sed -i -e 's:test_wait_window:_&:' tests/test_basics.py || die + + # This is not going to work since we want to test both implementations + # and therefore pull in both and explicitly set PYTEST_QT_API + sed -i -e 's:test_qt_api_ini_config_with_envvar:_&:' \ + -e 's:test_qt_api_ini_config:_&:' \ + tests/test_basics.py || die + + distutils-r1_python_prepare_all +} + +src_test() { + virtx python_foreach_impl python_test +} + +python_test() { + distutils_install_for_testing + PYTEST_QT_API="pyqt5" epytest + if [[ "${EPYTHON}" == "python3.10" ]]; then + return + else + PYTEST_QT_API="pyside2" epytest + fi +} -- cgit v1.2.3