diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-07-05 12:53:56 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-07-05 12:56:16 +0200 |
commit | 85ad52f6ac152b9f6bba496db322e5aeb70dc332 (patch) | |
tree | 6b1690581947fcd3dba0145e6c0a64deeaa39337 /dev-python/testtools | |
parent | dev-vcs/fossil: Bump to 2.16 (diff) | |
download | gentoo-85ad52f6ac152b9f6bba496db322e5aeb70dc332.tar.gz gentoo-85ad52f6ac152b9f6bba496db322e5aeb70dc332.tar.bz2 gentoo-85ad52f6ac152b9f6bba496db322e5aeb70dc332.zip |
dev-python/testtools: Eliminate traceback2 too
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/testtools')
-rw-r--r-- | dev-python/testtools/testtools-2.4.0-r2.ebuild | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dev-python/testtools/testtools-2.4.0-r2.ebuild b/dev-python/testtools/testtools-2.4.0-r2.ebuild index d95f4dfff00a..2e853225cf7a 100644 --- a/dev-python/testtools/testtools-2.4.0-r2.ebuild +++ b/dev-python/testtools/testtools-2.4.0-r2.ebuild @@ -22,7 +22,6 @@ RDEPEND=" >=dev-python/pbr-0.11[${PYTHON_USEDEP}] dev-python/pyrsistent[${PYTHON_USEDEP}] >=dev-python/six-1.4.0[${PYTHON_USEDEP}] - dev-python/traceback2[${PYTHON_USEDEP}] " DEPEND=" test? ( @@ -41,11 +40,13 @@ distutils_enable_sphinx doc distutils_enable_tests unittest src_prepare() { - # eliminate unittest2 - sed -i -e '/unittest2/d' requirements.txt || die + # eliminate unittest2 & traceback2 + sed -i -e '/unittest2/d' -e '/traceback2/d' requirements.txt || die # also conditional imports find -name '*.py' -exec \ sed -i -e 's:unittest2:unittest:' {} + || die + sed -i -e 's/^traceback =.*/import traceback/' \ + testtools/content.py || die distutils-r1_src_prepare } |