From 71b354f454251cd84bbb3bc442b62cc4c106fedc9b708b33eea2b0ad7875a9a4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 29 Aug 2023 19:08:09 +0000 Subject: [PATCH 1/3] Accepting request 1106987 from home:mcalabkova:branches:devel:languages:python - Update to 1.0.9 * Drop support for Python 3.5, 3.6, 3.7, and 3.8 * Raise minimum required Sphinx version to 5.0 * Fix tests for Sphinx 7.1 and below * Use ``os.PathLike`` over ``pathlib.Path`` * Serialise context["script_files"] and context["css_files"] as their filenames on Sphinx 7.2.0. OBS-URL: https://build.opensuse.org/request/show/1106987 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-serializinghtml?expand=0&rev=9 --- python-sphinxcontrib-serializinghtml.changes | 11 +++++++++++ python-sphinxcontrib-serializinghtml.spec | 18 ++++++++++-------- sphinxcontrib-serializinghtml-1.1.5.tar.gz | 3 --- sphinxcontrib_serializinghtml-1.1.9.tar.gz | 3 +++ 4 files changed, 24 insertions(+), 11 deletions(-) delete mode 100644 sphinxcontrib-serializinghtml-1.1.5.tar.gz create mode 100644 sphinxcontrib_serializinghtml-1.1.9.tar.gz diff --git a/python-sphinxcontrib-serializinghtml.changes b/python-sphinxcontrib-serializinghtml.changes index 7b9fcf8..677bf3c 100644 --- a/python-sphinxcontrib-serializinghtml.changes +++ b/python-sphinxcontrib-serializinghtml.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Aug 28 11:50:32 UTC 2023 - Markéta Machová + +- Update to 1.0.9 + * Drop support for Python 3.5, 3.6, 3.7, and 3.8 + * Raise minimum required Sphinx version to 5.0 + * Fix tests for Sphinx 7.1 and below + * Use ``os.PathLike`` over ``pathlib.Path`` + * Serialise context["script_files"] and context["css_files"] as their filenames + on Sphinx 7.2.0. + ------------------------------------------------------------------- Fri Apr 21 12:37:01 UTC 2023 - Dirk Müller diff --git a/python-sphinxcontrib-serializinghtml.spec b/python-sphinxcontrib-serializinghtml.spec index 0fd854b..3468699 100644 --- a/python-sphinxcontrib-serializinghtml.spec +++ b/python-sphinxcontrib-serializinghtml.spec @@ -28,20 +28,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-sphinxcontrib-serializinghtml%{psuffix} -Version: 1.1.5 +Version: 1.1.9 Release: 0 Summary: Sphinx extension which outputs serialized HTML files License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/sphinx-doc/sphinxcontrib-serializinghtml -Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-serializinghtml/sphinxcontrib-serializinghtml-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-serializinghtml/sphinxcontrib_serializinghtml-%{version}.tar.gz +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Sphinx +Requires: python-Sphinx >= 5.0 BuildArch: noarch %if %{with test} -BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module Sphinx >= 5.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module sphinxcontrib-serializinghtml >= %{version}} %endif @@ -52,14 +54,14 @@ sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized" HTML files (json and pickle). %prep -%setup -q -n sphinxcontrib-serializinghtml-%{version} +%setup -q -n sphinxcontrib_serializinghtml-%{version} %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif diff --git a/sphinxcontrib-serializinghtml-1.1.5.tar.gz b/sphinxcontrib-serializinghtml-1.1.5.tar.gz deleted file mode 100644 index 86062f9..0000000 --- a/sphinxcontrib-serializinghtml-1.1.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952 -size 21019 diff --git a/sphinxcontrib_serializinghtml-1.1.9.tar.gz b/sphinxcontrib_serializinghtml-1.1.9.tar.gz new file mode 100644 index 0000000..1b024c6 --- /dev/null +++ b/sphinxcontrib_serializinghtml-1.1.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c64ff898339e1fac29abd2bf5f11078f3ec413cfe9c046d3120d7ca65530b54 +size 15446 From ecac2e3cc52f89dfa0a0990efbb9f69e8ddd5f4d1a26e553875f68ae2f6c443c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 29 Aug 2023 19:12:08 +0000 Subject: [PATCH 2/3] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-serializinghtml?expand=0&rev=10 --- python-sphinxcontrib-serializinghtml.changes | 5 +++++ python-sphinxcontrib-serializinghtml.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-sphinxcontrib-serializinghtml.changes b/python-sphinxcontrib-serializinghtml.changes index 677bf3c..695caae 100644 --- a/python-sphinxcontrib-serializinghtml.changes +++ b/python-sphinxcontrib-serializinghtml.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 29 19:11:22 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Mon Aug 28 11:50:32 UTC 2023 - Markéta Machová diff --git a/python-sphinxcontrib-serializinghtml.spec b/python-sphinxcontrib-serializinghtml.spec index 3468699..68a8a07 100644 --- a/python-sphinxcontrib-serializinghtml.spec +++ b/python-sphinxcontrib-serializinghtml.spec @@ -25,7 +25,6 @@ %define psuffix %{nil} %bcond_with test %endif -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-sphinxcontrib-serializinghtml%{psuffix} Version: 1.1.9 @@ -74,7 +73,10 @@ sphinxcontrib-serializinghtml is a sphinx extension which outputs %files %{python_files} %doc README.rst CHANGES %license LICENSE -%{python_sitelib}/* +%dir %{python_sitelib}/sphinxcontrib +%{python_sitelib}/sphinxcontrib/serializinghtml +%{python_sitelib}/sphinxcontrib_serializinghtml-%{version}*-info +%{python_sitelib}/sphinxcontrib_serializinghtml-%{version}*-nspkg.pth %endif %changelog From d70e8d430a288d0295f8961d65e2cfdf0e75bbf25b06db4e6c39accc692984b3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 29 Aug 2023 21:29:11 +0000 Subject: [PATCH 3/3] Fix SPEC OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-serializinghtml?expand=0&rev=11 --- python-sphinxcontrib-serializinghtml.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-sphinxcontrib-serializinghtml.spec b/python-sphinxcontrib-serializinghtml.spec index 68a8a07..ca95966 100644 --- a/python-sphinxcontrib-serializinghtml.spec +++ b/python-sphinxcontrib-serializinghtml.spec @@ -76,7 +76,6 @@ sphinxcontrib-serializinghtml is a sphinx extension which outputs %dir %{python_sitelib}/sphinxcontrib %{python_sitelib}/sphinxcontrib/serializinghtml %{python_sitelib}/sphinxcontrib_serializinghtml-%{version}*-info -%{python_sitelib}/sphinxcontrib_serializinghtml-%{version}*-nspkg.pth %endif %changelog