dev-python/backports-tarfile: Sync with Gentoo

It's from Gentoo commit 20deb770d53bf60468d235805f52c9042c8cae18.
This commit is contained in:
Flatcar Buildbot 2025-02-17 07:06:22 +00:00 committed by Krzesimir Nowak
parent 345760a6ea
commit 78df633842

View File

@ -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
}