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/argon2-cffi/
Date: Thu, 01 Jul 2021 17:53:52
Message-Id: 1625162013.446dde5f9155ab7b0ad150c86a74c75df0e841dd.mgorny@gentoo
1 commit: 446dde5f9155ab7b0ad150c86a74c75df0e841dd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 1 16:10:40 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 1 17:53:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=446dde5f
7
8 dev-python/argon2-cffi: Port to py3.10
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/argon2-cffi/argon2-cffi-20.1.0.ebuild | 13 +++++++++++--
13 1 file changed, 11 insertions(+), 2 deletions(-)
14
15 diff --git a/dev-python/argon2-cffi/argon2-cffi-20.1.0.ebuild b/dev-python/argon2-cffi/argon2-cffi-20.1.0.ebuild
16 index 8f2dbc345dd..d86638c7966 100644
17 --- a/dev-python/argon2-cffi/argon2-cffi-20.1.0.ebuild
18 +++ b/dev-python/argon2-cffi/argon2-cffi-20.1.0.ebuild
19 @@ -1,9 +1,9 @@
20 # Copyright 1999-2021 Gentoo Authors
21 # Distributed under the terms of the GNU General Public License v2
22
23 -EAPI=7
24 +EAPI=8
25
26 -PYTHON_COMPAT=( python3_{7..9} pypy3 )
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 inherit distutils-r1
29
30 DESCRIPTION="CFFI bindings to the Argon2 password hashing library"
31 @@ -33,3 +33,12 @@ distutils_enable_tests pytest
32 python_configure_all() {
33 export ARGON2_CFFI_USE_SYSTEM=1
34 }
35 +
36 +python_test() {
37 + local deselect=()
38 + [[ ${EPYTHON} == python3.10 ]] && deselect+=(
39 + # fails due to changed Enum repr
40 + tests/test_utils.py::TestParameters::test_repr
41 + )
42 + epytest ${deselect[@]/#/--deselect }
43 +}