summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-07-01 21:33:55 +0200
committerMatt Turner <mattst88@gentoo.org>2020-07-16 21:13:52 -0700
commit7951b3a633cca194bdfb42ebb6862f5815ebb489 (patch)
tree210be7aa7b0591d66322e8243600221c4dd9eeba /dev-python/sphinxcontrib-issuetracker
parentdev-python/pep8: add py3_8 rem py2,py3_6 (diff)
downloadgentoo-7951b3a633cca194bdfb42ebb6862f5815ebb489.tar.gz
gentoo-7951b3a633cca194bdfb42ebb6862f5815ebb489.tar.bz2
gentoo-7951b3a633cca194bdfb42ebb6862f5815ebb489.zip
dev-python/sphinxcontrib-issuetracker: add py3_7,8,9
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-python/sphinxcontrib-issuetracker')
-rw-r--r--dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild37
1 files changed, 13 insertions, 24 deletions
diff --git a/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild b/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild
index 5c20acaa206c..cd4654d3001f 100644
--- a/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild
+++ b/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{7,8,9} )
inherit distutils-r1
@@ -14,20 +14,27 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
+
+# ImportError: cannot import name 'SphinxStandaloneReader'
+RESTRICT="test"
RDEPEND="
dev-python/namespace-sphinxcontrib[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
- dev-python/sphinx[${PYTHON_USEDEP}]"
+ dev-python/sphinx[${PYTHON_USEDEP}]
+"
+
DEPEND="${RDEPEND}
- dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
+distutils_enable_tests pytest
+# KeyError: 'refdomain' with sphinx-1
+# AttributeError: 'Sphinx' object has no attribute 'add_description_unit' with sphinx>1
+#distutils_enable_sphinx doc
+
python_prepare_all() {
# test requires network access (bug #425694)
rm tests/test_builtin_trackers.py || die
@@ -36,27 +43,9 @@ python_prepare_all() {
# and virtualx.eclass.
rm tests/test_stylesheet.py || die
- # Avoid redundant objects.inv from downloading, sed more lightweight
- if use doc; then
- sed -e "s:^intersphinx_mapping:#intersphinx_mapping:" \
- -e "s:^ 'sphinx':#:" \
- -i doc/conf.py || die
- fi
-
distutils-r1_python_prepare_all
}
-python_compile_all() {
- if use doc; then
- emake -C doc html
- HTML_DOCS=( doc/_build/html/. )
- fi
-}
-
-python_test() {
- py.test || die
-}
-
python_install_all() {
distutils-r1_python_install_all
find "${ED}" -name '*.pth' -delete || die