dev-python/pyspelling: workaround installing test issue

https://github.com/facelessuser/pyspelling/issues/104

Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2020-03-28 11:22:49 +01:00
parent f6f4d9a695
commit 2f54ca54d2
2 changed files with 36 additions and 5 deletions

View File

@@ -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',

View File

@@ -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
#}