dev-python/fs: move tests to BDEPEND and use python_gen_cond_dep
authorAaron Bauman <bman@gentoo.org>
Sun, 24 Nov 2019 19:31:18 +0000 (14:31 -0500)
committerAaron Bauman <bman@gentoo.org>
Sun, 24 Nov 2019 19:31:58 +0000 (14:31 -0500)
Signed-off-by: Aaron Bauman <bman@gentoo.org>
dev-python/fs/fs-2.4.9.ebuild

index bf26e5723f5f0c0c92ffb9a53b4a9061e7ac7ff5..baa94596f2262ecd3e441b485b3201cf74b37b71 100644 (file)
@@ -26,15 +26,16 @@ RDEPEND="
        >=dev-python/six-1.10[${PYTHON_USEDEP}]
 "
 DEPEND="${RDEPEND}
-       dev-python/setuptools[${PYTHON_USEDEP}]
-       test? (
+       dev-python/setuptools[${PYTHON_USEDEP}]"
+BDEPEND="test? (
+       $(python_gen_cond_dep '
                dev-python/nose[${PYTHON_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
                dev-python/pyftpdlib[${PYTHON_USEDEP}]
                dev-python/psutil[${PYTHON_USEDEP}]
                dev-python/unittest2[${PYTHON_USEDEP}]
-       )
-"
+               ' -3)
+)"
 
 python_test() {
        # python2_7 tests require dev-python/typing which is