summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-09 17:09:23 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-09 22:33:57 +0200
commit4c71df19ce0c32d72000ea0a66771c7e1886b187 (patch)
tree9c595b4a6412f5d74fd12ba4dc3e609c58c8e789 /dev-python/attrs
parentdev-python/zope-interface: Enable py3.11 (diff)
downloadgentoo-4c71df19ce0c32d72000ea0a66771c7e1886b187.tar.gz
gentoo-4c71df19ce0c32d72000ea0a66771c7e1886b187.tar.bz2
gentoo-4c71df19ce0c32d72000ea0a66771c7e1886b187.zip
dev-python/attrs: Enable py3.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/attrs')
-rw-r--r--dev-python/attrs/attrs-21.4.0-r1.ebuild23
1 files 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
+}