diff --git a/dev-python/wcmatch/wcmatch-6.0.1.ebuild b/dev-python/wcmatch/wcmatch-6.0.1.ebuild index 2e302e4bd8..a056fd861f 100644 --- a/dev-python/wcmatch/wcmatch-6.0.1.ebuild +++ b/dev-python/wcmatch/wcmatch-6.0.1.ebuild @@ -3,8 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_6 ) -#DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 @@ -18,18 +17,41 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" +#IUSE="doc" + +# Need mkdocs-1.1 for this +#BDEPEND=" +# doc? ( +# dev-python/mkdocs-git-revision-date-localized-plugin +# dev-python/mkdocs_pymdownx_material_extras +# dev-python/pyspelling +# ) +#" + RDEPEND=" >=dev-python/backrefs-4.1[${PYTHON_USEDEP}] >=dev-python/bracex-2.0[${PYTHON_USEDEP}] " -DEPEND=" - ${RDEPEND} - test? ( - dev-python/bracex[${PYTHON_USEDEP}] - ) -" + distutils_enable_tests pytest -distutils_enable_sphinx docs/src \ - dev-python/mkdocs-git-revision-date-localized-plugin \ - dev-python/mkdocs_pymdownx_material_extras \ - dev-python/pyspelling + +python_prepare_all() { + # no such file or dir ~homedir + sed -i -e 's:test_tilde_user:_&:' \ + tests/test_glob.py || die + + # AssertionError: 0 == 0 + sed -i -e 's:test_tilde_globmatch_no_realpath:_&:' \ + -e 's:test_tilde_globmatch_no_tilde:_&:' \ + tests/test_globmatch.py || die + + distutils-r1_python_prepare_all +} + +#python_compile_all() { +# default +# if use doc; then +# mkdocs build || die "failed to make docs" +# HTML_DOCS="site" +# fi +#}