Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f33b9fe61 | |||
| 20fdada602 | |||
| 24df39f7cd | |||
| 8571b9bd3d | |||
| 8353038617 | |||
| 0fb7e12c23 |
@@ -0,0 +1 @@
|
|||||||
|
Sphinx-0.6.4.tar.gz
|
||||||
-49
@@ -1,49 +0,0 @@
|
|||||||
/Sphinx-1.2.3.tar.gz
|
|
||||||
/Sphinx-1.3.1.tar.gz
|
|
||||||
/Sphinx-1.4.4.tar.gz
|
|
||||||
/Sphinx-1.4.5.tar.gz
|
|
||||||
/Sphinx-1.4.6.tar.gz
|
|
||||||
/Sphinx-1.4.8.tar.gz
|
|
||||||
/Sphinx-1.4.9.tar.gz
|
|
||||||
/Sphinx-1.5.1.tar.gz
|
|
||||||
/Sphinx-1.5.2.tar.gz
|
|
||||||
/Sphinx-1.6.3.tar.gz
|
|
||||||
/Sphinx-1.6.4.tar.gz
|
|
||||||
/Sphinx-1.6.5.tar.gz
|
|
||||||
/Sphinx-1.6.6.tar.gz
|
|
||||||
/Sphinx-1.7.1.tar.gz
|
|
||||||
/Sphinx-1.7.2.tar.gz
|
|
||||||
/Sphinx-1.7.5.tar.gz
|
|
||||||
/Sphinx-1.7.6.tar.gz
|
|
||||||
/Sphinx-1.8.4.tar.gz
|
|
||||||
/Sphinx-2.0.0b1.tar.gz
|
|
||||||
/Sphinx-2.0.0b2.tar.gz
|
|
||||||
/Sphinx-2.0.1.tar.gz
|
|
||||||
/Sphinx-2.1.2.tar.gz
|
|
||||||
/Sphinx-2.2.0.tar.gz
|
|
||||||
/Sphinx-2.2.2.tar.gz
|
|
||||||
/Sphinx-3.1.1.tar.gz
|
|
||||||
/Sphinx-3.1.2.tar.gz
|
|
||||||
/Sphinx-3.2.1.tar.gz
|
|
||||||
/Sphinx-3.3.1.tar.gz
|
|
||||||
/Sphinx-3.4.3.tar.gz
|
|
||||||
/Sphinx-3.5.2.tar.gz
|
|
||||||
/Sphinx-3.5.3.tar.gz
|
|
||||||
/Sphinx-3.5.4.tar.gz
|
|
||||||
/Sphinx-4.0.2.tar.gz
|
|
||||||
/Sphinx-4.1.2.tar.gz
|
|
||||||
/Sphinx-4.2.0.tar.gz
|
|
||||||
/Sphinx-4.3.0.tar.gz
|
|
||||||
/Sphinx-4.3.1.tar.gz
|
|
||||||
/Sphinx-4.4.0.tar.gz
|
|
||||||
/Sphinx-4.5.0.tar.gz
|
|
||||||
/Sphinx-5.0.2.tar.gz
|
|
||||||
/Sphinx-5.1.1.tar.gz
|
|
||||||
/Sphinx-5.2.3.tar.gz
|
|
||||||
/Sphinx-5.3.0.tar.gz
|
|
||||||
/Sphinx-6.1.3.tar.gz
|
|
||||||
/Sphinx-6.2.1.tar.gz
|
|
||||||
/Sphinx-7.0.1.tar.gz
|
|
||||||
/sphinx-7.1.2.tar.gz
|
|
||||||
/sphinx-7.2.6.tar.gz
|
|
||||||
/sphinx-7.3.7.tar.gz
|
|
||||||
-37
@@ -1,37 +0,0 @@
|
|||||||
From 12f63b3a0425841f2bdcda3f08e656453ea59297 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
|
||||||
Date: Wed, 8 May 2024 14:38:35 +0200
|
|
||||||
Subject: [PATCH] Move `defusedxml` import into the function using it
|
|
||||||
|
|
||||||
Import `defusedxml` inside the `etree_parse()` function rather than
|
|
||||||
in global scope of `sphinx.testing.util`. This makes it possible
|
|
||||||
for reverse dependencies (such as `breathe`) to use this module without
|
|
||||||
adding an unnecessary transitive dependency on `defusedxml` when it's
|
|
||||||
not actually used.
|
|
||||||
|
|
||||||
See also issue #12339.
|
|
||||||
---
|
|
||||||
sphinx/testing/util.py | 3 ++-
|
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/sphinx/testing/util.py b/sphinx/testing/util.py
|
|
||||||
index d1de8ea2b74..b2df709eea8 100644
|
|
||||||
--- a/sphinx/testing/util.py
|
|
||||||
+++ b/sphinx/testing/util.py
|
|
||||||
@@ -11,7 +11,6 @@
|
|
||||||
from types import MappingProxyType
|
|
||||||
from typing import TYPE_CHECKING
|
|
||||||
|
|
||||||
-from defusedxml.ElementTree import parse as xml_parse
|
|
||||||
from docutils import nodes
|
|
||||||
from docutils.parsers.rst import directives, roles
|
|
||||||
|
|
||||||
@@ -73,6 +72,8 @@ def assert_node(node: Node, cls: Any = None, xpath: str = "", **kwargs: Any) ->
|
|
||||||
# keep this to restrict the API usage and to have a correct return type
|
|
||||||
def etree_parse(path: str | os.PathLike[str]) -> ElementTree:
|
|
||||||
"""Parse a file into a (safe) XML element tree."""
|
|
||||||
+ from defusedxml.ElementTree import parse as xml_parse
|
|
||||||
+
|
|
||||||
return xml_parse(path)
|
|
||||||
|
|
||||||
|
|
||||||
-145
@@ -1,145 +0,0 @@
|
|||||||
From 14da0bb6073a1ec60432340035d17948b3adb22a Mon Sep 17 00:00:00 2001
|
|
||||||
From: Chris Sewell <chrisj_sewell@hotmail.com>
|
|
||||||
Date: Wed, 15 May 2024 06:20:54 +0200
|
|
||||||
Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Fix=20python=203.13=20tests?=
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
---
|
|
||||||
tests/test_extensions/test_ext_autodoc.py | 2 +-
|
|
||||||
.../test_ext_autodoc_configs.py | 31 +++++++++++++------
|
|
||||||
2 files changed, 22 insertions(+), 11 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/tests/test_extensions/test_ext_autodoc.py b/tests/test_extensions/test_ext_autodoc.py
|
|
||||||
index a88d111bdb3..5a2e91cb5e9 100644
|
|
||||||
--- a/tests/test_extensions/test_ext_autodoc.py
|
|
||||||
+++ b/tests/test_extensions/test_ext_autodoc.py
|
|
||||||
@@ -838,7 +838,7 @@ def test_autodoc_special_members(app):
|
|
||||||
"special-members": None,
|
|
||||||
}
|
|
||||||
if sys.version_info >= (3, 13, 0, 'alpha', 5):
|
|
||||||
- options["exclude-members"] = "__static_attributes__"
|
|
||||||
+ options["exclude-members"] = "__static_attributes__,__firstlineno__"
|
|
||||||
actual = do_autodoc(app, 'class', 'target.Class', options)
|
|
||||||
assert list(filter(lambda l: '::' in l, actual)) == [
|
|
||||||
'.. py:class:: Class(arg)',
|
|
||||||
diff --git a/tests/test_extensions/test_ext_autodoc_configs.py b/tests/test_extensions/test_ext_autodoc_configs.py
|
|
||||||
index 6c2af5a0652..1262b15162b 100644
|
|
||||||
--- a/tests/test_extensions/test_ext_autodoc_configs.py
|
|
||||||
+++ b/tests/test_extensions/test_ext_autodoc_configs.py
|
|
||||||
@@ -679,6 +679,10 @@ def test_autodoc_typehints_signature(app):
|
|
||||||
type_o = "~typing.Any | None"
|
|
||||||
else:
|
|
||||||
type_o = "~typing.Any"
|
|
||||||
+ if sys.version_info[:2] >= (3, 13):
|
|
||||||
+ type_ppp = "pathlib._local.PurePosixPath"
|
|
||||||
+ else:
|
|
||||||
+ type_ppp = "pathlib.PurePosixPath"
|
|
||||||
|
|
||||||
options = {"members": None,
|
|
||||||
"undoc-members": None}
|
|
||||||
@@ -703,7 +707,7 @@ def test_autodoc_typehints_signature(app):
|
|
||||||
'',
|
|
||||||
'.. py:data:: CONST3',
|
|
||||||
' :module: target.typehints',
|
|
||||||
- ' :type: ~pathlib.PurePosixPath',
|
|
||||||
+ f' :type: ~{type_ppp}',
|
|
||||||
" :value: PurePosixPath('/a/b/c')",
|
|
||||||
'',
|
|
||||||
' docstring',
|
|
||||||
@@ -726,7 +730,7 @@ def test_autodoc_typehints_signature(app):
|
|
||||||
'',
|
|
||||||
' .. py:attribute:: Math.CONST3',
|
|
||||||
' :module: target.typehints',
|
|
||||||
- ' :type: ~pathlib.PurePosixPath',
|
|
||||||
+ f' :type: ~{type_ppp}',
|
|
||||||
" :value: PurePosixPath('/a/b/c')",
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
@@ -748,7 +752,7 @@ def test_autodoc_typehints_signature(app):
|
|
||||||
'',
|
|
||||||
' .. py:property:: Math.path',
|
|
||||||
' :module: target.typehints',
|
|
||||||
- ' :type: ~pathlib.PurePosixPath',
|
|
||||||
+ f' :type: ~{type_ppp}',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
' .. py:property:: Math.prop',
|
|
||||||
@@ -773,7 +777,7 @@ def test_autodoc_typehints_signature(app):
|
|
||||||
'',
|
|
||||||
' docstring',
|
|
||||||
'',
|
|
||||||
- " alias of TypeVar('T', bound=\\ :py:class:`~pathlib.PurePosixPath`)",
|
|
||||||
+ f" alias of TypeVar('T', bound=\\ :py:class:`~{type_ppp}`)",
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'.. py:function:: complex_func(arg1: str, arg2: List[int], arg3: Tuple[int, '
|
|
||||||
@@ -802,6 +806,10 @@ def test_autodoc_typehints_signature(app):
|
|
||||||
@pytest.mark.sphinx('html', testroot='ext-autodoc',
|
|
||||||
confoverrides={'autodoc_typehints': "none"})
|
|
||||||
def test_autodoc_typehints_none(app):
|
|
||||||
+ if sys.version_info[:2] >= (3, 13):
|
|
||||||
+ type_ppp = "pathlib._local.PurePosixPath"
|
|
||||||
+ else:
|
|
||||||
+ type_ppp = "pathlib.PurePosixPath"
|
|
||||||
options = {"members": None,
|
|
||||||
"undoc-members": None}
|
|
||||||
actual = do_autodoc(app, 'module', 'target.typehints', options)
|
|
||||||
@@ -887,7 +895,7 @@ def test_autodoc_typehints_none(app):
|
|
||||||
'',
|
|
||||||
' docstring',
|
|
||||||
'',
|
|
||||||
- " alias of TypeVar('T', bound=\\ :py:class:`~pathlib.PurePosixPath`)",
|
|
||||||
+ f" alias of TypeVar('T', bound=\\ :py:class:`~{type_ppp}`)",
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'.. py:function:: complex_func(arg1, arg2, arg3=None, *args, **kwargs)',
|
|
||||||
@@ -1417,7 +1425,10 @@ def test_autodoc_typehints_format_fully_qualified(app):
|
|
||||||
type_o = "typing.Any | None"
|
|
||||||
else:
|
|
||||||
type_o = "typing.Any"
|
|
||||||
-
|
|
||||||
+ if sys.version_info[:2] >= (3, 13):
|
|
||||||
+ type_ppp = "pathlib._local.PurePosixPath"
|
|
||||||
+ else:
|
|
||||||
+ type_ppp = "pathlib.PurePosixPath"
|
|
||||||
options = {"members": None,
|
|
||||||
"undoc-members": None}
|
|
||||||
actual = do_autodoc(app, 'module', 'target.typehints', options)
|
|
||||||
@@ -1441,7 +1452,7 @@ def test_autodoc_typehints_format_fully_qualified(app):
|
|
||||||
'',
|
|
||||||
'.. py:data:: CONST3',
|
|
||||||
' :module: target.typehints',
|
|
||||||
- ' :type: pathlib.PurePosixPath',
|
|
||||||
+ f' :type: {type_ppp}',
|
|
||||||
" :value: PurePosixPath('/a/b/c')",
|
|
||||||
'',
|
|
||||||
' docstring',
|
|
||||||
@@ -1464,7 +1475,7 @@ def test_autodoc_typehints_format_fully_qualified(app):
|
|
||||||
'',
|
|
||||||
' .. py:attribute:: Math.CONST3',
|
|
||||||
' :module: target.typehints',
|
|
||||||
- ' :type: pathlib.PurePosixPath',
|
|
||||||
+ f' :type: {type_ppp}',
|
|
||||||
" :value: PurePosixPath('/a/b/c')",
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
@@ -1486,7 +1497,7 @@ def test_autodoc_typehints_format_fully_qualified(app):
|
|
||||||
'',
|
|
||||||
' .. py:property:: Math.path',
|
|
||||||
' :module: target.typehints',
|
|
||||||
- ' :type: pathlib.PurePosixPath',
|
|
||||||
+ f' :type: {type_ppp}',
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
' .. py:property:: Math.prop',
|
|
||||||
@@ -1511,7 +1522,7 @@ def test_autodoc_typehints_format_fully_qualified(app):
|
|
||||||
'',
|
|
||||||
' docstring',
|
|
||||||
'',
|
|
||||||
- " alias of TypeVar('T', bound=\\ :py:class:`pathlib.PurePosixPath`)",
|
|
||||||
+ f" alias of TypeVar('T', bound=\\ :py:class:`{type_ppp}`)",
|
|
||||||
'',
|
|
||||||
'',
|
|
||||||
'.. py:function:: complex_func(arg1: str, arg2: List[int], arg3: Tuple[int, '
|
|
||||||
@@ -1,205 +0,0 @@
|
|||||||
From b74128966fe4edf77a0c3a7936f6a6216833c9ed Mon Sep 17 00:00:00 2001
|
|
||||||
From: Karolina Surma <ksurma@redhat.com>
|
|
||||||
Date: Thu, 25 Apr 2024 15:58:03 +0200
|
|
||||||
Subject: [PATCH] Make the first party extensions optional, add [extensions]
|
|
||||||
extra
|
|
||||||
|
|
||||||
|
|
||||||
Co-authored-by: Miro Hrončok <miro@hroncok.cz>
|
|
||||||
---
|
|
||||||
pyproject.toml | 33 ++++++++++++++++----
|
|
||||||
sphinx/application.py | 6 ++--
|
|
||||||
sphinx/registry.py | 9 ++++--
|
|
||||||
sphinx/testing/fixtures.py | 7 +++++
|
|
||||||
tests/test_builders/test_build_html_maths.py | 3 ++
|
|
||||||
tests/test_writers/test_api_translator.py | 2 ++
|
|
||||||
6 files changed, 48 insertions(+), 12 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/pyproject.toml b/pyproject.toml
|
|
||||||
index 8aa49aa..10fa20e 100644
|
|
||||||
--- a/pyproject.toml
|
|
||||||
+++ b/pyproject.toml
|
|
||||||
@@ -56,12 +56,6 @@ classifiers = [
|
|
||||||
"Topic :: Utilities",
|
|
||||||
]
|
|
||||||
dependencies = [
|
|
||||||
- "sphinxcontrib-applehelp",
|
|
||||||
- "sphinxcontrib-devhelp",
|
|
||||||
- "sphinxcontrib-jsmath",
|
|
||||||
- "sphinxcontrib-htmlhelp>=2.0.0",
|
|
||||||
- "sphinxcontrib-serializinghtml>=1.1.9",
|
|
||||||
- "sphinxcontrib-qthelp",
|
|
||||||
"Jinja2>=3.0",
|
|
||||||
"Pygments>=2.14",
|
|
||||||
"docutils>=0.18.1,<0.22",
|
|
||||||
@@ -78,8 +72,35 @@ dependencies = [
|
|
||||||
dynamic = ["version"]
|
|
||||||
|
|
||||||
[project.optional-dependencies]
|
|
||||||
+applehelp = [
|
|
||||||
+ "sphinxcontrib-applehelp",
|
|
||||||
+]
|
|
||||||
+devhelp = [
|
|
||||||
+ "sphinxcontrib-devhelp",
|
|
||||||
+]
|
|
||||||
+jsmath = [
|
|
||||||
+ "sphinxcontrib-jsmath",
|
|
||||||
+]
|
|
||||||
+htmlhelp = [
|
|
||||||
+ "sphinxcontrib-htmlhelp>=2.0.0",
|
|
||||||
+]
|
|
||||||
+serializinghtml = [
|
|
||||||
+ "sphinxcontrib-serializinghtml>=1.1.9",
|
|
||||||
+]
|
|
||||||
+qthelp = [
|
|
||||||
+ "sphinxcontrib-qthelp",
|
|
||||||
+]
|
|
||||||
+extensions = [
|
|
||||||
+ "sphinx[applehelp]",
|
|
||||||
+ "sphinx[devhelp]",
|
|
||||||
+ "sphinx[jsmath]",
|
|
||||||
+ "sphinx[htmlhelp]",
|
|
||||||
+ "sphinx[serializinghtml]",
|
|
||||||
+ "sphinx[qthelp]",
|
|
||||||
+]
|
|
||||||
docs = [
|
|
||||||
"sphinxcontrib-websupport",
|
|
||||||
+ "sphinx[extensions]",
|
|
||||||
]
|
|
||||||
lint = [
|
|
||||||
"flake8>=3.5.0",
|
|
||||||
diff --git a/sphinx/application.py b/sphinx/application.py
|
|
||||||
index 7d16d9a..2a71074 100644
|
|
||||||
--- a/sphinx/application.py
|
|
||||||
+++ b/sphinx/application.py
|
|
||||||
@@ -222,7 +222,7 @@ class Sphinx:
|
|
||||||
# load all built-in extension modules, first-party extension modules,
|
|
||||||
# and first-party themes
|
|
||||||
for extension in builtin_extensions:
|
|
||||||
- self.setup_extension(extension)
|
|
||||||
+ self.setup_extension(extension, skip_nonimportable=extension in _first_party_extensions)
|
|
||||||
|
|
||||||
# load all user-given extension modules
|
|
||||||
for extension in self.config.extensions:
|
|
||||||
@@ -391,7 +391,7 @@ class Sphinx:
|
|
||||||
|
|
||||||
# ---- general extensibility interface -------------------------------------
|
|
||||||
|
|
||||||
- def setup_extension(self, extname: str) -> None:
|
|
||||||
+ def setup_extension(self, extname: str, skip_nonimportable: bool = False) -> None:
|
|
||||||
"""Import and setup a Sphinx extension module.
|
|
||||||
|
|
||||||
Load the extension given by the module *name*. Use this if your
|
|
||||||
@@ -399,7 +399,7 @@ class Sphinx:
|
|
||||||
called twice.
|
|
||||||
"""
|
|
||||||
logger.debug('[app] setting up extension: %r', extname)
|
|
||||||
- self.registry.load_extension(self, extname)
|
|
||||||
+ self.registry.load_extension(self, extname, skip_nonimportable=skip_nonimportable)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def require_sphinx(version: tuple[int, int] | str) -> None:
|
|
||||||
diff --git a/sphinx/registry.py b/sphinx/registry.py
|
|
||||||
index 7887858..ca95960 100644
|
|
||||||
--- a/sphinx/registry.py
|
|
||||||
+++ b/sphinx/registry.py
|
|
||||||
@@ -436,7 +436,7 @@ class SphinxComponentRegistry:
|
|
||||||
def add_html_theme(self, name: str, theme_path: str) -> None:
|
|
||||||
self.html_themes[name] = theme_path
|
|
||||||
|
|
||||||
- def load_extension(self, app: Sphinx, extname: str) -> None:
|
|
||||||
+ def load_extension(self, app: Sphinx, extname: str, skip_nonimportable: bool = False) -> None:
|
|
||||||
"""Load a Sphinx extension."""
|
|
||||||
if extname in app.extensions: # already loaded
|
|
||||||
return
|
|
||||||
@@ -452,9 +452,12 @@ class SphinxComponentRegistry:
|
|
||||||
try:
|
|
||||||
mod = import_module(extname)
|
|
||||||
except ImportError as err:
|
|
||||||
+ msg = __('Could not import extension %s')
|
|
||||||
+ if skip_nonimportable:
|
|
||||||
+ logger.debug(msg % extname)
|
|
||||||
+ return
|
|
||||||
logger.verbose(__('Original exception:\n') + traceback.format_exc())
|
|
||||||
- raise ExtensionError(__('Could not import extension %s') % extname,
|
|
||||||
- err) from err
|
|
||||||
+ raise ExtensionError(msg % extname, err) from err
|
|
||||||
|
|
||||||
setup: _ExtensionSetupFunc | None = getattr(mod, 'setup', None)
|
|
||||||
if setup is None:
|
|
||||||
diff --git a/sphinx/testing/fixtures.py b/sphinx/testing/fixtures.py
|
|
||||||
index 6e1a122..f3fe743 100644
|
|
||||||
--- a/sphinx/testing/fixtures.py
|
|
||||||
+++ b/sphinx/testing/fixtures.py
|
|
||||||
@@ -31,6 +31,7 @@ DEFAULT_ENABLED_MARKERS = [
|
|
||||||
'keep_going=False, builddir=None, docutils_conf=None'
|
|
||||||
'): arguments to initialize the sphinx test application.'
|
|
||||||
),
|
|
||||||
+ 'sphinxcontrib(...): required sphinxcontrib.* extensions',
|
|
||||||
'test_params(shared_result=...): test parameters.',
|
|
||||||
]
|
|
||||||
|
|
||||||
@@ -80,6 +81,12 @@ def app_params(
|
|
||||||
Parameters that are specified by 'pytest.mark.sphinx' for
|
|
||||||
sphinx.application.Sphinx initialization
|
|
||||||
"""
|
|
||||||
+
|
|
||||||
+ # ##### process pytest.mark.sphinxcontrib
|
|
||||||
+ for info in reversed(list(request.node.iter_markers("sphinxcontrib"))):
|
|
||||||
+ for arg in info.args:
|
|
||||||
+ pytest.importorskip("sphinxcontrib." + arg)
|
|
||||||
+
|
|
||||||
# ##### process pytest.mark.sphinx
|
|
||||||
|
|
||||||
pargs: dict[int, Any] = {}
|
|
||||||
diff --git a/tests/test_builders/test_build_html_maths.py b/tests/test_builders/test_build_html_maths.py
|
|
||||||
index 900846b..664c86e 100644
|
|
||||||
--- a/tests/test_builders/test_build_html_maths.py
|
|
||||||
+++ b/tests/test_builders/test_build_html_maths.py
|
|
||||||
@@ -20,6 +20,7 @@ def test_html_math_renderer_is_imgmath(app, status, warning):
|
|
||||||
assert app.builder.math_renderer_name == 'imgmath'
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.sphinxcontrib('serializinghtml', 'jsmath')
|
|
||||||
@pytest.mark.sphinx('html', testroot='basic',
|
|
||||||
confoverrides={'extensions': ['sphinxcontrib.jsmath',
|
|
||||||
'sphinx.ext.imgmath']})
|
|
||||||
@@ -40,6 +41,7 @@ def test_html_math_renderer_is_duplicated2(app, status, warning):
|
|
||||||
assert app.builder.math_renderer_name == 'imgmath' # The another one is chosen
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.sphinxcontrib('jsmath')
|
|
||||||
@pytest.mark.sphinx('html', testroot='basic',
|
|
||||||
confoverrides={'extensions': ['sphinxcontrib.jsmath',
|
|
||||||
'sphinx.ext.imgmath'],
|
|
||||||
@@ -48,6 +50,7 @@ def test_html_math_renderer_is_chosen(app, status, warning):
|
|
||||||
assert app.builder.math_renderer_name == 'imgmath'
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.sphinxcontrib('jsmath')
|
|
||||||
@pytest.mark.sphinx('html', testroot='basic',
|
|
||||||
confoverrides={'extensions': ['sphinxcontrib.jsmath',
|
|
||||||
'sphinx.ext.mathjax'],
|
|
||||||
diff --git a/tests/test_writers/test_api_translator.py b/tests/test_writers/test_api_translator.py
|
|
||||||
index 9f2bd44..81575b7 100644
|
|
||||||
--- a/tests/test_writers/test_api_translator.py
|
|
||||||
+++ b/tests/test_writers/test_api_translator.py
|
|
||||||
@@ -36,6 +36,7 @@ def test_singlehtml_set_translator_for_singlehtml(app, status, warning):
|
|
||||||
assert translator_class.__name__ == 'ConfSingleHTMLTranslator'
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.sphinxcontrib('serializinghtml')
|
|
||||||
@pytest.mark.sphinx('pickle', testroot='api-set-translator')
|
|
||||||
def test_pickle_set_translator_for_pickle(app, status, warning):
|
|
||||||
translator_class = app.builder.get_translator_class()
|
|
||||||
@@ -43,6 +44,7 @@ def test_pickle_set_translator_for_pickle(app, status, warning):
|
|
||||||
assert translator_class.__name__ == 'ConfPickleTranslator'
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.sphinxcontrib('serializinghtml')
|
|
||||||
@pytest.mark.sphinx('json', testroot='api-set-translator')
|
|
||||||
def test_json_set_translator_for_json(app, status, warning):
|
|
||||||
translator_class = app.builder.get_translator_class()
|
|
||||||
--
|
|
||||||
2.44.0
|
|
||||||
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# Makefile for source rpm: python-sphinx
|
||||||
|
# $Id$
|
||||||
|
NAME := python-sphinx
|
||||||
|
SPECFILE = $(firstword $(wildcard *.spec))
|
||||||
|
|
||||||
|
define find-makefile-common
|
||||||
|
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||||
|
|
||||||
|
ifeq ($(MAKEFILE_COMMON),)
|
||||||
|
# attept a checkout
|
||||||
|
define checkout-makefile-common
|
||||||
|
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(MAKEFILE_COMMON)
|
||||||
@@ -1,608 +0,0 @@
|
|||||||
* Wed Jan 24 2024 Karolina Surma <ksurma@redhat.com> - 1:7.2.6-6
|
|
||||||
- Suppress traceback when importing the weakened sphinxcontrib* dependencies
|
|
||||||
|
|
||||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:7.2.6-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Dec 12 2023 Karolina Surma <ksurma@redhat.com> - 1:7.2.6-4
|
|
||||||
- Fix the tests run when building with Python 3.11.7, 3.12.1 and later
|
|
||||||
|
|
||||||
* Thu Nov 16 2023 Miro Hrončok <mhroncok@redhat.com> - 1:7.2.6-3
|
|
||||||
- On Fedora, BuildRequire the sphinxcontrib packages to build the documentation
|
|
||||||
|
|
||||||
* Wed Nov 08 2023 Miro Hrončok <mhroncok@redhat.com> - 1:7.2.6-2
|
|
||||||
- Weaken the runtime dependency on:
|
|
||||||
- python3-sphinxcontrib-applehelp
|
|
||||||
- python3-sphinxcontrib-devhelp
|
|
||||||
- python3-sphinxcontrib-jsmath
|
|
||||||
- python3-sphinxcontrib-htmlhelp
|
|
||||||
- python3-sphinxcontrib-serializinghtml
|
|
||||||
- python3-sphinxcontrib-qthelp
|
|
||||||
- Packages that want to use them during build need to BuildRequire them explicitly
|
|
||||||
|
|
||||||
* Thu Oct 26 2023 Karolina Surma <ksurma@redhat.com> - 1:7.2.6-1
|
|
||||||
- Update to 7.2.6
|
|
||||||
- Fixes rhbz#2232469
|
|
||||||
|
|
||||||
* Thu Sep 21 2023 Karolina Surma <ksurma@redhat.com> - 1:7.1.2-2
|
|
||||||
- Fix FTBFS with Pygments 2.16+
|
|
||||||
|
|
||||||
* Mon Aug 14 2023 Karolina Surma <ksurma@redhat.com> - 1:7.1.2-1
|
|
||||||
- Update to 7.1.2
|
|
||||||
- Fixes rhbz#2225274
|
|
||||||
|
|
||||||
* Mon Aug 07 2023 Karolina Surma <ksurma@redhat.com> - 1:7.0.1-1
|
|
||||||
- Update to 7.0.1
|
|
||||||
|
|
||||||
* Thu Jul 27 2023 Miro Hrončok <mhroncok@redhat.com> - 1:6.2.1-4
|
|
||||||
- Don't use filelock to test this package on RHEL
|
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:6.2.1-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 13 2023 Karolina Surma <ksurma@redhat.com> - 1:6.2.1-2
|
|
||||||
- Don't use websupport to build documentation on RHEL
|
|
||||||
|
|
||||||
* Mon Jun 26 2023 Karolina Surma <ksurma@redhat.com> - 1:6.2.1-1
|
|
||||||
- Update to 6.2.1
|
|
||||||
- Fixes rhbz#2188968
|
|
||||||
|
|
||||||
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 1:6.1.3-4
|
|
||||||
- Rebuilt for Python 3.12
|
|
||||||
|
|
||||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1:6.1.3-3
|
|
||||||
- Bootstrap for Python 3.12
|
|
||||||
|
|
||||||
* Wed May 31 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1:6.1.3-2
|
|
||||||
- Avoid html5lib test dependency in RHEL builds
|
|
||||||
|
|
||||||
* Fri Mar 10 2023 Karolina Surma <ksurma@redhat.com> - 1:6.1.3-1
|
|
||||||
- Update to 6.1.3
|
|
||||||
- Fixes rhbz#2135122
|
|
||||||
|
|
||||||
* Thu Mar 09 2023 Karolina Surma <ksurma@redhat.com> - 1:5.3.0-4
|
|
||||||
- Fix tests related to missing setuptools and Babel 2.12
|
|
||||||
- Fixes rhbz#2176685
|
|
||||||
|
|
||||||
* Tue Jan 31 2023 Karolina Surma <ksurma@redhat.com> - 1:5.3.0-3
|
|
||||||
- Fix tests with python-pygments 2.14+
|
|
||||||
|
|
||||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:5.3.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Nov 08 2022 Karolina Surma <ksurma@redhat.com> - 1:5.3.0-1
|
|
||||||
- Update to 5.3.0
|
|
||||||
- Fixes rhbz#2129546
|
|
||||||
|
|
||||||
* Mon Aug 15 2022 Karolina Surma <ksurma@redhat.com> - 1:5.1.1-1
|
|
||||||
- Update to 5.1.1
|
|
||||||
- Fixes rhbz#2110473
|
|
||||||
- Remove reST documentation from the -doc package, ship only HTML
|
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:5.0.2-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jun 21 2022 Karolina Surma <ksurma@redhat.com> - 1:5.0.2-1
|
|
||||||
- Update to 5.0.2
|
|
||||||
|
|
||||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:4.5.0-3
|
|
||||||
- Rebuilt for Python 3.11
|
|
||||||
|
|
||||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:4.5.0-2
|
|
||||||
- Bootstrap for Python 3.11
|
|
||||||
|
|
||||||
* Fri Apr 01 2022 Karolina Surma <ksurma@redhat.com> - 1:4.5.0-1
|
|
||||||
- Update to 4.5.0
|
|
||||||
- Fixes rhbz#2068924
|
|
||||||
|
|
||||||
* Tue Feb 01 2022 Karolina Surma <ksurma@redhat.com> - 1:4.4.0-1
|
|
||||||
- Update to 4.4.0
|
|
||||||
- Fixes rhbz#2033955
|
|
||||||
|
|
||||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.3.1-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Nov 29 2021 Karolina Surma <ksurma@redhat.com> - 1:4.3.1-1
|
|
||||||
- Update to 4.3.1
|
|
||||||
- Fixes rhbz#2027059
|
|
||||||
|
|
||||||
* Fri Nov 19 2021 Karolina Surma <ksurma@redhat.com> - 1:4.3.0-1
|
|
||||||
- Update to 4.3.0
|
|
||||||
- Fixes rhbz#2022111
|
|
||||||
|
|
||||||
* Fri Sep 17 2021 Karolina Surma <ksurma@redhat.com> - 1:4.2.0-1
|
|
||||||
- Update to 4.2.0
|
|
||||||
- Fixes rhbz#2003427
|
|
||||||
|
|
||||||
* Thu Sep 16 2021 Karolina Surma <ksurma@redhat.com> - 1:4.1.2-3
|
|
||||||
- Display typing objects correctly with Python 3.10 (fix FTBFS)
|
|
||||||
- Generate correct reference to parent class if class has `_name` attribute
|
|
||||||
- Enable previously deselected test
|
|
||||||
|
|
||||||
* Wed Aug 18 2021 Karolina Surma <ksurma@redhat.com> - 1:4.1.2-2
|
|
||||||
- Patch python-sphinx to work with python-pygments >=2.10
|
|
||||||
|
|
||||||
* Mon Aug 02 2021 Karolina Surma <ksurma@redhat.com> - 1:4.1.2-1
|
|
||||||
- Update to 4.1.2
|
|
||||||
- Fixes rhbz#1979326
|
|
||||||
- Backport commit to fix python-sphinx with Python 3.10-rc1
|
|
||||||
|
|
||||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.0.2-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jun 11 2021 Karolina Surma <ksurma@redhat.com> - 1:4.0.2-1
|
|
||||||
- Update to 4.0.2
|
|
||||||
- Fixes rhbz#1948279
|
|
||||||
|
|
||||||
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1:3.5.4-3
|
|
||||||
- Rebuilt for Python 3.10
|
|
||||||
|
|
||||||
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1:3.5.4-2
|
|
||||||
- Bootstrap for Python 3.10
|
|
||||||
|
|
||||||
* Mon May 10 2021 Karolina Surma <ksurma@redhat.com> - 1:3.5.4-1
|
|
||||||
- Update to 3.5.4
|
|
||||||
- Fixes rhbz#1949477
|
|
||||||
|
|
||||||
* Thu Apr 01 2021 Karolina Surma <ksurma@redhat.com> - 1:3.5.3-1
|
|
||||||
- Update to 3.5.3
|
|
||||||
- Fixes rhbz#1941161
|
|
||||||
|
|
||||||
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 1:3.5.2-1
|
|
||||||
- Update 3.5.2
|
|
||||||
- Fixes rhbz#1928459
|
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.4.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 19 2021 Charalampos Stratakis <cstratak@redhat.com> - 1:3.4.3-1
|
|
||||||
- Update to 3.4.3
|
|
||||||
- Fixes rhbz#1909494
|
|
||||||
|
|
||||||
* Sat Dec 05 2020 Mattia Verga <mattia.verga@protonmail.com> - 1:3.3.1-2
|
|
||||||
- Unset -s from python shebang
|
|
||||||
- Fixes: rhbz#1903763
|
|
||||||
|
|
||||||
* Mon Nov 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1:3.3.1-1
|
|
||||||
- Update to 3.3.1
|
|
||||||
- Fixes: rhbz#1893752
|
|
||||||
|
|
||||||
* Wed Oct 14 2020 Tomas Hrnciar <thrnciar@redhat.com> - 1:3.2.1-2
|
|
||||||
- Backport commit to fix python-sphinx with python-pygments v2.7.1
|
|
||||||
|
|
||||||
* Tue Aug 18 2020 Miro Hrončok <mhroncok@redhat.com> - 1:3.2.1-1
|
|
||||||
- Update to 3.2.1
|
|
||||||
- Remove compatibility symbolic links from /usr/libexec/
|
|
||||||
- Fixes rhbz#1867294
|
|
||||||
|
|
||||||
* Fri Aug 07 2020 Miro Hrončok <mhroncok@redhat.com> - 1:3.1.2-1
|
|
||||||
- Update to 3.1.2
|
|
||||||
- Fixes rhbz#1853901
|
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.1.1-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jun 30 2020 Charalampos Stratakis <cstratak@redhat.com> - 1:3.1.1-1
|
|
||||||
- Update to 3.1.1 (#1783776)
|
|
||||||
|
|
||||||
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1:2.2.2-4
|
|
||||||
- Rebuilt for Python 3.9
|
|
||||||
|
|
||||||
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1:2.2.2-3
|
|
||||||
- Bootstrap for Python 3.9
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.2.2-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Dec 10 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.2.2-1
|
|
||||||
- Update to 2.2.2 (rhbz#1743018)
|
|
||||||
|
|
||||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.1.2-6
|
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
||||||
|
|
||||||
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.1.2-5
|
|
||||||
- Rebuilt for Python 3.8
|
|
||||||
|
|
||||||
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.1.2-4
|
|
||||||
- Bootstrap for Python 3.8
|
|
||||||
|
|
||||||
* Thu Aug 15 2019 Richard Shaw <hobbes1069@gmail.com> - 1:2.1.2-3
|
|
||||||
- Rebuild for Python 3.8.
|
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.1.2-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jun 23 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.1.2-1
|
|
||||||
- Update to 2.1.2 (#1716158)
|
|
||||||
|
|
||||||
* Wed Apr 10 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.0.1-1
|
|
||||||
- Update to 2.0.1 (#1697544)
|
|
||||||
- Own the sphinxcontrib directory (#1669790)
|
|
||||||
|
|
||||||
* Wed Mar 27 2019 Charalampos Stratakis <cstratak@redhat.com> - 1:2.0.0~b2-1
|
|
||||||
- Update to 2.0.0b2
|
|
||||||
|
|
||||||
* Wed Feb 27 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.0.0~b1-1
|
|
||||||
- Update to 2.0.0b1
|
|
||||||
- Drop Python 2 package
|
|
||||||
- https://fedoraproject.org/wiki/Changes/Sphinx2
|
|
||||||
|
|
||||||
* Thu Feb 07 2019 Alfredo Moralejo <amoralej@redhat.com> - 1:1.8.4-1
|
|
||||||
- Update to 1.8.4.
|
|
||||||
|
|
||||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.7.6-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:1.7.6-2
|
|
||||||
- Drop explicit locale setting for python3, use C.UTF-8 for python2
|
|
||||||
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
||||||
|
|
||||||
* Mon Jul 23 2018 Marcel Plch <mplch@redhat.com> - 1:1.7.6-1
|
|
||||||
- Update to 1.7.6
|
|
||||||
|
|
||||||
* Fri Jul 13 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.5-6
|
|
||||||
- Remove unused dependencies on xapian and simplejson
|
|
||||||
|
|
||||||
* Thu Jul 5 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:1.7.5-5
|
|
||||||
- Add patch to fix build if alabaster theme is installed
|
|
||||||
- Add patch for #1589868
|
|
||||||
|
|
||||||
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.5-4
|
|
||||||
- Enable tests
|
|
||||||
|
|
||||||
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.5-3
|
|
||||||
- Enable websupport
|
|
||||||
|
|
||||||
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.5-2
|
|
||||||
- Rebuilt for Python 3.7
|
|
||||||
|
|
||||||
* Tue Jun 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.7.5-1
|
|
||||||
- Update to 1.7.5 (bz#1570451)
|
|
||||||
|
|
||||||
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.2-5
|
|
||||||
- Rebuilt for Python 3.7
|
|
||||||
|
|
||||||
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.2-4
|
|
||||||
- Bootstrap for Python 3.7
|
|
||||||
|
|
||||||
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1:1.7.2-3
|
|
||||||
- Bootstrap for Python 3.7
|
|
||||||
|
|
||||||
* Wed Apr 11 2018 Petr Viktorin <pviktori@redhat.com> - 1:1.7.2-2
|
|
||||||
- Conditionalize the ImageMagick build dependency & tests
|
|
||||||
|
|
||||||
* Wed Apr 11 2018 Petr Viktorin <pviktori@redhat.com> - 1:1.7.2-1
|
|
||||||
- Update to 1.7.2 (bz#1558968)
|
|
||||||
|
|
||||||
* Tue Mar 13 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.7.1-1
|
|
||||||
- Update to 1.7.1 (bz#1534802)
|
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.6.6-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 09 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.6.6-1
|
|
||||||
- Update to 1.6.6 (bz#1532435)
|
|
||||||
|
|
||||||
* Mon Dec 11 2017 Iryna Shcherbina <ishcherb@redhat.com> - 1:1.6.5-2
|
|
||||||
- Fix ambiguous Python 2 dependency declarations
|
|
||||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
||||||
|
|
||||||
* Mon Nov 06 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.6.5-1
|
|
||||||
- Update to 1.6.5 (bz#1508237)
|
|
||||||
|
|
||||||
* Mon Oct 09 2017 Troy Dawson <tdawson@redhat.com> - 1:1.6.4-2
|
|
||||||
- Cleanup spec file conditionals
|
|
||||||
|
|
||||||
* Tue Sep 26 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.6.4-1
|
|
||||||
- Update to 1.6.4 (bz#1426928)
|
|
||||||
|
|
||||||
* Wed Sep 20 2017 Charalampos Stratakis <cstratak@redhat.com> - 1:1.6.3-3
|
|
||||||
- Provide the epoch tag in order to keep the upgrade path clean.
|
|
||||||
|
|
||||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 20 2017 Charalampos Stratakis <cstratak@redhat.com> - - 1.6.3-1
|
|
||||||
- Update to 1.6.3 (bz#1426928)
|
|
||||||
|
|
||||||
* Sat Feb 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.2-2
|
|
||||||
- Cleanup source files that should not be installed
|
|
||||||
- Fix the __init__.pyc that was byte compiled for the wrong python
|
|
||||||
|
|
||||||
* Fri Feb 17 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.2-1
|
|
||||||
- Update to 1.5.2
|
|
||||||
- Remove a few latex dependencies that are no longer needed
|
|
||||||
- Remove xapian patch; now in upstream tarball
|
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 31 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-5
|
|
||||||
- environment-modules is less featureful than Lmod.
|
|
||||||
- Select the default version in a different way since environment-modules
|
|
||||||
didn't understand the symlink
|
|
||||||
- Ignore error messsages in the shell startup script as environment-modules
|
|
||||||
prints an error message if a module has already been loaded. The command
|
|
||||||
is doing the right thing for this case except that it's also printing an
|
|
||||||
error message.
|
|
||||||
|
|
||||||
* Thu Jan 26 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-4
|
|
||||||
- Add recipe for setting the system default to the README.fedora
|
|
||||||
|
|
||||||
* Wed Jan 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-3
|
|
||||||
- Move the unversioned executables into the python2 package as they are now
|
|
||||||
using python2 to run
|
|
||||||
|
|
||||||
* Wed Jan 18 2017 Toshio Kuratomi <toshio@fedoraproject.org> - - 1.5.1-2
|
|
||||||
- Add README.fedora so people know how to use environment-modules to switch.
|
|
||||||
- Change the default to be the python2 version to match with the guidelines
|
|
||||||
- Switch to generic environment(modules) instead of Lmod specifically.
|
|
||||||
|
|
||||||
* Fri Dec 30 2016 Orion Poplawski <orion@cora.nwra.com> - 1.5.1-1
|
|
||||||
- Update to 1.5.1
|
|
||||||
|
|
||||||
* Fri Dec 30 2016 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4.9-2
|
|
||||||
- Remove alternatives. Alternatives should only be used for a very small
|
|
||||||
number of packages (system daemons which also have a compatible command line
|
|
||||||
interface).
|
|
||||||
- Use environment-modules to switch between the python2 and python3 packages
|
|
||||||
*but* be aware that no amount of manual switching can get this 100% right.
|
|
||||||
The code has to be fixed upstream, not in packaging.
|
|
||||||
|
|
||||||
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.4.9-1
|
|
||||||
- Update to 1.4.9
|
|
||||||
- Enable python3 tests
|
|
||||||
|
|
||||||
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.4.8-3
|
|
||||||
- Rebuild for Python 3.6
|
|
||||||
- Disable python3 tests for now
|
|
||||||
|
|
||||||
* Thu Oct 6 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.8-2
|
|
||||||
- Added tex(luatex85.sty) dependency to support TexLive 2016
|
|
||||||
|
|
||||||
* Thu Oct 6 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.8-1
|
|
||||||
- Update to 1.4.8
|
|
||||||
- Alternatives fails for scripts sometimes (bz#1382405)
|
|
||||||
|
|
||||||
* Sun Sep 4 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.6-2
|
|
||||||
- Alternatives fails for man pages due to existing files
|
|
||||||
|
|
||||||
* Fri Sep 2 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.6-1
|
|
||||||
- Update to 1.4.6 (bz#1370810)
|
|
||||||
- Fix unversioned Obsoletes
|
|
||||||
- Add alternatives slaves for man pages
|
|
||||||
|
|
||||||
* Fri Aug 12 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.5-1
|
|
||||||
- Update to 1.4.5 (bz#1356336)
|
|
||||||
- Remove Recommends for latex, locale, and doc subpackages (bz#1366624)
|
|
||||||
- Remove Requires from locale subpackage (bz#1366624)
|
|
||||||
- Set executable scripts via alternatives (bz#1321413)
|
|
||||||
- Change graphviz Requires to Recommends (bz#1366706)
|
|
||||||
|
|
||||||
* Sun Jul 03 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.4-2
|
|
||||||
- doc and locale no longer specifically require python2-sphinx
|
|
||||||
- Colapsed python3-sphinx-latex into python-latex
|
|
||||||
|
|
||||||
* Sun Jun 12 2016 Avram Lubkin <aviso@fedoraproject.org> - 1.4.4-1
|
|
||||||
- Updated to 1.4.4
|
|
||||||
- Added python-sphinx-locale for common locale files
|
|
||||||
|
|
||||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Nov 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-4
|
|
||||||
- Obsolete napoleon extension, it is now packaged with sphinx (#1286275)
|
|
||||||
- Rename python2-Sphinx to python2-sphinx
|
|
||||||
- Add conflicts to disallow parallel installation of different versions,
|
|
||||||
which causes file conflicts because of the shared documentation files.
|
|
||||||
|
|
||||||
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-3
|
|
||||||
- Restore using python2 scripts by default (#1285535)
|
|
||||||
|
|
||||||
* Wed Nov 25 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.1-2
|
|
||||||
- Fix requirements of python2- subpackage
|
|
||||||
- Provide sphinx-*-{3.5,3} symlinks for each script
|
|
||||||
|
|
||||||
* Tue Nov 24 2015 Julien Enselme <jujens@jujens.eu> - 1.3.1-1
|
|
||||||
- Update to 1.3.1 (#1136284)
|
|
||||||
- Update to new guidelines
|
|
||||||
- Make the default executable use python3
|
|
||||||
|
|
||||||
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 1.2.3-5
|
|
||||||
- Rebuilt for Python3.5 rebuild
|
|
||||||
- add patch to reflect that Python3.5 dropped HTMLParserError
|
|
||||||
|
|
||||||
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-4
|
|
||||||
- Fix line encoding of bundled jquery.js
|
|
||||||
|
|
||||||
* Mon Jul 20 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-3
|
|
||||||
- Re-introduce LaTeX subpackage, solely for pulling in LaTeX dependencies
|
|
||||||
|
|
||||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.3-1
|
|
||||||
- Update to 1.2.3
|
|
||||||
- Mark license file with %%license instead of %%doc
|
|
||||||
|
|
||||||
* Thu Feb 5 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-10
|
|
||||||
- Complete LaTeX builder deps (fixes bz#882166)
|
|
||||||
- Make test output verbose
|
|
||||||
- Add BRs needed to enable all tests
|
|
||||||
|
|
||||||
* Tue Feb 3 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-9
|
|
||||||
- python3-sphinx package also Provides: python3-sphinx-latex
|
|
||||||
|
|
||||||
* Tue Feb 3 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-8
|
|
||||||
- If a separate LaTeX subpackage is not generated, the main package should have
|
|
||||||
a virtual Provides: for it (bz#1187989)
|
|
||||||
|
|
||||||
* Tue Jan 27 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-7
|
|
||||||
- Disable separate LaTeX builder for now (bz#1185574)
|
|
||||||
|
|
||||||
* Thu Jan 22 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.2.2-6
|
|
||||||
- Split off LaTeX builder into its own subpackages, to remove TeXLive
|
|
||||||
dependencies from the main package.
|
|
||||||
Thanks to Robert Kuska <rkuska@redhat.com> for feedback
|
|
||||||
- Clean up python3-sphinx's locale files, they ended up in the python2 package.
|
|
||||||
Share the locale files in /usr/share instead
|
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.2-4
|
|
||||||
- Don't own the -3 scripts by python 2 package
|
|
||||||
|
|
||||||
* Thu May 22 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.2-3
|
|
||||||
- Add sphinx-*-3 links to scripts
|
|
||||||
Resolves: #1098109
|
|
||||||
|
|
||||||
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-2
|
|
||||||
- Rebuild for Python 3.4
|
|
||||||
|
|
||||||
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.2-1
|
|
||||||
- Update to 1.2.2
|
|
||||||
|
|
||||||
* Thu Feb 13 2014 Michel Salim <salimma@fedoraproject.org> - 1.2.1-1
|
|
||||||
- Update to 1.2.1
|
|
||||||
|
|
||||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Mar 9 2013 Michel Salim <salimma@fedoraproject.org> - 1.1.3-7
|
|
||||||
- Fix inheritance_diagram quoting bug, exposed by the newer, stricter dot
|
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Aug 21 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.3-5
|
|
||||||
- Fix for use of sphinx's manpage writer with docutils-0.10
|
|
||||||
|
|
||||||
* Mon Aug 6 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.3-4
|
|
||||||
- Rebuild for Python 3.3
|
|
||||||
|
|
||||||
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.3-3
|
|
||||||
- remove rhel logic from with_python3 conditional
|
|
||||||
|
|
||||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Apr 5 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.3-1
|
|
||||||
- Update to 1.1.3
|
|
||||||
|
|
||||||
* Sun Feb 5 2012 Michel Salim <salimma@fedoraproject.org> - 1.1.2-5
|
|
||||||
- Move python3 runtime dependencies to the right subpackage
|
|
||||||
- Properly exclude python3 binaries
|
|
||||||
|
|
||||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Dec 17 2011 Michel Salim <salimma@fedoraproject.org> - 1.1.2-3
|
|
||||||
- BR on texlive-latex for LaTeX tests
|
|
||||||
|
|
||||||
* Thu Dec 8 2011 Michel Salim <salimma@fedoraproject.org> - 1.1.2-2
|
|
||||||
- Enable python3 subpackage
|
|
||||||
|
|
||||||
* Mon Nov 28 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.2-1
|
|
||||||
- Update to upstream 1.1.2
|
|
||||||
|
|
||||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 18 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.7-1
|
|
||||||
- Update to upstream 1.0.7
|
|
||||||
|
|
||||||
* Mon Jan 17 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.6-1
|
|
||||||
- Update to upstream 1.0.6
|
|
||||||
|
|
||||||
* Mon Nov 1 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-3
|
|
||||||
- Fix -doc Makefile to allow regeneration of .rst files
|
|
||||||
|
|
||||||
* Mon Nov 1 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-2
|
|
||||||
- Actually include *.js locale files
|
|
||||||
- Generate manpages
|
|
||||||
|
|
||||||
* Fri Sep 17 2010 Michel Salim <salimma@fedoraproject.org> - 1.0.4-1
|
|
||||||
- Update to 1.0.4
|
|
||||||
- Remove BuildRoot and %%clean declarations
|
|
||||||
|
|
||||||
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0-0.1.b2.1
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
||||||
|
|
||||||
* Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-0.2.b2
|
|
||||||
- Update to 1.0 beta 2
|
|
||||||
- Fixes problem building html documentation in non-English locales
|
|
||||||
|
|
||||||
* Wed May 26 2010 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.b1
|
|
||||||
- Update to 1.0 beta 1
|
|
||||||
|
|
||||||
* Tue May 25 2010 Michel Salim <salimma@fedoraproject.org> - 0.6.6-1
|
|
||||||
- Update to 0.6.6
|
|
||||||
|
|
||||||
* Fri May 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.5-2
|
|
||||||
- Few minor tweaks to Gareth's spec file update
|
|
||||||
|
|
||||||
* Mon May 10 2010 Gareth Armstrong <gareth.armstrong@hp.com> - 0.6.5-1.hp
|
|
||||||
- Update to 0.6.5
|
|
||||||
- Initial import of python-sphinx from Fedora Rawhide for use in HP CMS
|
|
||||||
- Enforce that Sphinx requires Python 2.4 or later via an explicit BR
|
|
||||||
- Minor tweaks to spec file
|
|
||||||
- Move language files to %%{_datadir}, idea borrowed from Debian's sphinx
|
|
||||||
package
|
|
||||||
- Deliver man pages for sphinx-build & sphinx-quickstart
|
|
||||||
- Deliver rst documentation files to reST directory in doc sub-package
|
|
||||||
- Add %%check section for Python2 and add BR on python-nose
|
|
||||||
|
|
||||||
* Wed Jan 13 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1
|
|
||||||
- Update to 0.6.4
|
|
||||||
- Fixes a problem using autodoc with pylons projects.
|
|
||||||
|
|
||||||
* Fri Sep 4 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.3-1
|
|
||||||
- Update to 0.6.3
|
|
||||||
|
|
||||||
* Mon Aug 17 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.2-1
|
|
||||||
- Update to 0.6.2 -- upstream bugfix requested inside bz#512438
|
|
||||||
|
|
||||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jun 05 2009 Luke Macken <lmacken@redhat.com> - 0.6.1-2
|
|
||||||
- Add a patch to use our own setuptools package
|
|
||||||
|
|
||||||
* Fri Apr 17 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.1-1
|
|
||||||
- Update to 0.6.1
|
|
||||||
|
|
||||||
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 2 2009 Michel Salim <salimma@fedoraproject.org> - 0.5.1-1
|
|
||||||
- Update to 0.5.1
|
|
||||||
|
|
||||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2
|
|
||||||
- Rebuild for Python 2.6
|
|
||||||
|
|
||||||
* Mon Nov 24 2008 Michel Salim <salimma@fedoraproject.org> - 0.5-1
|
|
||||||
- Update to 0.5
|
|
||||||
|
|
||||||
* Fri Oct 10 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.3-1
|
|
||||||
- Update to 0.4.3
|
|
||||||
|
|
||||||
* Wed Aug 27 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.2-1.1
|
|
||||||
- Fix for EL-5 build.
|
|
||||||
|
|
||||||
* Mon Aug 25 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.2-1
|
|
||||||
- Update to 0.4.2
|
|
||||||
|
|
||||||
* Mon May 26 2008 Michel Salim <salimma@fedoraproject.org> - 0.3-1
|
|
||||||
- Update to 0.3
|
|
||||||
|
|
||||||
* Fri May 2 2008 Michel Salim <salimma@fedoraproject.org> - 0.1.61950-3
|
|
||||||
- Split documentation into subpackage
|
|
||||||
- Exclude C files (not built by default anyway)
|
|
||||||
|
|
||||||
* Wed Apr 16 2008 José Matos <jamatos@fc.up.pt> - 0.1.61950-2
|
|
||||||
- Build html documentation, include it and include the rst
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
* Thu Mar 27 2008 Michel Salim <michel.sylvan@gmail.com> 0.1.61950-1
|
|
||||||
- Initial package
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
--- setup.py.orig 2009-06-05 07:42:36.000000000 -0400
|
||||||
|
+++ setup.py 2009-06-05 07:42:40.000000000 -0400
|
||||||
|
@@ -1,6 +1,4 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
-import ez_setup
|
||||||
|
-ez_setup.use_setuptools()
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
+99
-319
@@ -1,125 +1,23 @@
|
|||||||
# When bootstrapping sphinx in Fedora, we don't yet have sphinxcontrib-*
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
# Without the packages, we have warnings in docs, but it's not a hard dependency
|
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
|
||||||
# We don't want to support sphinxcontrib-* in RHEL, hence disabling the dependencies
|
|
||||||
%bcond sphinxcontrib %{undefined rhel}
|
|
||||||
# Also, we don't have all the tests requirements
|
|
||||||
%bcond tests 1
|
|
||||||
|
|
||||||
# Unset -s on python shebang to allow RPM-installed sphinx to be used
|
%define upstream_name Sphinx
|
||||||
# with user-installed modules (#1903763)
|
|
||||||
%undefine _py3_shebang_s
|
|
||||||
|
|
||||||
# No internet in Koji
|
Name: python-sphinx
|
||||||
%bcond internet 0
|
Version: 0.6.4
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Python documentation generator
|
||||||
|
|
||||||
# Build without BuildRequires ImageMagick, to skip imgconverter tests
|
Group: Development/Tools
|
||||||
%bcond imagemagick_tests %{undefined rhel}
|
License: BSD
|
||||||
|
URL: http://sphinx.pocoo.org/
|
||||||
|
Source0: http://pypi.python.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
|
||||||
|
Patch0: %{name}-setuptools.patch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
# During texlive updates, sometimes the latex environment is unstable
|
BuildArch: noarch
|
||||||
%bcond latex_tests 1
|
BuildRequires: python-devel python-docutils python-jinja2 python-setuptools
|
||||||
|
Requires: python-docutils python-jinja2 python-pygments
|
||||||
Name: python-sphinx
|
|
||||||
%global general_version 7.3.7
|
|
||||||
#global prerel ...
|
|
||||||
%global upstream_version %{general_version}%{?prerel}
|
|
||||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
|
||||||
Release: %autorelease
|
|
||||||
Epoch: 1
|
|
||||||
Summary: Python documentation generator
|
|
||||||
|
|
||||||
# Unless otherwise noted, the license for code is BSD-2-Clause
|
|
||||||
# sphinx/themes/haiku/static/haiku.css_t has bits licensed with MIT
|
|
||||||
License: BSD-2-Clause AND MIT
|
|
||||||
|
|
||||||
URL: https://www.sphinx-doc.org/
|
|
||||||
Source: %{pypi_source sphinx %{upstream_version}}
|
|
||||||
|
|
||||||
# Allow extra themes to exist. We pull in python3-sphinx-theme-alabaster
|
|
||||||
# which causes that test to fail.
|
|
||||||
Patch: sphinx-test_theming.patch
|
|
||||||
|
|
||||||
# Make the first party extensions optional
|
|
||||||
# This removes the runtime dependencies on:
|
|
||||||
# - sphinxcontrib.applehelp
|
|
||||||
# - sphinxcontrib.devhelp
|
|
||||||
# - sphinxcontrib.jsmath
|
|
||||||
# - sphinxcontrib.htmlhelp
|
|
||||||
# - sphinxcontrib.serializinghtml
|
|
||||||
# - sphinxcontrib.qthelp
|
|
||||||
# The majority of Fedora RPM packages does not need any of those.
|
|
||||||
# By removing the dependencies, we minimize the stuff that's pulled into
|
|
||||||
# the buildroots of 700+ of packages.
|
|
||||||
#
|
|
||||||
# This is a downstream-only change - rejected upstream.
|
|
||||||
# https://github.com/sphinx-doc/sphinx/pull/11747
|
|
||||||
Patch: Make-the-first-party-extensions-optional.patch
|
|
||||||
|
|
||||||
# Fix tests with Python 3.13+
|
|
||||||
Patch: https://github.com/sphinx-doc/sphinx/pull/12373.patch
|
|
||||||
|
|
||||||
# Lazily import defusedxml only when necessary
|
|
||||||
Patch: https://github.com/sphinx-doc/sphinx/pull/12362.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
|
||||||
BuildRequires: pyproject-rpm-macros
|
|
||||||
|
|
||||||
%if %{with sphinxcontrib}
|
|
||||||
# applehelp and jsmath have been orphaned, we cannot use the [docs] extra directly
|
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-devhelp
|
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-htmlhelp
|
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-serializinghtml
|
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-qthelp
|
|
||||||
BuildRequires: python%{python3_pkgversion}-sphinxcontrib-websupport
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
# tests import _testcapi
|
|
||||||
BuildRequires: python%{python3_pkgversion}-test
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: gettext
|
|
||||||
BuildRequires: graphviz
|
|
||||||
BuildRequires: texinfo
|
|
||||||
|
|
||||||
%if %{with imagemagick_tests}
|
|
||||||
BuildRequires: ImageMagick
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with latex_tests}
|
|
||||||
BuildRequires: texlive-collection-fontsrecommended
|
|
||||||
BuildRequires: texlive-collection-latex
|
|
||||||
BuildRequires: texlive-dvipng
|
|
||||||
BuildRequires: texlive-dvisvgm
|
|
||||||
BuildRequires: tex(amsmath.sty)
|
|
||||||
BuildRequires: tex(amsthm.sty)
|
|
||||||
BuildRequires: tex(anyfontsize.sty)
|
|
||||||
BuildRequires: tex(article.cls)
|
|
||||||
BuildRequires: tex(capt-of.sty)
|
|
||||||
BuildRequires: tex(cmap.sty)
|
|
||||||
BuildRequires: tex(color.sty)
|
|
||||||
BuildRequires: tex(ctablestack.sty)
|
|
||||||
BuildRequires: tex(fancyhdr.sty)
|
|
||||||
BuildRequires: tex(fancyvrb.sty)
|
|
||||||
BuildRequires: tex(fncychap.sty)
|
|
||||||
BuildRequires: tex(framed.sty)
|
|
||||||
BuildRequires: tex(FreeSerif.otf)
|
|
||||||
BuildRequires: tex(geometry.sty)
|
|
||||||
BuildRequires: tex(hyperref.sty)
|
|
||||||
BuildRequires: tex(kvoptions.sty)
|
|
||||||
BuildRequires: tex(luatex85.sty)
|
|
||||||
BuildRequires: tex(needspace.sty)
|
|
||||||
BuildRequires: tex(parskip.sty)
|
|
||||||
BuildRequires: tex(polyglossia.sty)
|
|
||||||
BuildRequires: tex(tabulary.sty)
|
|
||||||
BuildRequires: tex(titlesec.sty)
|
|
||||||
BuildRequires: tex(upquote.sty)
|
|
||||||
BuildRequires: tex(utf8x.def)
|
|
||||||
BuildRequires: tex(wrapfig.sty)
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -151,106 +49,14 @@ the Python docs:
|
|||||||
snippets and inclusion of appropriately formatted docstrings.
|
snippets and inclusion of appropriately formatted docstrings.
|
||||||
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-sphinx
|
%package doc
|
||||||
Summary: Python documentation generator
|
|
||||||
|
|
||||||
Recommends: graphviz
|
|
||||||
Recommends: ImageMagick
|
|
||||||
|
|
||||||
# Upstream Requires those, but we have a patch to remove the dependency.
|
|
||||||
# We keep them Recommended to preserve the default user experience.
|
|
||||||
%if %{with sphinxcontrib}
|
|
||||||
# applehelp and jsmath have been orphaned
|
|
||||||
Recommends: python%{python3_pkgversion}-sphinxcontrib-devhelp
|
|
||||||
Recommends: python%{python3_pkgversion}-sphinxcontrib-htmlhelp
|
|
||||||
Recommends: python%{python3_pkgversion}-sphinxcontrib-serializinghtml
|
|
||||||
Recommends: python%{python3_pkgversion}-sphinxcontrib-qthelp
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-sphinx
|
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
|
||||||
beautiful documentation for Python projects (or other documents
|
|
||||||
consisting of multiple reStructuredText sources), written by Georg
|
|
||||||
Brandl. It was originally created to translate the new Python
|
|
||||||
documentation, but has now been cleaned up in the hope that it will be
|
|
||||||
useful to many other projects.
|
|
||||||
|
|
||||||
Sphinx uses reStructuredText as its markup language, and many of its
|
|
||||||
strengths come from the power and straightforwardness of
|
|
||||||
reStructuredText and its parsing and translating suite, the Docutils.
|
|
||||||
|
|
||||||
Although it is still under constant development, the following
|
|
||||||
features are already present, work fine and can be seen "in action" in
|
|
||||||
the Python docs:
|
|
||||||
|
|
||||||
* Output formats: HTML (including Windows HTML Help) and LaTeX,
|
|
||||||
for printable PDF versions
|
|
||||||
* Extensive cross-references: semantic markup and automatic links
|
|
||||||
for functions, classes, glossary terms and similar pieces of
|
|
||||||
information
|
|
||||||
* Hierarchical structure: easy definition of a document tree, with
|
|
||||||
automatic links to siblings, parents and children
|
|
||||||
* Automatic indices: general index as well as a module index
|
|
||||||
* Code handling: automatic highlighting using the Pygments highlighter
|
|
||||||
* Various extensions are available, e.g. for automatic testing of
|
|
||||||
snippets and inclusion of appropriately formatted docstrings.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-sphinx-latex
|
|
||||||
Summary: LaTeX builder dependencies for python%{python3_pkgversion}-sphinx
|
|
||||||
|
|
||||||
Requires: python%{python3_pkgversion}-sphinx = %{epoch}:%{version}-%{release}
|
|
||||||
Requires: texlive-collection-fontsrecommended
|
|
||||||
Requires: texlive-collection-latex
|
|
||||||
Requires: texlive-dvipng
|
|
||||||
Requires: texlive-dvisvgm
|
|
||||||
Requires: tex(amsmath.sty)
|
|
||||||
Requires: tex(amsthm.sty)
|
|
||||||
Requires: tex(anyfontsize.sty)
|
|
||||||
Requires: tex(article.cls)
|
|
||||||
Requires: tex(capt-of.sty)
|
|
||||||
Requires: tex(cmap.sty)
|
|
||||||
Requires: tex(color.sty)
|
|
||||||
Requires: tex(ctablestack.sty)
|
|
||||||
Requires: tex(fancyhdr.sty)
|
|
||||||
Requires: tex(fancyvrb.sty)
|
|
||||||
Requires: tex(fncychap.sty)
|
|
||||||
Requires: tex(framed.sty)
|
|
||||||
Requires: tex(FreeSerif.otf)
|
|
||||||
Requires: tex(geometry.sty)
|
|
||||||
Requires: tex(hyperref.sty)
|
|
||||||
Requires: tex(kvoptions.sty)
|
|
||||||
Requires: tex(luatex85.sty)
|
|
||||||
Requires: tex(needspace.sty)
|
|
||||||
Requires: tex(parskip.sty)
|
|
||||||
Requires: tex(polyglossia.sty)
|
|
||||||
Requires: tex(tabulary.sty)
|
|
||||||
Requires: tex(titlesec.sty)
|
|
||||||
Requires: tex(upquote.sty)
|
|
||||||
Requires: tex(utf8x.def)
|
|
||||||
Requires: tex(wrapfig.sty)
|
|
||||||
|
|
||||||
# No files in this package, automatic provides don't work:
|
|
||||||
%py_provides python%{python3_pkgversion}-sphinx-latex
|
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-sphinx-latex
|
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
|
||||||
beautiful documentation for Python projects (or other documents
|
|
||||||
consisting of multiple reStructuredText sources), written by Georg
|
|
||||||
Brandl. It was originally created to translate the new Python
|
|
||||||
documentation, but has now been cleaned up in the hope that it will be
|
|
||||||
useful to many other projects.
|
|
||||||
|
|
||||||
This package pulls in the TeX dependencies needed by Sphinx's LaTeX
|
|
||||||
builder.
|
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
License: BSD-2-Clause
|
Group: Documentation
|
||||||
Recommends: python%{python3_pkgversion}-sphinx = %{epoch}:%{version}-%{release}
|
License: BSD
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description doc
|
|
||||||
|
%description doc
|
||||||
Sphinx is a tool that makes it easy to create intelligent and
|
Sphinx is a tool that makes it easy to create intelligent and
|
||||||
beautiful documentation for Python projects (or other documents
|
beautiful documentation for Python projects (or other documents
|
||||||
consisting of multiple reStructuredText sources), written by Georg
|
consisting of multiple reStructuredText sources), written by Georg
|
||||||
@@ -258,127 +64,101 @@ Brandl. It was originally created to translate the new Python
|
|||||||
documentation, but has now been cleaned up in the hope that it will be
|
documentation, but has now been cleaned up in the hope that it will be
|
||||||
useful to many other projects.
|
useful to many other projects.
|
||||||
|
|
||||||
This package contains documentation in the HTML format.
|
This package contains documentation in rST and HTML formats
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n sphinx-%{upstream_version} -p1
|
%setup -q -n %{upstream_name}-%{version}
|
||||||
|
%patch0 -p0 -b .setuptools
|
||||||
%if %{without imagemagick_tests}
|
|
||||||
rm tests/test_extensions/test_ext_imgconverter.py
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
|
||||||
%pyproject_buildrequires -r %{?with_tests:-x test}
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%{__python} setup.py build
|
||||||
|
cd doc
|
||||||
export PYTHONPATH=$PWD
|
make html
|
||||||
pushd doc
|
|
||||||
export SPHINXBUILD="%{python3} ../sphinx/cmd/build.py"
|
|
||||||
make html SPHINXBUILD="$SPHINXBUILD"
|
|
||||||
make man SPHINXBUILD="$SPHINXBUILD"
|
|
||||||
rm -rf _build/html/.buildinfo
|
|
||||||
# Those files are copied to _build/html/_images and loaded to the
|
|
||||||
# html pages from there - we can safely remove the duplicated and unused files
|
|
||||||
rm -rf _build/html/_static/themes _build/html/_static/tutorial
|
|
||||||
rm -f _build/html/_static/more.png _build/html/_static/translation.svg
|
|
||||||
mv _build/html ..
|
mv _build/html ..
|
||||||
popd
|
rm -rf _*
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
# Fix EOL delimiters
|
||||||
|
sed -i 's|\r||g' LICENSE
|
||||||
|
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||||
|
|
||||||
# For backwards compatibility. Remove with care, if at all
|
# Language files; not under /usr/share, need to be handled manually
|
||||||
for i in sphinx-{apidoc,autogen,build,quickstart}; do
|
(cd $RPM_BUILD_ROOT && find . -name 'sphinx.mo') | sed -e 's|^.||' | sed -e \
|
||||||
ln -s %{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version}
|
's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
|
||||||
ln -s %{_bindir}/$i %{buildroot}%{_bindir}/$i-3
|
>> %{name}.lang
|
||||||
done
|
|
||||||
|
|
||||||
# Clean up non-python files
|
|
||||||
rm -f %{buildroot}%{python3_sitelib}/sphinx/locale/.DS_Store
|
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/sphinx/locale/.tx
|
|
||||||
|
|
||||||
pushd doc
|
|
||||||
# Deliver man pages
|
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
|
||||||
for f in _build/man/sphinx-*.1;
|
|
||||||
do
|
|
||||||
cp -p $f %{buildroot}%{_mandir}/man1/$(basename $f)
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Move language files to /usr/share;
|
|
||||||
# patch to support this incorporated in 0.6.6
|
|
||||||
pushd %{buildroot}%{python3_sitelib}
|
|
||||||
|
|
||||||
for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
|
|
||||||
do
|
|
||||||
test $lang == __pycache__ && continue
|
|
||||||
install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
|
|
||||||
install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
|
|
||||||
mv sphinx/locale/$lang/LC_MESSAGES/sphinx.js \
|
|
||||||
%{buildroot}%{_datadir}/sphinx/locale/$lang/
|
|
||||||
mv sphinx/locale/$lang/LC_MESSAGES/sphinx.mo \
|
|
||||||
%{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
|
|
||||||
rm -rf sphinx/locale/$lang
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Create the sphinxcontrib directory, so we can own it
|
|
||||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=1669790 for rationale
|
|
||||||
mkdir %{buildroot}%{python3_sitelib}/sphinxcontrib
|
|
||||||
|
|
||||||
%find_lang sphinx
|
|
||||||
|
|
||||||
# Language files; Since these are javascript, it's not immediately obvious to
|
|
||||||
# find_lang that they need to be marked with a language.
|
|
||||||
(cd %{buildroot} && find . -name 'sphinx.js') | sed -e 's|^.||' | sed -e \
|
|
||||||
's:\(.*/locale/\)\([^/_]\+\)\(.*\.js$\):%lang(\2) \1\2\3:' \
|
|
||||||
>> sphinx.lang
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with tests}
|
%clean
|
||||||
%check
|
rm -rf $RPM_BUILD_ROOT
|
||||||
# Currently, all linkcheck tests and test_latex_images need internet
|
|
||||||
# test_build_latex_doc needs internet to download pictures,
|
|
||||||
# but fails also with it enabled, we decided to skip it entirely
|
|
||||||
# test_autodoc_type_aliases fails with Python 3.12.4, 3.13.0b3
|
|
||||||
# skip temporarily until resolved:
|
|
||||||
# https://github.com/sphinx-doc/sphinx/issues/12430
|
|
||||||
k="not test_autodoc_type_aliases"
|
|
||||||
%if %{without internet}
|
|
||||||
k="${k} and not linkcheck and not test_latex_images and not test_build_latex_doc"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%pytest -k "${k}"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-sphinx -f sphinx.lang
|
%files -f %{name}.lang
|
||||||
%license LICENSE.rst
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst
|
%doc AUTHORS CHANGES LICENSE README TODO
|
||||||
%{_bindir}/sphinx-*
|
%{_bindir}/sphinx-*
|
||||||
%{python3_sitelib}/sphinx/
|
%{python_sitelib}/sphinx
|
||||||
%dir %{python3_sitelib}/sphinxcontrib/
|
%{python_sitelib}/*.egg-info
|
||||||
%{python3_sitelib}/sphinx-%{upstream_version}.dist-info/
|
|
||||||
%dir %{_datadir}/sphinx/
|
|
||||||
%dir %{_datadir}/sphinx/locale
|
|
||||||
%dir %{_datadir}/sphinx/locale/*
|
|
||||||
%{_mandir}/man1/sphinx-*
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-sphinx-latex
|
|
||||||
# empty, this is a metapackage
|
|
||||||
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%license LICENSE.rst
|
%defattr(-,root,root,-)
|
||||||
%doc html
|
%doc doc html
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
* Wed Jan 13 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1
|
||||||
|
- Update to 0.6.4
|
||||||
|
- Fixes a problem using autodoc with pylons projects.
|
||||||
|
|
||||||
|
* Fri Sep 4 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.3-1
|
||||||
|
- Update to 0.6.3
|
||||||
|
|
||||||
|
* Mon Aug 17 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.2-1
|
||||||
|
- Update to 0.6.2 -- upstream bugfix requested inside bz#512438
|
||||||
|
|
||||||
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 05 2009 Luke Macken <lmacken@redhat.com> - 0.6.1-2
|
||||||
|
- Add a patch to use our own setuptools package
|
||||||
|
|
||||||
|
* Fri Apr 17 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.1-1
|
||||||
|
- Update to 0.6.1
|
||||||
|
|
||||||
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 2 2009 Michel Salim <salimma@fedoraproject.org> - 0.5.1-1
|
||||||
|
- Update to 0.5.1
|
||||||
|
|
||||||
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2
|
||||||
|
- Rebuild for Python 2.6
|
||||||
|
|
||||||
|
* Mon Nov 24 2008 Michel Salim <salimma@fedoraproject.org> - 0.5-1
|
||||||
|
- Update to 0.5
|
||||||
|
|
||||||
|
* Fri Oct 10 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.3-1
|
||||||
|
- Update to 0.4.3
|
||||||
|
|
||||||
|
* Wed Aug 27 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.2-1.1
|
||||||
|
- Fix for EL-5 build.
|
||||||
|
|
||||||
|
* Mon Aug 25 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.2-1
|
||||||
|
- Update to 0.4.2
|
||||||
|
|
||||||
|
* Mon May 26 2008 Michel Salim <salimma@fedoraproject.org> - 0.3-1
|
||||||
|
- Update to 0.3
|
||||||
|
|
||||||
|
* Fri May 2 2008 Michel Salim <salimma@fedoraproject.org> - 0.1.61950-3
|
||||||
|
- Split documentation into subpackage
|
||||||
|
- Exclude C files (not built by default anyway)
|
||||||
|
|
||||||
|
* Wed Apr 16 2008 José Matos <jamatos@fc.up.pt> - 0.1.61950-2
|
||||||
|
- Build html documentation, include it and include the rst
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
* Thu Mar 27 2008 Michel Salim <michel.sylvan@gmail.com> 0.1.61950-1
|
||||||
|
- Initial package
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
# exclude XML template (not always valid) from XML validity check:
|
|
||||||
xml:
|
|
||||||
ignore:
|
|
||||||
- /usr/lib/python*/site-packages/sphinx/themes/basic/opensearch.xml
|
|
||||||
@@ -1 +1 @@
|
|||||||
SHA512 (sphinx-7.3.7.tar.gz) = f450eaaa26a0989e9065174e23488a7f647221750238516c5d06d403540eb4277fd480f03857d24acb6b7335458ae4535ad1ad533eff6d3bbba5521d9a6deb14
|
a65e0bcff6f79a7c013220d00ea137ad Sphinx-0.6.4.tar.gz
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
From 57433d8036ab1e88ad7d6c4c1a45e438f722e276 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Karolina Surma <ksurma@redhat.com>
|
|
||||||
Date: Thu, 25 Apr 2024 16:07:56 +0200
|
|
||||||
Subject: [PATCH] Patch test_theming to accomodate for Fedora-added theme
|
|
||||||
|
|
||||||
---
|
|
||||||
tests/test_theming/test_theming.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/tests/test_theming/test_theming.py b/tests/test_theming/test_theming.py
|
|
||||||
index 867f8a0..281bb45 100644
|
|
||||||
--- a/tests/test_theming/test_theming.py
|
|
||||||
+++ b/tests/test_theming/test_theming.py
|
|
||||||
@@ -50,7 +50,7 @@ def test_theme_api(app, status, warning):
|
|
||||||
]
|
|
||||||
|
|
||||||
# test Theme class API
|
|
||||||
- assert set(app.registry.html_themes.keys()) == set(themes)
|
|
||||||
+ assert set(app.registry.html_themes.keys()) >= set(themes)
|
|
||||||
assert app.registry.html_themes['test-theme'] == str(
|
|
||||||
app.srcdir / 'test_theme' / 'test-theme'
|
|
||||||
)
|
|
||||||
--
|
|
||||||
2.44.0
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user