pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/py-docutils



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue May 16 22:37:29 UTC 2023

Modified Files:
        pkgsrc/textproc/py-docutils: Makefile PLIST distinfo

Log Message:
py-docutils: update to 0.20.

Release 0.20 (2023-05-09)
=========================

* General

  - Docutils 0.20 is the last version supporting Python 3.7 and 3.8.
  - Support Python 3.11 (patch #198 by Hugo van Kemenade).

* docutils/core.py

  - New functions `rst2…()` for use as "console_scripts" `entry points`_.
    (cf. `Future changes` in the RELEASE-NOTES_).

* docutils/frontend.py

  - New configuration setting "output_". Obsoletes the ``<destination>``
    positional argument (cf. `Future changes` in the RELEASE-NOTES_).

* docutils/languages/
  docutils/parsers/rst/languages/

  - Support Ukrainian. Patch by Dmytro Kazanzhy.

* docutils/nodes.py

  - Fix `previous_sibling()` method that led to invalid HTML in some cases
    (cf. patch #195).
  - Fix bug #463. Spurious comma in deprecation warning.

* docutils/parsers/recommonmark_wrapper.py

  - Improved mock Sphinx module.

* docutils/transforms/__init__.py

  - `Transformer.populate_from_components()` now silently ignores
    components that are not instances of `docutils.TransformSpec`.

* docutils/transforms/frontmatter.py

  - Accept author names with initials like ``A. Einstein`` in the "author"
    `bibliographic field`_ instead of rising an error
    (generally, such names are `parsed as enumerated list`__).

    .. _bibliographic field:
        docs/ref/rst/restructuredtext.html#bibliographic-fields
    __ docs/ref/rst/restructuredtext.html#enumerated-lists

* docutils/transforms/references.py

  - `DanglingReferences` ignores `citation_reference` nodes if the
    "use_bibex" setting is active. (In this case, citations are provided
    by LaTeX/BibTeX.) Fixes bug #384.

* docutils/utils/__init__.py

  - New utility function `xml_declaration()`.
  - `DependencyList.add()` accepts `pathlib.Path` instances.
  - `find_file_in_dirs()` now returns a POSIX path also on Windows;
    `get_stylesheet_list()` no longer converts ``\`` to ``/``.

* docutils/utils/math/latex2mathml.py

  - Support "mod" notation for modulo operation / modulus arithmetic.

* docutils/utils/math/tex2mathml_extern.py

  - Support `Pandoc` as alternative LaTeX to MathML converter.
    Patch by Ximin Luo.

* docutils/writers/_html_base.py

  - Refactoring of `HTMLTranslator` initialization and collecting of
    document "parts". Adapt HTML writers importing `_html_base`.

    Changes to the HTML output (no space character before closing tag of
    XML declaration, order of metadata elements)
    don't affect the HTML semantics, styling, and rendering.

  - 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.

    __ https://www.w3.org/TR/dpub-aria-1.1/#doc-footnote

* docutils/writers/latex2e/__init__.py

  - 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()`.
  - Ensure POSIX paths in stylesheet loading macros.

* docutils/writers/latex2e/titlepage.tex

  - Drop ``\usepackage{fixltx2e}`` from template.
    (Obsolete since 2015 and dropped from other templates in Docutils 0.14.)

* docutils/writers/manpage.py

  - Do not output empty "manual" in ``.TH``.

* docutils/writers/xetex/__init__.py

  - Ignore settings in the [latex2e writer] configuration file section.
    Place common settings in section [latex writers].

* setup.py

  - Fix SetuptoolsDeprecationWarning: ``Installing '' as data is deprecated``
    by adding data directories to package_data.packages list.

* tox.ini

  - Extracted flake8 configuration and moved to ``.flake8``.
  - changedir to directory ``test`` to avoid path problems.

* test/

  - Refactored tests to use common `unittest` idioms.
    Fixes errors when running the test suite with ``python -m unittest``
    or external test frameworks, such as Pytest_.

  .. _pytest: https://pypi.org/project/pytest/

* test/coverage.sh

  - Removed. Use the coverage.py_ project instead,
    ``coverage run test/alltests.py`` and ``coverage report``.

  .. _coverage.py: https://pypi.org/project/coverage/

* tools/

  - Moved ``quicktest.py`` to ``tools/dev/``.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 pkgsrc/textproc/py-docutils/Makefile
cvs rdiff -u -r1.29 -r1.30 pkgsrc/textproc/py-docutils/PLIST
cvs rdiff -u -r1.28 -r1.29 pkgsrc/textproc/py-docutils/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-docutils/Makefile
diff -u pkgsrc/textproc/py-docutils/Makefile:1.60 pkgsrc/textproc/py-docutils/Makefile:1.61
--- pkgsrc/textproc/py-docutils/Makefile:1.60   Tue May  9 10:14:27 2023
+++ pkgsrc/textproc/py-docutils/Makefile        Tue May 16 22:37:29 2023
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.60 2023/05/09 10:14:27 adam Exp $
+# $NetBSD: Makefile,v 1.61 2023/05/16 22:37:29 wiz Exp $
 
-DISTNAME=      docutils-0.19
-PKGREVISION=   1
+DISTNAME=      docutils-0.20
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/docutils/}

Index: pkgsrc/textproc/py-docutils/PLIST
diff -u pkgsrc/textproc/py-docutils/PLIST:1.29 pkgsrc/textproc/py-docutils/PLIST:1.30
--- pkgsrc/textproc/py-docutils/PLIST:1.29      Tue May  9 10:14:27 2023
+++ pkgsrc/textproc/py-docutils/PLIST   Tue May 16 22:37:29 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.29 2023/05/09 10:14:27 adam Exp $
+@comment $NetBSD: PLIST,v 1.30 2023/05/16 22:37:29 wiz Exp $
 bin/docutils-${PYVERSSUFFIX}
 bin/rst2html-${PYVERSSUFFIX}
 bin/rst2html4-${PYVERSSUFFIX}
@@ -116,6 +116,9 @@ ${PYSITELIB}/docutils/languages/sk.pyo
 ${PYSITELIB}/docutils/languages/sv.py
 ${PYSITELIB}/docutils/languages/sv.pyc
 ${PYSITELIB}/docutils/languages/sv.pyo
+${PYSITELIB}/docutils/languages/uk.py
+${PYSITELIB}/docutils/languages/uk.pyc
+${PYSITELIB}/docutils/languages/uk.pyo
 ${PYSITELIB}/docutils/languages/zh_cn.py
 ${PYSITELIB}/docutils/languages/zh_cn.pyc
 ${PYSITELIB}/docutils/languages/zh_cn.pyo
@@ -279,6 +282,9 @@ ${PYSITELIB}/docutils/parsers/rst/langua
 ${PYSITELIB}/docutils/parsers/rst/languages/sv.py
 ${PYSITELIB}/docutils/parsers/rst/languages/sv.pyc
 ${PYSITELIB}/docutils/parsers/rst/languages/sv.pyo
+${PYSITELIB}/docutils/parsers/rst/languages/uk.py
+${PYSITELIB}/docutils/parsers/rst/languages/uk.pyc
+${PYSITELIB}/docutils/parsers/rst/languages/uk.pyo
 ${PYSITELIB}/docutils/parsers/rst/languages/zh_cn.py
 ${PYSITELIB}/docutils/parsers/rst/languages/zh_cn.pyc
 ${PYSITELIB}/docutils/parsers/rst/languages/zh_cn.pyo

Index: pkgsrc/textproc/py-docutils/distinfo
diff -u pkgsrc/textproc/py-docutils/distinfo:1.28 pkgsrc/textproc/py-docutils/distinfo:1.29
--- pkgsrc/textproc/py-docutils/distinfo:1.28   Wed May  3 19:07:52 2023
+++ pkgsrc/textproc/py-docutils/distinfo        Tue May 16 22:37:29 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.28 2023/05/03 19:07:52 wiz Exp $
+$NetBSD: distinfo,v 1.29 2023/05/16 22:37:29 wiz Exp $
 
-BLAKE2s (docutils-0.19.tar.gz) = f32fed116e9478568694df508f2e78b2717eb75ab2b3f1b75f82194842b06b43
-SHA512 (docutils-0.19.tar.gz) = fb904a899f2b6f3c07c5079577bd7c52a3182cb85f6a4149391e523498df15bfa317f0c04095b890beeb3f89c2b444875a2a609d880ac4d7fbc3125e46b37ea5
-Size (docutils-0.19.tar.gz) = 2056383 bytes
+BLAKE2s (docutils-0.20.tar.gz) = e238deeedc1c6e72ba336ffb4bff47e86107e828f55fef52cfe9fe3cccfde90b
+SHA512 (docutils-0.20.tar.gz) = 5eb9764a61b7c6355bfa29ef7899b926f8cd40d91189558e04fec4bb418e0c7b9fd45ed18bd3de6ec1ea960ba0a5a6866f38ca1053eaab7079cf9ce20b0f4fe7
+Size (docutils-0.20.tar.gz) = 2075678 bytes



Home | Main Index | Thread Index | Old Index