14
0

Accepting request 1220388 from devel:languages:python

- Update to 0.21.2:
  * General:
    + Drop support for Python 3.7 and 3.8.
    + Provide rst2* "console_scripts" entry points (without the .py
      extension) instead of installing the rst2*.py front end tools in the
      binary PATH.
    + Use docutils --reader=pep --writer=pep_html for a PEP preview.
    + Use python -m docutils.writers.odf_odt.prepstyles to strip the page
      size from an ODT writer stylesheet.
    + Use the same CSV format for the :header: option and the main data of
      the "csv-table" directive.
    + New option "loading" for the "image" directive. Sets the new attribute
      loading of the <image> doctree element.
  * Configuration changes:
    + New configuration setting root_prefix. Configurable root directory
      for included files.
    + New configuration setting sources for the "buildhtml.py" application.
    + Simpler and more secure input encoding default behaviour:
      # Do not use the locale encoding as fallback if Python is started in
        UTF-8 mode. Stop using "latin1" as second fallback.
      # Remove BOM (U+FEFF ZWNBSP at start of data) only if the
        input_encoding configuration setting is None, '', 'utf-8-sig',
        'utf-16', or 'utf-32'. Do not remove other ZWNBSPs.

OBS-URL: https://build.opensuse.org/request/show/1220388
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docutils?expand=0&rev=41
This commit is contained in:
2024-11-08 10:55:40 +00:00
committed by Git OBS Bridge
4 changed files with 37 additions and 16 deletions

BIN
docutils-0.20.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
docutils-0.21.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,30 @@
-------------------------------------------------------------------
Sun Nov 3 05:32:05 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.21.2:
* General:
+ Drop support for Python 3.7 and 3.8.
+ Provide rst2* "console_scripts" entry points (without the .py
extension) instead of installing the rst2*.py front end tools in the
binary PATH.
+ Use docutils --reader=pep --writer=pep_html for a PEP preview.
+ Use python -m docutils.writers.odf_odt.prepstyles to strip the page
size from an ODT writer stylesheet.
+ Use the same CSV format for the :header: option and the main data of
the "csv-table" directive.
+ New option "loading" for the "image" directive. Sets the new attribute
loading of the <image> doctree element.
* Configuration changes:
+ New configuration setting root_prefix. Configurable root directory
for included files.
+ New configuration setting sources for the "buildhtml.py" application.
+ Simpler and more secure input encoding default behaviour:
# Do not use the locale encoding as fallback if Python is started in
UTF-8 mode. Stop using "latin1" as second fallback.
# Remove BOM (U+FEFF ZWNBSP at start of data) only if the
input_encoding configuration setting is None, '', 'utf-8-sig',
'utf-16', or 'utf-32'. Do not remove other ZWNBSPs.
-------------------------------------------------------------------
Sat Mar 30 15:15:42 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -26,16 +26,16 @@
%bcond_with test
%endif
Name: python-docutils%{psuffix}
Version: 0.20.1
Version: 0.21.2
Release: 0
Summary: Python Documentation Utilities
License: BSD-2-Clause AND Python-2.0 AND GPL-2.0-or-later AND GPL-3.0-or-later AND SUSE-Public-Domain
URL: https://pypi.python.org/pypi/docutils/
Source: https://files.pythonhosted.org/packages/source/d/docutils/docutils-%{version}.tar.gz
Source99: python-docutils-rpmlintrc
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(pre): update-alternatives
@@ -46,8 +46,7 @@ Recommends: python-Pygments
Recommends: python-roman
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module Pygments}
BuildRequires: %{python_module docutils = %{version}}
BuildRequires: %{python_module packaging}
# BuildRequires: %%{python_module roman}
%endif
@@ -66,11 +65,8 @@ easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
%autosetup -p1 -n docutils-%{version}
# Remove useless ".py" ending from executables:
for i in tools/rst*; do mv "$i" "${i/.py}"; done
sed -i "s|'tools/\(rst.*\)\.py'|'tools/\1'|" setup.py
find . -name \*.mp4 -print -exec chmod -x '{}' \;
# Actually seems to work with Python 3.6
sed -i -e '/python_requires/ s/7/6/' setup.py
find . -name \*.swp -delete
# Remove shebang from non-executable files
sed -i '1{/^#!/d}' \
@@ -91,7 +87,7 @@ sed -i '1{/^#!/d}' \
%install
%if !%{with test}
%pyproject_install
for binary in docutils rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html rst2html4 rst2html5 ; do
for binary in docutils rst2html rst2latex rst2man rst2odt rst2pseudoxml rst2s5 rst2xetex rst2xml rst2html4 rst2html5 ; do
%python_clone -a %{buildroot}%{_bindir}/$binary
done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -108,7 +104,7 @@ done
update-alternatives --query rst2html >/dev/null 2>&1 && update-alternatives --quiet --remove-all rst2html ||:
%post
%python_install_alternative docutils rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html rst2html4 rst2html5
%python_install_alternative docutils rst2html rst2latex rst2man rst2odt rst2pseudoxml rst2s5 rst2xetex rst2xml rst2html4 rst2html5
%postun
%python_uninstall_alternative docutils
@@ -121,12 +117,10 @@ update-alternatives --query rst2html >/dev/null 2>&1 && update-alternatives --qu
%python_alternative %{_bindir}/rst2latex
%python_alternative %{_bindir}/rst2man
%python_alternative %{_bindir}/rst2odt
%python_alternative %{_bindir}/rst2odt_prepstyles
%python_alternative %{_bindir}/rst2pseudoxml
%python_alternative %{_bindir}/rst2s5
%python_alternative %{_bindir}/rst2xetex
%python_alternative %{_bindir}/rst2xml
%python_alternative %{_bindir}/rstpep2html
%python_alternative %{_bindir}/rst2html4
%python_alternative %{_bindir}/rst2html5
%{python_sitelib}/docutils/