dev-python/python-debian: bump to python 3.10

passes tests

Signed-off-by: Zamarin Arthur <arthurzam@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Zamarin Arthur
2021-05-19 09:55:57 +03:00
committed by Michał Górny
parent ba4f22afe3
commit e3d5caa093

View File

@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
PYTHON_COMPAT=( python3_{7..10} )
inherit distutils-r1
@@ -13,19 +13,18 @@ SRC_URI="mirror://debian/pool/main/${P:0:1}/${PN}/${PN}_${PV}.tar.xz"
LICENSE="GPL-2 GPL-3"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
BDEPEND="
test? ( app-arch/dpkg )
"
distutils_enable_tests unittest
PATCHES=( "${FILESDIR}/0.1.39-disable-apt-pkg.patch" )
python_compile_all() {
@@ -33,5 +32,5 @@ python_compile_all() {
}
python_test() {
${EPYTHON} -m unittest discover --verbose lib || die "Testing failed with ${EPYTHON}"
eunittest lib
}