mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 11:18:09 -07:00
dev-python/sphinx: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,3 +1 @@
|
||||
DIST sphinx-8.2.3.gh.tar.gz 8378376 BLAKE2B ddfa406140bebcaa09299a56fedf1170db6504a9ce3807e20c555f5e088d81acbfd19f2621a824b91199713b301380fd2056cf2282ea81f4a0858dd714eb7e45 SHA512 23066d9e98f3e36ee34ac3bc5af45792762f858e1e670145b7d1db7e98fa9e9654d87a27b9316dd72704aeea75b53f73d07d22f723c915d23a95f59bbd4f6365
|
||||
DIST sphinx-9.0.4.gh.tar.gz 8843746 BLAKE2B 4cae21fa2b980f529f58444c4cf793ec455f5a0ea43944fa44e9e99a3d03de48f88f170e6c7382dea99cd0bb895729ee0b43cafe2aef1e84a190ea244e4c08da SHA512 8652e6a65060a81609275afa6301bb0eaccda939e2988f86d548796a215a86c923c9240422497abe77652a436479930e81dfdf43fba9722b63a50542d3ac9522
|
||||
DIST sphinx-9.1.0.gh.tar.gz 8840512 BLAKE2B 54f680ff84b43b3508c1c9208ff41dc9fba1ae8f8dd608287511fb16e28dc7fa72419165b41f556af266e00c737cd8cc23a6617776fa88f0dbb8379fbbf59397 SHA512 3b17a3d4123d19ed47c7ab7786edcbe7eb0566f298d9de22efb3f4f0476b6c0ddf858b57812f2dac718458d98ddc742a443b7c94771693a1ed3bf868850639b1
|
||||
|
||||
@@ -1,125 +0,0 @@
|
||||
https://github.com/sphinx-doc/sphinx/commit/8962398b761c3d85a7c74b6f789b3ffb127bde0c
|
||||
From: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
||||
Date: Thu, 6 Mar 2025 16:03:44 +0000
|
||||
Subject: [PATCH] autosummary: Update test for Python 3.14.0a5+ (#13418)
|
||||
|
||||
`types.UnionType` and `typing.Union` have been merged.
|
||||
--- a/tests/test_extensions/test_ext_autosummary.py
|
||||
+++ b/tests/test_extensions/test_ext_autosummary.py
|
||||
@@ -447,8 +447,12 @@ def test_autosummary_generate_content_for_module_imported_members(app):
|
||||
]
|
||||
assert context['functions'] == ['bar']
|
||||
assert context['all_functions'] == ['_quux', 'bar']
|
||||
- assert context['classes'] == ['Class', 'Foo']
|
||||
- assert context['all_classes'] == ['Class', 'Foo', '_Baz']
|
||||
+ if sys.version_info >= (3, 14, 0, 'alpha', 5):
|
||||
+ assert context['classes'] == ['Class', 'Foo', 'Union']
|
||||
+ assert context['all_classes'] == ['Class', 'Foo', 'Union', '_Baz']
|
||||
+ else:
|
||||
+ assert context['classes'] == ['Class', 'Foo']
|
||||
+ assert context['all_classes'] == ['Class', 'Foo', '_Baz']
|
||||
assert context['exceptions'] == ['Exc']
|
||||
assert context['all_exceptions'] == ['Exc', '_Exc']
|
||||
assert context['attributes'] == ['CONSTANT1', 'qux', 'quuz', 'non_imported_member']
|
||||
https://github.com/sphinx-doc/sphinx/commit/e01e42f5fc738815b8499c4ede30c6caf130f0a4
|
||||
From: Adam Turner <9087854+aa-turner@users.noreply.github.com>
|
||||
Date: Wed, 19 Mar 2025 20:11:35 +0000
|
||||
Subject: [PATCH] Fix ``INVALID_BUILTIN_CLASSES`` test for Python 3.14.0a6+
|
||||
|
||||
--- a/tests/test_util/test_util_typing.py
|
||||
+++ b/tests/test_util/test_util_typing.py
|
||||
@@ -205,7 +205,7 @@ def test_is_invalid_builtin_class() -> None:
|
||||
zipfile.Path,
|
||||
zipfile.CompleteDirs,
|
||||
)
|
||||
- if sys.version_info[:2] >= (3, 13):
|
||||
+ if sys.version_info[:2] == (3, 13):
|
||||
invalid_types += (
|
||||
# pathlib
|
||||
Path,
|
||||
@@ -217,7 +217,7 @@ def test_is_invalid_builtin_class() -> None:
|
||||
)
|
||||
|
||||
invalid_names = {(cls.__module__, cls.__qualname__) for cls in invalid_types}
|
||||
- if sys.version_info[:2] < (3, 13):
|
||||
+ if sys.version_info[:2] != (3, 13):
|
||||
invalid_names |= {
|
||||
('pathlib._local', 'Path'),
|
||||
('pathlib._local', 'PosixPath'),
|
||||
@@ -231,7 +231,7 @@ def test_is_invalid_builtin_class() -> None:
|
||||
('zipfile._path', 'Path'),
|
||||
('zipfile._path', 'CompleteDirs'),
|
||||
}
|
||||
- assert _INVALID_BUILTIN_CLASSES.keys() == invalid_names
|
||||
+ assert set(_INVALID_BUILTIN_CLASSES) == invalid_names
|
||||
|
||||
|
||||
def test_restify_type_hints_containers():
|
||||
https://github.com/sphinx-doc/sphinx/commit/0227606e71dc765ed60cd0ad2c580a43b5ffca4f
|
||||
From: James Addison <55152140+jayaddison@users.noreply.github.com>
|
||||
Date: Mon, 12 May 2025 16:52:52 +0000
|
||||
Subject: [PATCH] Fix tests for Python 3.14.0a7 (#13527)
|
||||
|
||||
Authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
|
||||
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
|
||||
Co-authored-by: James Addison <55152140+jayaddison@users.noreply.github.com>
|
||||
--- a/tests/test_extensions/test_ext_autodoc.py
|
||||
+++ b/tests/test_extensions/test_ext_autodoc.py
|
||||
@@ -938,10 +938,14 @@ def test_autodoc_special_members(app):
|
||||
}
|
||||
if sys.version_info >= (3, 13, 0, 'alpha', 5):
|
||||
options['exclude-members'] = '__static_attributes__,__firstlineno__'
|
||||
+ if sys.version_info >= (3, 14, 0, 'alpha', 7):
|
||||
+ ann_attr_name = '__annotations_cache__'
|
||||
+ else:
|
||||
+ ann_attr_name = '__annotations__'
|
||||
actual = do_autodoc(app, 'class', 'target.Class', options)
|
||||
assert list(filter(lambda l: '::' in l, actual)) == [
|
||||
'.. py:class:: Class(arg)',
|
||||
- ' .. py:attribute:: Class.__annotations__',
|
||||
+ f' .. py:attribute:: Class.{ann_attr_name}',
|
||||
' .. py:attribute:: Class.__dict__',
|
||||
' .. py:method:: Class.__init__(arg)',
|
||||
' .. py:attribute:: Class.__module__',
|
||||
--- a/tests/test_extensions/test_ext_autodoc_configs.py
|
||||
+++ b/tests/test_extensions/test_ext_autodoc_configs.py
|
||||
@@ -1348,6 +1348,10 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
|
||||
# default
|
||||
options = {'members': None}
|
||||
actual = do_autodoc(app, 'module', 'target.autodoc_type_aliases', options)
|
||||
+ if sys.version_info >= (3, 14, 0, 'alpha', 7):
|
||||
+ attr2_typeinfo = ()
|
||||
+ else:
|
||||
+ attr2_typeinfo = (' :type: int',)
|
||||
assert list(actual) == [
|
||||
'',
|
||||
'.. py:module:: target.autodoc_type_aliases',
|
||||
@@ -1368,7 +1372,7 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
|
||||
'',
|
||||
' .. py:attribute:: Foo.attr2',
|
||||
' :module: target.autodoc_type_aliases',
|
||||
- ' :type: int',
|
||||
+ *attr2_typeinfo,
|
||||
'',
|
||||
' docstring',
|
||||
'',
|
||||
@@ -1421,6 +1425,10 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
|
||||
'io.StringIO': 'my.module.StringIO',
|
||||
}
|
||||
actual = do_autodoc(app, 'module', 'target.autodoc_type_aliases', options)
|
||||
+ if sys.version_info >= (3, 14, 0, 'alpha', 7):
|
||||
+ attr2_typeinfo = ()
|
||||
+ else:
|
||||
+ attr2_typeinfo = (' :type: myint',)
|
||||
assert list(actual) == [
|
||||
'',
|
||||
'.. py:module:: target.autodoc_type_aliases',
|
||||
@@ -1441,7 +1449,7 @@ def test_autodoc_type_aliases(app: SphinxTestApp) -> None:
|
||||
'',
|
||||
' .. py:attribute:: Foo.attr2',
|
||||
' :module: target.autodoc_type_aliases',
|
||||
- ' :type: myint',
|
||||
+ *attr2_typeinfo,
|
||||
'',
|
||||
' docstring',
|
||||
'',
|
||||
@@ -1,27 +0,0 @@
|
||||
From 5d3bb2e3b7c47e4ecd540c657018f16b961c821b Mon Sep 17 00:00:00 2001
|
||||
From: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
||||
Date: Tue, 29 Jul 2025 19:44:31 +0200
|
||||
Subject: [PATCH] Support Docutils 0.22 (#13786)
|
||||
|
||||
---
|
||||
CHANGES.rst | 4 ++++
|
||||
doc/changes/7.3.rst | 2 +-
|
||||
pyproject.toml | 2 +-
|
||||
sphinx/transforms/__init__.py | 2 +-
|
||||
sphinx/transforms/references.py | 2 +-
|
||||
tests/test_markup/test_markup.py | 2 +-
|
||||
6 files changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index 75ae0f71a9d..d915f293f3b 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -76,7 +76,7 @@ dependencies = [
|
||||
"sphinxcontrib-serializinghtml>=1.1.9",
|
||||
"Jinja2>=3.1",
|
||||
"Pygments>=2.17",
|
||||
- "docutils>=0.20,<0.22",
|
||||
+ "docutils>=0.20,<0.23",
|
||||
"snowballstemmer>=2.2",
|
||||
"babel>=2.13",
|
||||
"alabaster>=0.7.14",
|
||||
@@ -1,50 +0,0 @@
|
||||
From 68d56109ff50dd81dd31d4a01e3dccbd006c50ee Mon Sep 17 00:00:00 2001
|
||||
From: James Addison <55152140+jayaddison@users.noreply.github.com>
|
||||
Date: Mon, 2 Jun 2025 22:02:48 +0000
|
||||
Subject: [PATCH] Tests: update LaTeX label test expectations from Docutils
|
||||
r10151 (#13610)
|
||||
|
||||
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
||||
---
|
||||
tests/test_builders/test_build_latex.py | 11 +++++++++--
|
||||
1 file changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/test_builders/test_build_latex.py b/tests/test_builders/test_build_latex.py
|
||||
index 0d1c607462d..37e708a021e 100644
|
||||
--- a/tests/test_builders/test_build_latex.py
|
||||
+++ b/tests/test_builders/test_build_latex.py
|
||||
@@ -12,6 +12,7 @@
|
||||
from subprocess import CalledProcessError
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
+import docutils
|
||||
import pygments
|
||||
import pytest
|
||||
|
||||
@@ -1959,10 +1960,16 @@ def test_latex_labels(app: SphinxTestApp) -> None:
|
||||
|
||||
result = (app.outdir / 'projectnamenotset.tex').read_text(encoding='utf8')
|
||||
|
||||
+ # ref: docutils r10151
|
||||
+ if docutils.__version_info__[:2] < (0, 22):
|
||||
+ figure_id, table_id = 'id1', 'id2'
|
||||
+ else:
|
||||
+ figure_id, table_id = 'id2', 'id3'
|
||||
+
|
||||
# figures
|
||||
assert (
|
||||
r'\caption{labeled figure}'
|
||||
- r'\label{\detokenize{index:id1}}'
|
||||
+ r'\label{\detokenize{index:' + figure_id + '}}'
|
||||
r'\label{\detokenize{index:figure2}}'
|
||||
r'\label{\detokenize{index:figure1}}'
|
||||
r'\end{figure}'
|
||||
@@ -1988,7 +1995,7 @@ def test_latex_labels(app: SphinxTestApp) -> None:
|
||||
# tables
|
||||
assert (
|
||||
r'\sphinxcaption{table caption}'
|
||||
- r'\label{\detokenize{index:id2}}'
|
||||
+ r'\label{\detokenize{index:' + table_id + '}}'
|
||||
r'\label{\detokenize{index:table2}}'
|
||||
r'\label{\detokenize{index:table1}}'
|
||||
) in result
|
||||
@@ -1,146 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=${P/_}
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="
|
||||
https://www.sphinx-doc.org/
|
||||
https://github.com/sphinx-doc/sphinx/
|
||||
https://pypi.org/project/Sphinx/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/sphinx-doc/sphinx/archive/v${PV/_}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
||||
IUSE="doc latex"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/alabaster-0.7.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/babel-2.13[${PYTHON_USEDEP}]
|
||||
<dev-python/docutils-0.23[${PYTHON_USEDEP}]
|
||||
>=dev-python/docutils-0.20[${PYTHON_USEDEP}]
|
||||
>=dev-python/imagesize-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja2-3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-23.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-2.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.30.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/roman-numerals-py-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/snowballstemmer-2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-applehelp-1.0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-devhelp-1.0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-htmlhelp-2.0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-jsmath-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-qthelp-1.0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-serializinghtml-1.1.9[${PYTHON_USEDEP}]
|
||||
latex? (
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-luatex
|
||||
app-text/dvipng
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/flit-core-3.11
|
||||
doc? (
|
||||
dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}]
|
||||
media-gfx/graphviz
|
||||
)
|
||||
test? (
|
||||
app-text/dvipng
|
||||
>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/defusedxml-0.7.1[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-67.0[${PYTHON_USEDEP}]
|
||||
dev-texlive/texlive-fontsextra
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-luatex
|
||||
virtual/imagemagick-tools[jpeg,png,svg]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/sphinx-3.2.1-doc-link.patch"
|
||||
"${FILESDIR}/${P}-fix-python3.14.patch" # patch collection, merged upstream
|
||||
# https://github.com/sphinx-doc/sphinx/pull/13610
|
||||
# test assumptions for docutils 0.22
|
||||
"${FILESDIR}"/${P}-testfix-docutils-0.22.patch
|
||||
"${FILESDIR}"/${P}-metadata-docutils-0.22.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# disable internet access
|
||||
sed -i -e 's:^intersphinx_mapping:disabled_&:' \
|
||||
doc/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
# we can't use distutils_enable_sphinx because it would
|
||||
# introduce a dep on itself
|
||||
use doc && build_sphinx doc
|
||||
}
|
||||
|
||||
python_test() {
|
||||
mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
|
||||
local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
|
||||
|
||||
local EPYTEST_DESELECT=(
|
||||
# less interesting failures
|
||||
tests/test_builders/test_build_latex.py::test_build_latex_doc
|
||||
tests/test_extensions/test_ext_math.py::test_imgmath_png
|
||||
tests/test_extensions/test_ext_math.py::test_imgmath_numfig_html
|
||||
)
|
||||
case ${EPYTHON} in
|
||||
pypy3.11)
|
||||
EPYTEST_DESELECT+=(
|
||||
# TODO
|
||||
tests/test_util/test_util_inspect.py::test_is_classmethod_descriptor
|
||||
tests/test_util/test_util_inspect.py::test_is_builtin_classmethod_like
|
||||
# minor repr() differences
|
||||
tests/test_util/test_util_typing.py::test_restify
|
||||
tests/test_util/test_util_typing.py::test_stringify_annotation
|
||||
tests/test_util/test_util_typing.py::test_stringify_type_union_operator
|
||||
# from pypy3 era
|
||||
tests/test_extensions/test_ext_autodoc.py::test_autodoc_exception
|
||||
tests/test_extensions/test_ext_autodoc.py::test_autodoc_ignore_module_all
|
||||
tests/test_extensions/test_ext_autodoc.py::test_autodoc_inherited_members_None
|
||||
tests/test_extensions/test_ext_autodoc.py::test_autodoc_subclass_of_builtin_class
|
||||
tests/test_extensions/test_ext_autodoc.py::test_automethod_for_builtin
|
||||
tests/test_extensions/test_ext_autodoc.py::test_cython
|
||||
tests/test_extensions/test_ext_autodoc.py::test_format_signature
|
||||
tests/test_extensions/test_ext_autodoc.py::test_partialfunction
|
||||
tests/test_extensions/test_ext_autodoc_autoclass.py::test_autodoc_process_bases
|
||||
tests/test_extensions/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type
|
||||
tests/test_extensions/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type
|
||||
tests/test_extensions/test_ext_autodoc_autofunction.py::test_builtin_function
|
||||
tests/test_extensions/test_ext_autodoc_autofunction.py::test_methoddescriptor
|
||||
tests/test_extensions/test_ext_autodoc_automodule.py::test_automodule_inherited_members
|
||||
tests/test_extensions/test_ext_autodoc_preserve_defaults.py::test_preserve_defaults_special_constructs
|
||||
tests/test_extensions/test_ext_autosummary.py::test_autosummary_generate_content_for_module
|
||||
tests/test_extensions/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped
|
||||
tests/test_util/test_util_inspect.py::test_isattributedescriptor
|
||||
tests/test_util/test_util_inspect.py::test_signature
|
||||
tests/test_util/test_util_typing.py::test_is_invalid_builtin_class
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
||||
# note: pytest-xdist causes random test failures
|
||||
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
epytest -p rerunfailures --reruns=5
|
||||
}
|
||||
@@ -1,141 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=${P/_}
|
||||
DESCRIPTION="Python documentation generator"
|
||||
HOMEPAGE="
|
||||
https://www.sphinx-doc.org/
|
||||
https://github.com/sphinx-doc/sphinx/
|
||||
https://pypi.org/project/Sphinx/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/sphinx-doc/sphinx/archive/v${PV/_}.tar.gz
|
||||
-> ${MY_P}.gh.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
if [[ ${PV} != *_rc* ]]; then
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
||||
fi
|
||||
IUSE="doc latex"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/alabaster-0.7.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/babel-2.13[${PYTHON_USEDEP}]
|
||||
<dev-python/docutils-0.23[${PYTHON_USEDEP}]
|
||||
>=dev-python/docutils-0.20[${PYTHON_USEDEP}]
|
||||
>=dev-python/imagesize-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/jinja2-3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-23.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-2.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.30.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/roman-numerals-1.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/snowballstemmer-2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-applehelp-1.0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-devhelp-1.0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-htmlhelp-2.0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-jsmath-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-qthelp-1.0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinxcontrib-serializinghtml-1.1.9[${PYTHON_USEDEP}]
|
||||
latex? (
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-luatex
|
||||
app-text/dvipng
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/flit-core-3.11
|
||||
doc? (
|
||||
dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}]
|
||||
media-gfx/graphviz
|
||||
)
|
||||
test? (
|
||||
app-text/dvipng
|
||||
>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/defusedxml-0.7.1[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-67.0[${PYTHON_USEDEP}]
|
||||
dev-texlive/texlive-fontsextra
|
||||
dev-texlive/texlive-latexextra
|
||||
dev-texlive/texlive-luatex
|
||||
virtual/imagemagick-tools[jpeg,png,svg]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/sphinx-3.2.1-doc-link.patch"
|
||||
)
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
EPYTEST_RERUNS=5
|
||||
# EPYTEST_XDIST breaks stuff
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# disable internet access
|
||||
sed -i -e 's:^intersphinx_mapping:disabled_&:' \
|
||||
doc/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
# we can't use distutils_enable_sphinx because it would
|
||||
# introduce a dep on itself
|
||||
use doc && build_sphinx doc
|
||||
}
|
||||
|
||||
python_test() {
|
||||
mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
|
||||
local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
|
||||
|
||||
local EPYTEST_DESELECT=()
|
||||
case ${EPYTHON} in
|
||||
pypy3.11)
|
||||
EPYTEST_DESELECT+=(
|
||||
# TODO
|
||||
tests/test_util/test_util_inspect.py::test_is_classmethod_descriptor
|
||||
tests/test_util/test_util_inspect.py::test_is_builtin_classmethod_like
|
||||
# minor repr() differences
|
||||
tests/test_util/test_util_typing.py::test_restify
|
||||
tests/test_util/test_util_typing.py::test_stringify_annotation
|
||||
tests/test_util/test_util_typing.py::test_stringify_type_union_operator
|
||||
# from pypy3 era
|
||||
tests/test_ext_autodoc/test_ext_autodoc.py::test_autodoc_exception
|
||||
tests/test_ext_autodoc/test_ext_autodoc.py::test_autodoc_ignore_module_all
|
||||
tests/test_ext_autodoc/test_ext_autodoc.py::test_autodoc_inherited_members_None
|
||||
tests/test_ext_autodoc/test_ext_autodoc.py::test_autodoc_subclass_of_builtin_class
|
||||
tests/test_ext_autodoc/test_ext_autodoc.py::test_automethod_for_builtin
|
||||
tests/test_ext_autodoc/test_ext_autodoc.py::test_cython
|
||||
tests/test_ext_autodoc/test_ext_autodoc.py::test_partialfunction
|
||||
tests/test_ext_autodoc/test_ext_autodoc_autoclass.py::test_autodoc_process_bases
|
||||
tests/test_ext_autodoc/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type
|
||||
tests/test_ext_autodoc/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type
|
||||
tests/test_ext_autodoc/test_ext_autodoc_autofunction.py::test_builtin_function
|
||||
tests/test_ext_autodoc/test_ext_autodoc_autofunction.py::test_methoddescriptor
|
||||
tests/test_ext_autodoc/test_ext_autodoc_automodule.py::test_automodule_inherited_members
|
||||
tests/test_ext_autodoc/test_ext_autodoc_preserve_defaults.py::test_preserve_defaults_special_constructs
|
||||
tests/test_ext_autodoc/test_ext_autodoc_signatures.py::test_format_class_signatures_text_signature
|
||||
tests/test_ext_autodoc/test_ext_autodoc_signatures.py::test_format_class_signatures_no_text_signature
|
||||
tests/test_ext_autodoc/test_ext_autodoc_signatures.py::test_format_method_signatures_error_handling
|
||||
tests/test_ext_autosummary/test_ext_autosummary.py::test_autosummary_generate_content_for_module
|
||||
tests/test_ext_autosummary/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped
|
||||
tests/test_util/test_util_inspect.py::test_isattributedescriptor
|
||||
tests/test_util/test_util_inspect.py::test_signature
|
||||
tests/test_util/test_util_typing.py::test_is_invalid_builtin_class
|
||||
)
|
||||
;;
|
||||
esac
|
||||
|
||||
epytest
|
||||
}
|
||||
Reference in New Issue
Block a user