Compare commits

..

6 Commits

Author SHA1 Message Date
Fedora Release Engineering a78ff93560 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 17:34:48 +00:00
Fedora Release Engineering 8a1a467160 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 22:35:13 +00:00
Karolina Surma dab866db4d Fix compatibility with Sphinx 5 2022-07-07 15:29:16 +02:00
Python Maint b1f98c09ba Rebuilt for Python 3.11 2022-06-13 18:22:16 +02:00
Python Maint 564b16c6e8 Bootstrap for Python 3.11 2022-06-13 15:26:40 +02:00
Fedora Release Engineering 0aad133af5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 15:44:43 +00:00
2 changed files with 105 additions and 2 deletions
+82
View File
@@ -0,0 +1,82 @@
From 40f9dc8921486b7fd8ac84964f1e45103b540b81 Mon Sep 17 00:00:00 2001
From: MeggyCal <MeggyCal@users.noreply.github.com>
Date: Wed, 1 Jun 2022 10:35:11 +0200
Subject: [PATCH] Fix tests with Sphinx 5.0
---
tests/test_qthelp.py | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/tests/test_qthelp.py b/tests/test_qthelp.py
index fd83241..4c5f77d 100644
--- a/tests/test_qthelp.py
+++ b/tests/test_qthelp.py
@@ -17,7 +17,7 @@
def test_qthelp_basic(app, status, warning):
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert '<customFilter name="Python ">' in qhp
assert '<filterAttribute>Python</filterAttribute>' in qhp
assert '<filterAttribute></filterAttribute>' in qhp
@@ -26,7 +26,7 @@ def test_qthelp_basic(app, status, warning):
assert '<file>index.html</file>' in qhp
assert '<file>_static/basic.css</file>' in qhp
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<title>Python documentation</title>' in qhcp
assert '<homePage>qthelp://org.sphinx.python/doc/index.html</homePage>' in qhcp
assert '<startPage>qthelp://org.sphinx.python/doc/index.html</startPage>' in qhcp
@@ -91,10 +91,10 @@ def test_qthelp_namespace(app, status, warning):
# default namespace
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert '<namespace>org.sphinx.python</namespace>' in qhp
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<homePage>qthelp://org.sphinx.python/doc/index.html</homePage>' in qhcp
assert '<startPage>qthelp://org.sphinx.python/doc/index.html</startPage>' in qhcp
@@ -102,10 +102,10 @@ def test_qthelp_namespace(app, status, warning):
app.config.qthelp_namespace = 'org.sphinx-doc.sphinx'
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert '<namespace>org.sphinx-doc.sphinx</namespace>' in qhp
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<homePage>qthelp://org.sphinx-doc.sphinx/doc/index.html</homePage>' in qhcp
assert '<startPage>qthelp://org.sphinx-doc.sphinx/doc/index.html</startPage>' in qhcp
@@ -115,10 +115,10 @@ def test_qthelp_title(app, status, warning):
# default title
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert '<section title="Python documentation" ref="index.html">' in qhp
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<title>Python documentation</title>' in qhcp
# give a title
@@ -126,9 +126,9 @@ def test_qthelp_title(app, status, warning):
app.config.html_short_title = 'Sphinx <b>"short"</b> title'
app.builder.build_all()
- qhp = (app.outdir / 'Python.qhp').text()
+ qhp = (app.outdir / 'Python.qhp').read_text()
assert ('<section title="Sphinx &lt;b&gt;&#34;full&#34;&lt;/b&gt; title" ref="index.html">'
in qhp)
- qhcp = (app.outdir / 'Python.qhcp').text()
+ qhcp = (app.outdir / 'Python.qhcp').read_text()
assert '<title>Sphinx &lt;b&gt;&#34;short&#34;&lt;/b&gt; title</title>' in qhcp
+23 -2
View File
@@ -5,13 +5,16 @@
Name: python-%{pypi_name}
Version: 1.0.3
Release: 6%{?dist}
Release: 12%{?dist}
Summary: Sphinx extension for QtHelp documents
License: BSD
URL: http://sphinx-doc.org/
Source0: %{pypi_source}
BuildArch: noarch
# In Sphinx 5 path.read_text() replaces path.text() - compatibility fix
Patch: https://github.com/sphinx-doc/sphinxcontrib-qthelp/pull/14.patch
BuildRequires: gettext
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
@@ -34,7 +37,7 @@ sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.
%prep
%autosetup -n %{pypi_name}-%{version}
%autosetup -p1 -n %{pypi_name}-%{version}
find -name '*.mo' -delete
@@ -79,6 +82,24 @@ popd
%changelog
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Thu Jul 07 2022 Karolina Surma <ksurma@redhat.com> - 1.0.3-10
- Fix compatibility with Sphinx 5
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0.3-9
- Rebuilt for Python 3.11
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0.3-8
- Bootstrap for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild