From 4c71df19ce0c32d72000ea0a66771c7e1886b187 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 9 May 2022 17:09:23 +0200 Subject: dev-python/attrs: Enable py3.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/attrs/attrs-21.4.0-r1.ebuild | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'dev-python/attrs') 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 +} -- cgit v1.2.3-65-gdbad