summaryrefslogtreecommitdiff
path: root/dev-python/linecache2
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/linecache2')
-rw-r--r--dev-python/linecache2/Manifest2
-rw-r--r--dev-python/linecache2/linecache2-1.0.0-r1.ebuild16
2 files changed, 9 insertions, 9 deletions
diff --git a/dev-python/linecache2/Manifest b/dev-python/linecache2/Manifest
index 4ba5923a6238..ebd72360938c 100644
--- a/dev-python/linecache2/Manifest
+++ b/dev-python/linecache2/Manifest
@@ -1,3 +1,3 @@
DIST linecache2-1.0.0.tar.gz 11013 BLAKE2B 5f9b125819d9c812d37f1c14ef9ab52f2d5787c83a3d0d891a4def65f17aea26d903b269a610b7247927f72c1594b434ce9274c5358b29799e4ca5b426b37836 SHA512 e585a6e4c054c1965bc4241a1e36b57cb04f32b2d778df0ae4381975700497975251f509354d3622e36c82973c726a207b815f8b12060d9d583b6669a9eb279e
-EBUILD linecache2-1.0.0-r1.ebuild 718 BLAKE2B 6427ae040f42ea89e64c70bb6a70f351840e2b30cf15711c100aac6d36b50fae6592b5070e575ea0bbb902fcce9b6b3068d5f8ce3dfd0d98137c58640298b7d8 SHA512 100e09abc41168246f982b357a321192827c9775190cf8f4c26a4a7c15071552f0f96c75059801e07c318abe9096884ebe7e96ce5577a863cc36b78661345d74
+EBUILD linecache2-1.0.0-r1.ebuild 725 BLAKE2B 2fe7e9b489f4f050b40b0822654034f66008777caa294f0ab107efff8b06ac2900250211d51f5a0374cf99ef5029c50eb6ea748717ad82e8378bf50cf3eac4d6 SHA512 365efefb38065f1bd9a54c61b8e2004eafa7f92b3c137cb7a55501f03580adece86784728c2e7306d56d15301c5aa8cd3c23f285b48e63c1bbf9bab13ca23154
MISC metadata.xml 377 BLAKE2B 7de50cf7b25ff4a5670c0976205066353aab31ca2c46d14b037253b9843af6a6d973b7a43aec2d213ea4256de851f6ed7accda0aeb1378ba04ae52e69d1c5977 SHA512 577fa842cf618ecfe56bb1661a9b5e124d0f53c204d36df681f2d2601cc797120bbbe9cb863b8aeb268127044c5d2fcc1cf5f21e953262d793d97d9c9ad98aac
diff --git a/dev-python/linecache2/linecache2-1.0.0-r1.ebuild b/dev-python/linecache2/linecache2-1.0.0-r1.ebuild
index 9b0a2e825b13..aab01856e995 100644
--- a/dev-python/linecache2/linecache2-1.0.0-r1.ebuild
+++ b/dev-python/linecache2/linecache2-1.0.0-r1.ebuild
@@ -1,10 +1,9 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} pypy3 )
+EAPI=8
+PYTHON_COMPAT=( python3_{8..9} pypy3 )
inherit distutils-r1
DESCRIPTION="Backports of the linecache module"
@@ -14,16 +13,17 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
BDEPEND="
dev-python/pbr[${PYTHON_USEDEP}]
test? (
dev-python/fixtures[${PYTHON_USEDEP}]
- dev-python/unittest2[${PYTHON_USEDEP}]
)"
-python_test() {
- "${PYTHON}" -m unittest2 discover || die "tests failed under ${EPYTHON}"
+distutils_enable_tests unittest
+
+src_prepare() {
+ # eliminate unittest2 dep
+ sed -i -e '/unittest/s:2 as.*::' linecache2/tests/test_linecache.py || die
+ distutils-r1_src_prepare
}