commit:     2f54ca54d25be97128bbc63446a5e93ee0b1f5c9
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sat Mar 28 10:22:49 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sat Mar 28 11:00:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2f54ca54

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 <AT> riseup.net>

 .../pyspelling-2.6.0-do-not-install-tests.patch    | 11 ++++++++
 dev-python/pyspelling/pyspelling-2.6.0.ebuild      | 30 ++++++++++++++++++----
 2 files changed, 36 insertions(+), 5 deletions(-)

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 0000000..ac8cc6d
--- /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.m...@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 43ae951..02fcf91 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
+#}

Reply via email to