diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-20 13:38:46 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-20 14:00:42 +0100 |
commit | 4c2e2393ceb90fcf8a781df14d7148db0e0e8a16 (patch) | |
tree | 8bcfc328edcb45436beee8076658cfe97667dcaa /dev-python/cssselect | |
parent | media-libs/libplacebo: Add missing RESTRICT="!test? ( test )" (diff) | |
download | gentoo-4c2e2393ceb90fcf8a781df14d7148db0e0e8a16.tar.gz gentoo-4c2e2393ceb90fcf8a781df14d7148db0e0e8a16.tar.bz2 gentoo-4c2e2393ceb90fcf8a781df14d7148db0e0e8a16.zip |
dev-python/cssselect: Enable py3.8
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/cssselect')
-rw-r--r-- | dev-python/cssselect/cssselect-1.0.3.ebuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/dev-python/cssselect/cssselect-1.0.3.ebuild b/dev-python/cssselect/cssselect-1.0.3.ebuild index 2d91e85a4ac2..80aef78e55b9 100644 --- a/dev-python/cssselect/cssselect-1.0.3.ebuild +++ b/dev-python/cssselect/cssselect-1.0.3.ebuild @@ -3,7 +3,7 @@ EAPI=6 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy ) +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy ) inherit distutils-r1 @@ -17,13 +17,19 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" IUSE="doc test" +RESTRICT="!test? ( test )" DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) test? ( dev-python/lxml[${PYTHON_USEDEP}] )" -RDEPEND="" +distutils_enable_tests unittest + +python_check_deps() { + use doc || return 0 + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} python_prepare_all() { # prevent non essential d'load of files in doc build @@ -37,10 +43,6 @@ python_compile_all() { fi } -python_test() { - "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" -} - python_install_all() { use doc && local HTML_DOCS=( docs/_build/html/. ) distutils-r1_python_install_all |