commit:     4c71df19ce0c32d72000ea0a66771c7e1886b187
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May  9 15:09:23 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May  9 20:33:57 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c71df19

dev-python/attrs: Enable py3.11

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/attrs/attrs-21.4.0-r1.ebuild | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/dev-python/attrs/attrs-21.4.0-r1.ebuild 
b/dev-python/attrs/attrs-21.4.0-r1.ebuild
index 1cca38cc572e..ee58a8f99423 100644
--- a/dev-python/attrs/attrs-21.4.0-r1.ebuild
+++ b/dev-python/attrs/attrs-21.4.0-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..10} pypy3 )
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
 
 inherit distutils-r1
 
@@ -28,10 +28,29 @@ BDEPEND="
                $(python_gen_impl_dep sqlite)
                $(python_gen_cond_dep '
                        dev-python/cloudpickle[${PYTHON_USEDEP}]
-               ' 'python*')
+               ' python3_{8..10})
                >=dev-python/hypothesis-3.6.0[${PYTHON_USEDEP}]
                >=dev-python/pytest-4.3.0[${PYTHON_USEDEP}]
        )
 "
 
 distutils_enable_tests pytest
+
+python_test() {
+       local EPYTEST_DESELECT=()
+       [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
+               # https://github.com/python-attrs/attrs/issues/907
+               tests/test_annotations.py::TestAnnotations::test_auto_attribs
+               
tests/test_annotations.py::TestAnnotations::test_annotations_strings
+               'tests/test_init_subclass.py::test_init_subclass_vanilla[True]'
+               
tests/test_make.py::TestAutoDetect::test_detects_setstate_getstate
+               
tests/test_slots.py::TestClosureCellRewriting::test_closure_cell_rewriting
+               tests/test_slots.py::TestClosureCellRewriting::test_inheritance
+               
'tests/test_slots.py::TestClosureCellRewriting::test_cls_static[True]'
+               
tests/test_slots.py::TestPickle::test_no_getstate_setstate_for_dict_classes
+               
tests/test_slots.py::TestPickle::test_no_getstate_setstate_if_option_false
+               tests/test_slots.py::test_slots_super_property_get_shurtcut
+       )
+
+       epytest
+}

Reply via email to