commit: ea1b081df6319f705b5b3ff0a2e60b65ec7e2ddb
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 6 07:09:07 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jul 6 07:12:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea1b081d
dev-python/asttokens: Port to py3.10
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/asttokens/asttokens-2.0.5.ebuild | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/dev-python/asttokens/asttokens-2.0.5.ebuild
b/dev-python/asttokens/asttokens-2.0.5.ebuild
index cf7fc5d2a25..393339cec50 100644
--- a/dev-python/asttokens/asttokens-2.0.5.ebuild
+++ b/dev-python/asttokens/asttokens-2.0.5.ebuild
@@ -1,9 +1,9 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Annotate Python AST trees with source text and token information"
@@ -29,3 +29,12 @@ BDEPEND="
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_test() {
+ local deselect=()
+ [[ ${EPYTHON} == python3.8 ]] && deselect+=(
+ tests/test_astroid.py::TestAstroid::test_slices
+ )
+
+ epytest ${deselect[@]/#/--deselect }
+}