1 |
commit: fb2b2523096086e9bd217e006edf4c62d264498c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 30 19:38:38 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 30 19:45:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb2b2523 |
7 |
|
8 |
dev-python/pyquery: Enable py3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyquery/pyquery-1.4.3.ebuild | 12 +++++------- |
13 |
1 file changed, 5 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pyquery/pyquery-1.4.3.ebuild b/dev-python/pyquery/pyquery-1.4.3.ebuild |
16 |
index 5e3ce4f6ef3..c89aff0e991 100644 |
17 |
--- a/dev-python/pyquery/pyquery-1.4.3.ebuild |
18 |
+++ b/dev-python/pyquery/pyquery-1.4.3.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) |
24 |
+PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
25 |
|
26 |
inherit distutils-r1 optfeature |
27 |
|
28 |
@@ -14,30 +14,28 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
29 |
LICENSE="BSD" |
30 |
SLOT="0" |
31 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~x64-macos" |
32 |
-IUSE="test" |
33 |
|
34 |
RDEPEND=" |
35 |
>=dev-python/lxml-2.1[${PYTHON_USEDEP}] |
36 |
>dev-python/cssselect-0.7.9[${PYTHON_USEDEP}] |
37 |
>=dev-python/webob-1.1.9[${PYTHON_USEDEP}]" |
38 |
DEPEND=" |
39 |
- test? ( ${RDEPEND} |
40 |
+ test? ( |
41 |
dev-python/beautifulsoup[${PYTHON_USEDEP}] |
42 |
dev-python/requests[${PYTHON_USEDEP}] |
43 |
- dev-python/nose[${PYTHON_USEDEP}] |
44 |
dev-python/webtest[${PYTHON_USEDEP}] |
45 |
)" |
46 |
|
47 |
-RESTRICT+=" !test? ( test )" |
48 |
- |
49 |
PATCHES=( |
50 |
"${FILESDIR}/pyquery-1.4.1-network-tests.patch" |
51 |
"${FILESDIR}/pyquery-1.4.1-tests-pypy.patch" |
52 |
) |
53 |
|
54 |
+distutils_enable_tests nose |
55 |
+ |
56 |
python_test() { |
57 |
# The suite, it appears, requires this hard setting of PYTHONPATH! |
58 |
- PYTHONPATH=. nosetests || die "Tests fail with ${EPYTHON}" |
59 |
+ PYTHONPATH=. nosetests -v || die "Tests fail with ${EPYTHON}" |
60 |
} |
61 |
|
62 |
pkg_postinst() { |