1 |
commit: 4c71df19ce0c32d72000ea0a66771c7e1886b187 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 9 15:09:23 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 20:33:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c71df19 |
7 |
|
8 |
dev-python/attrs: Enable py3.11 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/attrs/attrs-21.4.0-r1.ebuild | 23 +++++++++++++++++++++-- |
13 |
1 file changed, 21 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/attrs/attrs-21.4.0-r1.ebuild b/dev-python/attrs/attrs-21.4.0-r1.ebuild |
16 |
index 1cca38cc572e..ee58a8f99423 100644 |
17 |
--- a/dev-python/attrs/attrs-21.4.0-r1.ebuild |
18 |
+++ b/dev-python/attrs/attrs-21.4.0-r1.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 |
@@ -28,10 +28,29 @@ BDEPEND=" |
29 |
$(python_gen_impl_dep sqlite) |
30 |
$(python_gen_cond_dep ' |
31 |
dev-python/cloudpickle[${PYTHON_USEDEP}] |
32 |
- ' 'python*') |
33 |
+ ' python3_{8..10}) |
34 |
>=dev-python/hypothesis-3.6.0[${PYTHON_USEDEP}] |
35 |
>=dev-python/pytest-4.3.0[${PYTHON_USEDEP}] |
36 |
) |
37 |
" |
38 |
|
39 |
distutils_enable_tests pytest |
40 |
+ |
41 |
+python_test() { |
42 |
+ local EPYTEST_DESELECT=() |
43 |
+ [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=( |
44 |
+ # https://github.com/python-attrs/attrs/issues/907 |
45 |
+ tests/test_annotations.py::TestAnnotations::test_auto_attribs |
46 |
+ tests/test_annotations.py::TestAnnotations::test_annotations_strings |
47 |
+ 'tests/test_init_subclass.py::test_init_subclass_vanilla[True]' |
48 |
+ tests/test_make.py::TestAutoDetect::test_detects_setstate_getstate |
49 |
+ tests/test_slots.py::TestClosureCellRewriting::test_closure_cell_rewriting |
50 |
+ tests/test_slots.py::TestClosureCellRewriting::test_inheritance |
51 |
+ 'tests/test_slots.py::TestClosureCellRewriting::test_cls_static[True]' |
52 |
+ tests/test_slots.py::TestPickle::test_no_getstate_setstate_for_dict_classes |
53 |
+ tests/test_slots.py::TestPickle::test_no_getstate_setstate_if_option_false |
54 |
+ tests/test_slots.py::test_slots_super_property_get_shurtcut |
55 |
+ ) |
56 |
+ |
57 |
+ epytest |
58 |
+} |