dev-python/wheel: Enable python3.10

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-05-05 20:18:59 +02:00
parent 9e5342f237
commit f69cc9a101

View File

@@ -3,9 +3,7 @@
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
PYTHON_COMPAT=( python3_{7..10} pypy3 )
inherit distutils-r1
DESCRIPTION="A built-package format for Python"
@@ -17,7 +15,7 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
distutils_enable_tests pytest
distutils_enable_tests --install pytest
src_prepare() {
sed \
@@ -25,14 +23,3 @@ src_prepare() {
-i setup.cfg || die
distutils-r1_src_prepare
}
python_test() {
if ! python_is_python3; then
# install fails due to unicode in paths
ewarn "Testing is broken with py2.7, please test externally"
return
fi
distutils_install_for_testing --via-root
pytest -vv || die "Tests failed with ${EPYTHON}"
}