From 133dc52c9729f9b5efd539a8d865772f789e6d39a78b0e203f43e42e325496cb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 16 Jan 2025 00:38:21 +0000 Subject: [PATCH 1/2] - Use libalternatives instead of update-alternatives, bsc#1235783 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=96 --- .gitattributes | 23 ++ .gitignore | 1 + _multibuild | 3 + docutils-0.20.1.tar.gz | 3 + docutils-0.21.2.tar.gz | 3 + python-docutils-rpmlintrc | 1 + python-docutils.changes | 811 ++++++++++++++++++++++++++++++++++++++ python-docutils.spec | 144 +++++++ 8 files changed, 989 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _multibuild create mode 100644 docutils-0.20.1.tar.gz create mode 100644 docutils-0.21.2.tar.gz create mode 100644 python-docutils-rpmlintrc create mode 100644 python-docutils.changes create mode 100644 python-docutils.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/docutils-0.20.1.tar.gz b/docutils-0.20.1.tar.gz new file mode 100644 index 0000000..c945fe4 --- /dev/null +++ b/docutils-0.20.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b +size 2058365 diff --git a/docutils-0.21.2.tar.gz b/docutils-0.21.2.tar.gz new file mode 100644 index 0000000..1016329 --- /dev/null +++ b/docutils-0.21.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f +size 2204444 diff --git a/python-docutils-rpmlintrc b/python-docutils-rpmlintrc new file mode 100644 index 0000000..d97b4cf --- /dev/null +++ b/python-docutils-rpmlintrc @@ -0,0 +1 @@ +# these can't be helped diff --git a/python-docutils.changes b/python-docutils.changes new file mode 100644 index 0000000..ce568dc --- /dev/null +++ b/python-docutils.changes @@ -0,0 +1,811 @@ +------------------------------------------------------------------- +Wed Jan 15 13:51:33 UTC 2025 - Nico Krapp + +- Use libalternatives instead of update-alternatives, bsc#1235783 + +------------------------------------------------------------------- +Sun Nov 3 05:32:05 UTC 2024 - Steve Kowalik + +- 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 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 + +- Fix update-alternatives updates: docutils is the master but + rst2html from old installations can create update failures +- Fix bytecode cache errors: Don't modify python scripts after + install + +------------------------------------------------------------------- +Fri Feb 23 11:02:30 UTC 2024 - Dan Čermák + +- Drop obsolete Requires & BuildRequires on python-packaging & python-xml + +------------------------------------------------------------------- +Fri Nov 10 02:31:29 UTC 2023 - Steve Kowalik + +- 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
+ 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. +- Drop pygments-2.14.patch, no longer needed. + +------------------------------------------------------------------- +Fri Oct 13 22:59:14 UTC 2023 - Matej Cepl + +- python-roman is not actually necessary for testing. + +------------------------------------------------------------------- +Fri Apr 21 12:24:23 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Sun Apr 16 01:30:00 UTC 2023 - Matej Cepl + +- Update single spec from Factory + +------------------------------------------------------------------- +Tue Jan 24 07:15:02 UTC 2023 - Steve Kowalik + +- Refactor pygments-2.14.patch to not use distutils. + +------------------------------------------------------------------- +Tue Jan 10 15:42:55 UTC 2023 - Daniel Garcia + +- Delete sphix-6.0.0.patch +- Add pygments-2.14.patch +- The patch is related to pygments not Sphinx and the patch is updated to make + it conditional so it work with older versions of pygments, shp#docutils#201 + +------------------------------------------------------------------- +Wed Jan 4 13:09:13 UTC 2023 - Daniel Garcia + +- Add sphinx-6.0.0.patch to fix tests for new version of sphinx. + +------------------------------------------------------------------- +Wed Nov 2 12:32:50 UTC 2022 - Matej Cepl + +- Release 0.19 (2022-07-05) + - General + - Dropped support for Python 2.7, 3.5, and 3.6. and removed + compatibility hacks from code and tests. + - Code cleanup, check PEP 8 conformity with flake8 + (exceptions in file tox.ini). + - New module. Support for python -m docutils. Also used for + the docutils console script entry point. + - Let Publisher.publish() print info and prompt + when waiting for input from a terminal (cf. + https://clig.dev/#interactivity). + - Respect "input_encoding_error_handler" setting when opening + a source. + - New function error_string() obsoletes + utils.error_reporting.ErrorString. + - Class ErrorOutput moved here from utils/error_reporting. + - Use "utf-8-sig" instead of Python's default encoding if the + "input_encoding" setting is None. + - Fix error when reading of UTF-16 encoded source without + trailing newline. + - Aliases "markdown" and "commonmark" point to + "commonmark_wrapper". + - Alias for the "myst" parser + (https://pypi.org/project/myst-docutils). + - Use absolute module names in _parser_aliases instead + of two import attempts. (Keeps details if the + recommonmark_wrapper.py module raises an ImportError.) + - Prepend parser name to ImportError if importing a parser + class fails. + - New module for parsing CommonMark input. Selects a + locally installed 3rd-party parser (pycmark, myst, or + recommonmark). + - Raise ImportError, if import of the upstream parser + module fails. If called from an "include" directive, the + system-message now has source/line info. + - Adapt to and test with "recommonmark" versions 0.6.0 and + 0.7.1. + - Update PEP base URL (fixes bug #445), use "https:" scheme + in RFC base URL. + - Add reporter to Directive class attributes. + - parser_name() keeps details if converting ImportError to + ValueError. + - Don't use mutable default values for function + arguments. Fixes bug #430. + - Fix bug #435: invalid references in problematic nodes with + report_level=4. + - decode_path() returns str instance instead of + nodes.reprunicode. + - Add deprecation warning. + - Add "html writers" to config_section_dependencies. Fixes + bug #443. + - Write table column widths with 3 digits precision. Fixes + bug #444. + - Add space before "charset" meta tag closing sequence. + - Remove class value "controls" from an image node with video + content after converting it to a "control" attribute of the +