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/asttokens/
Date: Tue, 06 Jul 2021 07:13:04
Message-Id: 1625555576.ea1b081df6319f705b5b3ff0a2e60b65ec7e2ddb.mgorny@gentoo
1 commit: ea1b081df6319f705b5b3ff0a2e60b65ec7e2ddb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 6 07:09:07 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 6 07:12:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea1b081d
7
8 dev-python/asttokens: Port to py3.10
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/asttokens/asttokens-2.0.5.ebuild | 13 +++++++++++--
13 1 file changed, 11 insertions(+), 2 deletions(-)
14
15 diff --git a/dev-python/asttokens/asttokens-2.0.5.ebuild b/dev-python/asttokens/asttokens-2.0.5.ebuild
16 index cf7fc5d2a25..393339cec50 100644
17 --- a/dev-python/asttokens/asttokens-2.0.5.ebuild
18 +++ b/dev-python/asttokens/asttokens-2.0.5.ebuild
19 @@ -1,9 +1,9 @@
20 # Copyright 2020-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} )
27 +PYTHON_COMPAT=( python3_{8..10} )
28 inherit distutils-r1
29
30 DESCRIPTION="Annotate Python AST trees with source text and token information"
31 @@ -29,3 +29,12 @@ BDEPEND="
32 distutils_enable_tests pytest
33
34 export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
35 +
36 +python_test() {
37 + local deselect=()
38 + [[ ${EPYTHON} == python3.8 ]] && deselect+=(
39 + tests/test_astroid.py::TestAstroid::test_slices
40 + )
41 +
42 + epytest ${deselect[@]/#/--deselect }
43 +}