1 |
commit: a6a0b08e7fc2a3f13b922952a202cf64333581c1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 9 18:30:19 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 20:37:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6a0b08e |
7 |
|
8 |
dev-python/hypothesis: Enable py3.11 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/hypothesis/hypothesis-6.46.2.ebuild | 8 +++++++- |
13 |
1 file changed, 7 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-python/hypothesis/hypothesis-6.46.2.ebuild b/dev-python/hypothesis/hypothesis-6.46.2.ebuild |
16 |
index 758bc099894a..d8d3c343338c 100644 |
17 |
--- a/dev-python/hypothesis/hypothesis-6.46.2.ebuild |
18 |
+++ b/dev-python/hypothesis/hypothesis-6.46.2.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 |
PYTHON_REQ_USE="threads(+),sqlite" |
26 |
|
27 |
inherit distutils-r1 multiprocessing optfeature |
28 |
@@ -39,6 +39,12 @@ BDEPEND=" |
29 |
|
30 |
distutils_enable_tests pytest |
31 |
|
32 |
+src_prepare() { |
33 |
+ # unblock py3.11 betas |
34 |
+ sed -i -e '/release.*alpha/d' tests/conftest.py || die |
35 |
+ distutils-r1_src_prepare |
36 |
+} |
37 |
+ |
38 |
python_test() { |
39 |
# subtests are broken by warnings from random plugins |
40 |
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |