From ea1b081df6319f705b5b3ff0a2e60b65ec7e2ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 6 Jul 2021 09:09:07 +0200 Subject: dev-python/asttokens: Port to py3.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/asttokens/asttokens-2.0.5.ebuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'dev-python') diff --git a/dev-python/asttokens/asttokens-2.0.5.ebuild b/dev-python/asttokens/asttokens-2.0.5.ebuild index cf7fc5d2a259..393339cec50b 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 } +} -- cgit v1.2.3