1 |
commit: 89af0bbaf1f4accb2a447de53279af7696d58cf1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 31 12:43:04 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 12:43:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89af0bba |
7 |
|
8 |
dev-python/pytest-qt: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest-qt/pytest-qt-4.0.2.ebuild | 60 ----------------------------- |
13 |
1 file changed, 60 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild b/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 2e1cc477fd82..000000000000 |
18 |
--- a/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,60 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-PYTHON_COMPAT=( python3_{8..10} ) |
27 |
- |
28 |
-inherit distutils-r1 virtualx |
29 |
- |
30 |
-DESCRIPTION="Pytest plugin for PyQt5 and PySide2 applications" |
31 |
-HOMEPAGE=" |
32 |
- https://pypi.org/project/pytest-qt/ |
33 |
- https://github.com/pytest-dev/pytest-qt/" |
34 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
- |
36 |
-LICENSE="MIT" |
37 |
-SLOT="0" |
38 |
-KEYWORDS="amd64 ~arm64 x86" |
39 |
- |
40 |
-RDEPEND="dev-python/QtPy[gui,testlib,widgets(+),${PYTHON_USEDEP}]" |
41 |
-BDEPEND=" |
42 |
- test? ( |
43 |
- dev-python/PyQt5[gui,testlib,widgets,${PYTHON_USEDEP}] |
44 |
- $(python_gen_cond_dep ' |
45 |
- dev-python/pyside2[gui,testlib,widgets,${PYTHON_USEDEP}] |
46 |
- ' python3_{8..9} ) |
47 |
- ) |
48 |
-" |
49 |
- |
50 |
-distutils_enable_tests --install pytest |
51 |
-distutils_enable_sphinx docs dev-python/sphinx_rtd_theme |
52 |
- |
53 |
-src_test() { |
54 |
- virtx distutils-r1_src_test |
55 |
-} |
56 |
- |
57 |
-python_test() { |
58 |
- # warnings from other plugins cause the test output matchers to fail |
59 |
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
60 |
- local -x PYTEST_PLUGINS=pytestqt.plugin |
61 |
- |
62 |
- local EPYTEST_DESELECT=( |
63 |
- # requires the window to be activated; that doesn't seem |
64 |
- # to be possible inside Xvfb |
65 |
- "tests/test_basics.py::test_wait_window[waitActive-True]" |
66 |
- |
67 |
- # we are forcing a specific module via envvar, effectively |
68 |
- # overriding the config |
69 |
- tests/test_basics.py::test_qt_api_ini_config |
70 |
- tests/test_basics.py::test_qt_api_ini_config_with_envvar |
71 |
- ) |
72 |
- |
73 |
- distutils_install_for_testing |
74 |
- PYTEST_QT_API="pyqt5" epytest || die |
75 |
- if [[ "${EPYTHON}" == "python3.10" ]]; then |
76 |
- return |
77 |
- else |
78 |
- PYTEST_QT_API="pyside2" epytest || die |
79 |
- fi |
80 |
-} |