Accepting request 1069747 from devel:languages:python
- update to 2.0.1: * Drop support for Python 3.7 and lower * Fix deprecation warnings from Sphinx 6.1 - drop sphinx5.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/1069747 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sphinxcontrib-htmlhelp?expand=0&rev=5
This commit is contained in:
commit
092db5f8ed
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 6 21:09:03 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.0.1:
|
||||
* Drop support for Python 3.7 and lower
|
||||
* Fix deprecation warnings from Sphinx 6.1
|
||||
- drop sphinx5.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 30 10:38:17 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -27,16 +27,15 @@
|
||||
%bcond_with test
|
||||
%endif
|
||||
Name: python-sphinxcontrib-htmlhelp%{psuffix}
|
||||
Version: 2.0.0
|
||||
Version: 2.0.1
|
||||
Release: 0
|
||||
Summary: Sphinx contrib extension to generate html help files
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/sphinx-doc/sphinxcontrib-htmlhelp
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-htmlhelp/sphinxcontrib-htmlhelp-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM https://github.com/sphinx-doc/sphinxcontrib-htmlhelp/commit/248ff52b3c3d39c20cdaef3052ac7507a407733a Fix #9457: RemovedInSphinx50Warning on testing
|
||||
Patch0: sphinx5.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Sphinx
|
||||
@ -53,15 +52,14 @@ BuildRequires: %{python_module sphinxcontrib-htmlhelp >= %{version}}
|
||||
Html help generating extension.
|
||||
|
||||
%prep
|
||||
%setup -q -n sphinxcontrib-htmlhelp-%{version}
|
||||
%autopatch -p1
|
||||
%autosetup -p1 -n sphinxcontrib-htmlhelp-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
|
@ -1,22 +0,0 @@
|
||||
Index: sphinxcontrib-htmlhelp-2.0.0/tests/test_htmlhelp.py
|
||||
===================================================================
|
||||
--- sphinxcontrib-htmlhelp-2.0.0.orig/tests/test_htmlhelp.py
|
||||
+++ sphinxcontrib-htmlhelp-2.0.0/tests/test_htmlhelp.py
|
||||
@@ -21,7 +21,7 @@ from sphinx.config import Config
|
||||
def test_build_htmlhelp(app, status, warning):
|
||||
app.build()
|
||||
|
||||
- hhp = (app.outdir / 'pythondoc.hhp').text()
|
||||
+ hhp = (app.outdir / 'pythondoc.hhp').read_text()
|
||||
assert 'Compiled file=pythondoc.chm' in hhp
|
||||
assert 'Contents file=pythondoc.hhc' in hhp
|
||||
assert 'Default Window=pythondoc' in hhp
|
||||
@@ -84,7 +84,7 @@ def test_htmlhelp_hhc(app):
|
||||
assert node[1].attrib == {'name': 'Local', 'value': filename}
|
||||
|
||||
# .hhc file
|
||||
- hhc = (app.outdir / 'pythondoc.hhc').text()
|
||||
+ hhc = (app.outdir / 'pythondoc.hhc').read_text()
|
||||
tree = HTMLParser(namespaceHTMLElements=False).parse(hhc)
|
||||
items = tree.find('.//body/ul')
|
||||
assert len(items) == 4
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f5f8bb2d0d629f398bf47d0d69c07bc13b65f75a81ad9e2f71a63d4b7a2f6db2
|
||||
size 28144
|
BIN
sphinxcontrib-htmlhelp-2.0.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
sphinxcontrib-htmlhelp-2.0.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user