mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/backports-tarfile: Enable pypy3.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
|
||||
@@ -7,7 +7,7 @@ EAPI=8
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYPI_PN=${PN/-/.}
|
||||
# This is a backport from Python 3.12.
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..11} )
|
||||
PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..11} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
@@ -44,3 +44,21 @@ src_configure() {
|
||||
description = "Backport of CPython tarfile module"
|
||||
EOF
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=()
|
||||
case ${EPYTHON} in
|
||||
pypy3.11)
|
||||
EPYTEST_DESELECT+=(
|
||||
# https://github.com/jaraco/backports.tarfile/issues/10
|
||||
tests/test_tarfile.py::ListTest::test_list_verbose
|
||||
tests/test_tarfile.py::GzipListTest::test_list_verbose
|
||||
tests/test_tarfile.py::Bz2ListTest::test_list_verbose
|
||||
tests/test_tarfile.py::LzmaListTest::test_list_verbose
|
||||
tests/test_tarfile.py::TestExtractionFilters::test_modes
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
||||
epytest
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user