Accepting request 1108090 from devel:languages:python

- Clean up the SPEC file
- 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/1108090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sphinxcontrib-serializinghtml?expand=0&rev=5
This commit is contained in:
Ana Guerrero 2023-09-04 20:52:27 +00:00 committed by Git OBS Bridge
commit b43f556f63
4 changed files with 32 additions and 13 deletions

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Tue Aug 29 19:11:22 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file
-------------------------------------------------------------------
Mon Aug 28 11:50:32 UTC 2023 - Markéta Machová <mmachova@suse.com>
- 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 <dmueller@suse.com>

View File

@ -25,23 +25,24 @@
%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.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 +53,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
@ -72,7 +73,9 @@ 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
%endif
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952
size 21019

BIN
sphinxcontrib_serializinghtml-1.1.9.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.