14
0

- Update to 0.20.1:

* Include tox.ini and docutils.conf in the source package
  * Docutils 0.20 is the last version supporting Python 3.7 and 3.8.
  * Support Python 3.11 (patch #198 by Hugo van Kemenade).
  * New functions `rst2…()` for use as "console_scripts" `entry points`_.
  * Fix `previous_sibling()` method that led to invalid HTML in some cases
  * Fix bug #463. Spurious comma in deprecation warning.
  * Improved mock Sphinx module.
  * `Transformer.populate_from_components()` now silently ignores
    components that are not instances of `docutils.TransformSpec`.
  * Accept author names with initials like ``A. Einstein`` in the "author"
    `bibliographic field`_ instead of rising an error
  * `DanglingReferences` ignores `citation_reference` nodes if the
    "use_bibex" setting is active.
  * New utility function `xml_declaration()`.
  * `DependencyList.add()` accepts `pathlib.Path` instances.
  * Support "mod" notation for modulo operation / modulus arithmetic.
  * Wrap definition lists with "details" class argument in a <div>
    with the "id" and "class" values of the list node.
  * Use dpub-ARIA role "doc-footnote__" (instead of ARIA role "note")
    for footnotes.
  * Do not load the `inputenc` package in UTF-8 encoded LaTeX sources.
    (UTF-8 is the default encoding for LaTeX2e since 2018).
  * Fix behaviour of the use_bibtex_ setting.
  * Outsource parts of `depart_document()` to new auxiliary methods
    `make_title()` and `append_bibliography()`.
  * Drop ``\usepackage{fixltx2e}`` from template.
  * Fix SetuptoolsDeprecationWarning: ``Installing '' as data is deprecated``
    by adding data directories to package_data.packages list.
  * Refactored tests to use common `unittest` idioms.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=88
This commit is contained in:
2023-11-10 02:32:59 +00:00
committed by Git OBS Bridge
parent 029c9c5afd
commit 6f3e8f35b9
5 changed files with 40 additions and 683 deletions

View File

@@ -26,15 +26,13 @@
%bcond_with test
%endif
Name: python-docutils%{psuffix}
Version: 0.19
Version: 0.20.1
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
# PATCH-FIX-OPENSUSE pygments-2.14.patch shp#docutils#201
Patch0: pygments-2.14.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
@@ -129,7 +127,7 @@ done
%python_alternative %{_bindir}/rst2html4
%python_alternative %{_bindir}/rst2html5
%{python_sitelib}/docutils/
%{python_sitelib}/docutils-%{version}*-info
%{python_sitelib}/docutils-%{version}.dist-info
%endif
%changelog