1 |
commit: c804a3c3b5e127623237af64d6a3bbe1c50a3d76 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 11 18:06:23 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 20:11:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c804a3c3 |
7 |
|
8 |
dev-python/beautifulsoup4: Enable py3.11 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/beautifulsoup4/beautifulsoup4-4.11.1.ebuild | 13 ++++++++++++- |
13 |
1 file changed, 12 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-python/beautifulsoup4/beautifulsoup4-4.11.1.ebuild b/dev-python/beautifulsoup4/beautifulsoup4-4.11.1.ebuild |
16 |
index 9e6b4d8e07cd..5d5d50bc1f75 100644 |
17 |
--- a/dev-python/beautifulsoup4/beautifulsoup4-4.11.1.ebuild |
18 |
+++ b/dev-python/beautifulsoup4/beautifulsoup4-4.11.1.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
EAPI=8 |
21 |
|
22 |
DISTUTILS_USE_PEP517=setuptools |
23 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
24 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
@@ -21,6 +21,17 @@ RDEPEND=" |
29 |
dev-python/html5lib[${PYTHON_USEDEP}] |
30 |
dev-python/lxml[${PYTHON_USEDEP}] |
31 |
" |
32 |
+# bs4 prefers cchardet > chardet > charset-normalizer |
33 |
+# however, charset-normalizer causes test failures, so force the other two |
34 |
+# dev-python/chardet[${PYTHON_USEDEP}] |
35 |
+BDEPEND=" |
36 |
+ test? ( |
37 |
+ || ( |
38 |
+ dev-python/cchardet[${PYTHON_USEDEP}] |
39 |
+ dev-python/chardet[${PYTHON_USEDEP}] |
40 |
+ ) |
41 |
+ ) |
42 |
+" |
43 |
|
44 |
distutils_enable_tests pytest |
45 |
distutils_enable_sphinx doc/source |