Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cffi/
Date: Wed, 11 May 2022 06:19:22
Message-Id: 1652249950.34eea06ee62c0bf38261ad7ccb4bee58ce1fa160.mgorny@gentoo
1 commit: 34eea06ee62c0bf38261ad7ccb4bee58ce1fa160
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 21:20:06 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 11 06:19:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34eea06e
7
8 dev-python/cffi: Enable py3.11
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/cffi/cffi-1.15.0-r1.ebuild | 9 ++++++++-
13 1 file changed, 8 insertions(+), 1 deletion(-)
14
15 diff --git a/dev-python/cffi/cffi-1.15.0-r1.ebuild b/dev-python/cffi/cffi-1.15.0-r1.ebuild
16 index 97883557d572..2039fa2bc8f1 100644
17 --- a/dev-python/cffi/cffi-1.15.0-r1.ebuild
18 +++ b/dev-python/cffi/cffi-1.15.0-r1.ebuild
19 @@ -7,7 +7,7 @@ EAPI=7
20 DISTUTILS_USE_PEP517=setuptools
21 # DO NOT ADD pypy to PYTHON_COMPAT
22 # pypy bundles a modified version of cffi. Use python_gen_cond_dep instead.
23 -PYTHON_COMPAT=( python3_{8..10} )
24 +PYTHON_COMPAT=( python3_{8..11} )
25
26 inherit distutils-r1 toolchain-funcs
27
28 @@ -54,10 +54,17 @@ src_configure() {
29 }
30
31 python_test() {
32 + local EPYTEST_DESELECT=()
33 local EPYTEST_IGNORE=(
34 # these tests call pip
35 testing/cffi0/test_zintegration.py
36 )
37 + if [[ ${EPYTHON} == python3.11 ]]; then
38 + EPYTEST_DESELECT+=(
39 + # exception printing format has changed
40 + c/test_c.py::test_callback_exception
41 + )
42 + fi
43
44 "${EPYTHON}" -c "import _cffi_backend as backend" || die
45 local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1