dev-python/xdis: Fix setup.py unconditional test dep bug 596510
authorBrian Dolbec <dolsen@gentoo.org>
Sun, 13 Nov 2016 18:09:49 +0000 (10:09 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Sun, 13 Nov 2016 19:35:43 +0000 (11:35 -0800)
Fix metadata.py pypi id

Package-Manager: portage-2.3.2_p3

dev-python/xdis/metadata.xml
dev-python/xdis/xdis-2.3.1.ebuild

index 2cb4b24cce1f86311b79673e8015c3c62e0318f9..d8d220e85926f0c14de9722c06518cf7f8ddd104 100644 (file)
@@ -14,7 +14,7 @@
                        <email>rb@dustyfeet.com</email>
                        <name>Rocky Bernstein</name>
                </maintainer>
-               <remote-id type="pypi">spark_parser</remote-id>
+               <remote-id type="pypi">xdis</remote-id>
        </upstream>
        <longdescription>This Python module allows you to disassemble bytecode from
                different versions of Python than you are running on. It can marshal
index e017b93dd306bde693046523c190a6dd18504e87..b44fc1758e3516ea51a7dbf032e06398f5222089 100644 (file)
@@ -20,6 +20,7 @@ RDEPEND=">=dev-python/six-1.10.0[${PYTHON_USEDEP}]"
 DEPEND="
        dev-python/setuptools[${PYTHON_USEDEP}]
        test? (
+               >=dev-python/nose-1.0[${PYTHON_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
                dev-python/pytest[${PYTHON_USEDEP}]
        )
@@ -28,6 +29,10 @@ DEPEND="
 python_prepare_all() {
        # Remove the 3.3 specific code from being run
        rm -R "test_unit/3.3" || die
+       # Remove an unconditional test only dep
+       sed \
+               -e "s/setup_requires/tests_require/" \
+               -i setup.py
        distutils-r1_python_prepare_all
 }