Accepting request 979904 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/979904 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sphinxcontrib-jsmath?expand=0&rev=3
This commit is contained in:
commit
ebd0a83ae4
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 30 10:40:01 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Add upstream patch sphinx5.patch to fix build with the new Sphinx
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 31 01:54:06 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Fri Jan 31 01:54:06 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-sphinxcontrib-jsmath
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -32,6 +32,8 @@ License: BSD-2-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://sphinx-doc.org/
|
URL: http://sphinx-doc.org/
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-jsmath/sphinxcontrib-jsmath-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-jsmath/sphinxcontrib-jsmath-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM https://github.com/sphinx-doc/sphinxcontrib-jsmath/commit/3297b27177ab4862d1b2408a2db66235397fe212 Fix #9361: RemovedInSphinx50Warning on testing
|
||||||
|
Patch0: sphinx5.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -50,6 +52,7 @@ via JavaScript.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sphinxcontrib-jsmath-%{version}
|
%setup -q -n sphinxcontrib-jsmath-%{version}
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
38
sphinx5.patch
Normal file
38
sphinx5.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
From 3297b27177ab4862d1b2408a2db66235397fe212 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Takeshi KOMIYA <i.tkomiya@gmail.com>
|
||||||
|
Date: Sat, 17 Jul 2021 19:25:37 +0900
|
||||||
|
Subject: [PATCH] Fix #9361: RemovedInSphinx50Warning on testing
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/test_jsmath.py | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/test_jsmath.py b/tests/test_jsmath.py
|
||||||
|
index 573d262..eea8a95 100644
|
||||||
|
--- a/tests/test_jsmath.py
|
||||||
|
+++ b/tests/test_jsmath.py
|
||||||
|
@@ -14,7 +14,7 @@
|
||||||
|
@pytest.mark.sphinx('html', testroot='basic')
|
||||||
|
def test_basic(app, status, warning):
|
||||||
|
app.builder.build_all()
|
||||||
|
- content = (app.outdir / 'math.html').text()
|
||||||
|
+ content = (app.outdir / 'math.html').read_text()
|
||||||
|
print(content)
|
||||||
|
assert '<div class="math notranslate nohighlight">\nE = mc^2</div>' in content
|
||||||
|
assert ('<span class="eqno">(1)<a class="headerlink" href="#equation-pythagorean" '
|
||||||
|
@@ -34,7 +34,7 @@ def test_basic(app, status, warning):
|
||||||
|
def test_numfig_enabled(app, status, warning):
|
||||||
|
app.builder.build_all()
|
||||||
|
|
||||||
|
- content = (app.outdir / 'math.html').text()
|
||||||
|
+ content = (app.outdir / 'math.html').read_text()
|
||||||
|
assert '<div class="math notranslate nohighlight">\nE = mc^2</div>' in content
|
||||||
|
assert ('<span class="eqno">(1.1)<a class="headerlink" href="#equation-pythagorean" '
|
||||||
|
'title="Permalink to this equation">¶</a></span>'
|
||||||
|
@@ -52,5 +52,5 @@ def test_numfig_enabled(app, status, warning):
|
||||||
|
def test_disabled_when_equations_not_found(app, status, warning):
|
||||||
|
app.builder.build_all()
|
||||||
|
|
||||||
|
- content = (app.outdir / 'index.html').text()
|
||||||
|
+ content = (app.outdir / 'index.html').read_text()
|
||||||
|
assert 'jsmath.js' not in content
|
Loading…
Reference in New Issue
Block a user