diff --git a/dev-python/pyspelling/files/pyspelling-2.6.0-do-not-install-tests.patch b/dev-python/pyspelling/files/pyspelling-2.6.0-do-not-install-tests.patch new file mode 100644 index 0000000000..ac8cc6dafc --- /dev/null +++ b/dev-python/pyspelling/files/pyspelling-2.6.0-do-not-install-tests.patch @@ -0,0 +1,11 @@ +--- a/setup.py 2020-03-28 09:44:36.634469819 +0100 ++++ b/setup.py_fix 2020-03-28 09:48:38.754477130 +0100 +@@ -59,7 +59,7 @@ + author='Isaac Muse', + author_email='Isaac.Muse@gmail.com', + url='https://github.com/facelessuser/pyspelling', +- packages=find_packages(exclude=['tests', 'tools']), ++ packages=find_packages(exclude=('tests*', 'tools*')), + entry_points=entry_points, + install_requires=get_requirements(), + license='MIT License', diff --git a/dev-python/pyspelling/pyspelling-2.6.0.ebuild b/dev-python/pyspelling/pyspelling-2.6.0.ebuild index 43ae951529..02fcf91120 100644 --- a/dev-python/pyspelling/pyspelling-2.6.0.ebuild +++ b/dev-python/pyspelling/pyspelling-2.6.0.ebuild @@ -3,17 +3,31 @@ EAPI=7 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7,8} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 DESCRIPTION="Spell checker automation tool" HOMEPAGE="https://github.com/facelessuser/pyspelling" SRC_URI="https://github.com/facelessuser/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + 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/mkdocs-material-5.0.0_rc2 +# ) +#" + RDEPEND=" dev-python/beautifulsoup:4[${PYTHON_USEDEP}] dev-python/lxml[${PYTHON_USEDEP}] @@ -23,9 +37,15 @@ RDEPEND=" >=dev-python/soupsieve-1.8[${PYTHON_USEDEP}] >=dev-python/wcmatch-4.0[${PYTHON_USEDEP}] " -DEPEND="${RDEPEND}" + +PATCHES="${FILESDIR}/${P}-do-not-install-tests.patch" distutils_enable_tests pytest -distutils_enable_sphinx docs/src \ - dev-python/mkdocs-git-revision-date-localized-plugin \ - dev-python/mkdocs_pymdownx_material_extras + +#python_compile_all() { +# default +# if use doc; then +# mkdocs build || die "failed to make docs" +# HTML_DOCS="site" +# fi +#}