diff --git a/python-sphinxcontrib-htmlhelp.changes b/python-sphinxcontrib-htmlhelp.changes index b850e9c..82cfa30 100644 --- a/python-sphinxcontrib-htmlhelp.changes +++ b/python-sphinxcontrib-htmlhelp.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Mar 6 21:09:03 UTC 2023 - Dirk Müller + +- 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á diff --git a/python-sphinxcontrib-htmlhelp.spec b/python-sphinxcontrib-htmlhelp.spec index 98ebdcf..8bd1d67 100644 --- a/python-sphinxcontrib-htmlhelp.spec +++ b/python-sphinxcontrib-htmlhelp.spec @@ -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 diff --git a/sphinx5.patch b/sphinx5.patch deleted file mode 100644 index 51c8273..0000000 --- a/sphinx5.patch +++ /dev/null @@ -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 diff --git a/sphinxcontrib-htmlhelp-2.0.0.tar.gz b/sphinxcontrib-htmlhelp-2.0.0.tar.gz deleted file mode 100644 index 7f6507a..0000000 --- a/sphinxcontrib-htmlhelp-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f5f8bb2d0d629f398bf47d0d69c07bc13b65f75a81ad9e2f71a63d4b7a2f6db2 -size 28144 diff --git a/sphinxcontrib-htmlhelp-2.0.1.tar.gz b/sphinxcontrib-htmlhelp-2.0.1.tar.gz new file mode 100644 index 0000000..88be11e --- /dev/null +++ b/sphinxcontrib-htmlhelp-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cbdd302815330058422b98a113195c9249825d681e18f11e8b1f78a2f11efff +size 27967