summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-24 20:10:38 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-24 20:31:45 +0100
commit2b2cb284d929f25399f2142292a715656b50a44c (patch)
tree40dacb52acbd1a09435b7f6fc2f39592b3ce2d90 /dev-python/olefile
parentdev-python/pip: Remove unnecessary test deps and restrictions (diff)
downloadgentoo-2b2cb284d929f25399f2142292a715656b50a44c.tar.gz
gentoo-2b2cb284d929f25399f2142292a715656b50a44c.tar.bz2
gentoo-2b2cb284d929f25399f2142292a715656b50a44c.zip
dev-python/olefile: Enable tests, py3.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/olefile')
-rw-r--r--dev-python/olefile/olefile-0.46.ebuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/dev-python/olefile/olefile-0.46.ebuild b/dev-python/olefile/olefile-0.46.ebuild
index 10972e2cd7cd..a78fc2a6f0b8 100644
--- a/dev-python/olefile/olefile-0.46.ebuild
+++ b/dev-python/olefile/olefile-0.46.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python{2_7,3_{5,6,7}} pypy{,3} )
+PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} )
inherit distutils-r1
@@ -16,14 +16,19 @@ SLOT="0"
KEYWORDS="alpha amd64 arm arm64 ~hppa ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
IUSE="doc"
-RDEPEND=""
BDEPEND="
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+ doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )"
+
+distutils_enable_tests unittest
+
+python_check_deps() {
+ use doc || return 0
+ has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
python_compile_all() {
if use doc; then
- emake -C doc html
- HTML_DOCS=( doc/_build/html/. )
+ emake -C doc html
+ HTML_DOCS=( doc/_build/html/. )
fi
-
}