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: Thu Apr 18 09:01:56 UTC 2024
Modified Files:
pkgsrc/textproc/py-docutils: ALTERNATIVES Makefile PLIST distinfo
Log Message:
py-docutils: update to 0.21.1.
Release 0.21.1 (2024-04-10)
===========================
The sdist in 0.21 was incomplete
- pypi allows no file replacing
- adding a postrelease suffix "post1": docutils-0.21.post1.tar.gz
works on pypi, but fails with pip because the metadata differs.
But if the metadata is 0.21.post1 pypi makes it a new release.
0.21.1 is the same code except for the version number.
Release 0.21 (2024-04-09)
=========================
* General
- Drop support for Python 3.7 and 3.8.
- Updated build system to use Flit_ (patch #186 by Adam Turner).
Removed ``setup.py``.
- Provide ``rst2*`` "console_scripts" `entry points`_
(without the ``.py`` extension) instead of installing the
``rst2*.py`` front end tools in the binary PATH.
.. _Flit: https://github.com/pypa/flit/
* docs/ref/docutils.dtd
- The <image> element accepts a new attribute "loading".
- Fix definitions (no change to actual behaviour):
* The <math_block> element uses the attribute "xml:space".
* The <raw> element may contain text only (no inline elements).
* The <topic> element uses the "depth" and "local" attributes to
store "contents" directive options when used as placeholder for a
generated table of contents (LaTeX writers with `use_latex_toc`_
setting).
- Documentation fix:
Reference names (``%refname.type`` and ``%refnames.type``)
are whitespace-normalized but **not** always downcased.
* docutils/frontend.py
- Allow `validate_*()` functions to be called with just the "value"
argument but keep the legacy interface for use with optparse.
- New function `frontend.validate_math_output()`.
* docutils/io.py
- 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.
.. _UTF-8 mode: https://docs.python.org/3/library/os.html#utf8-mode
.. _input encoding: docs/api/publisher.html#encodings
- Auto-close `FileInput.source` in case of reading/decoding errors.
* docutils/languages/, docutils/parsers/rst/languages/
- Mark/Fix mistranslated localizations of the "admonition" directive
name. In Docutils, "admonition" is used as a generic term for
"advice"/"advisory"/"remark", not a reprimand.
- Add support for Georgian language (patch #204 by Temuri Doghonadze).
- Update/complete Catalan translations (patch #203 by Antoni Bella Pérez).
* docutils/nodes.py
- Remove compatibility hacks `nodes.reprunicode` and `nodes.ensure_str()`.
* docutils/parsers/rst/directives/images.py
- New "image" directive option "loading".
* docutils/parsers/rst/directives/tables.py
- Use the same CSV format for the ``:header:`` option and the main data
of the "csv-table" directive.
- Move `parsers.rst.directives.Table.process_header_option()` method
to `parsers.rst.directives.CSVTable`.
* docutils/parsers/rst/states.py
- Don't split inside "< >" when parsing "option groups" (fixes bug #474).
* docutils/parsers/rst/directives/misc.py,
docutils/parsers/rst/directives/tables.py
- Consider the new root_prefix_ setting when including files with
"include", "raw", or "csv-table" directives.
* docutils/utils/math/*
- Use custom exception `utils.math.MathError` instead of
abusing `SyntaxError` for LaTeX math syntax errors.
- Unify interface of LaTeX -> MathML conversion functions.
Improve error reporting.
- Sort ℏ (`\hslash`) as "mathord", not "mathalpha".
* docutils/utils/math/latex2mathml.py
- Generate "MathML Core" to fix rendering with Chromium/Android.
Use CSS rules instead of the deprecated "columnalign" attribute
to style <mtable> as "align" environment.
Use Mathematical Alphanumeric Symbols instead of <mstyle> with
"mathvariant" attribute.
- Use <mi> instead of <mo> for character class "mathord".
- Support "aligned" environment.
- Eliminate side-effect on later import of "tex2unichar".
* docutils/utils/math/mathml_elements.py
- New module defining MathML element classes
(outsourced from latex2mathml.py).
- Base MathML element classes on `xml.etree.ElementTree`.
* docutils/utils/roman.py
- Update to version `1.4 <https://pypi.org/project/roman/4.1/>`__.
Fixes feature-request #95 (license is now ZPL 2.1).
* docutils/utils/smartquotes.py
- Pre-compile regexps once, not with every call of `educateQuotes()`
(patch #206 by Chris Sewell).
- Simplify regexps; skip replacement rules if there is nothing to replace.
* docutils/writers/html4css1/__init__.py
- Support video inclusion via ``<object>`` tags.
* docutils/writers/html5_polyglot/\*.css
- Move MathML styles to "minimal.css" (required for correct rendering).
- Highlight heading of target section also with explicit hyperlink target.
- No additional margins for line-blocks.
* docutils/writers/_html_base.py
- Stop setting the "footnote-reference" class value for footnote references.
Since 0.18, you can use the CSS selector ``[role="doc-noteref"]``.
- Support reading/embedding images also with "file:" URI.
- Warn, if image scaling fails because the image file cannot be read.
- Support video inclusion via ``<video>`` tags
(moved here from writers/html5_polyglot/__init__.py).
- New auxiliary method `HTMLTranslator.uri2imagepath()` ensures the
image file can also be read when CWD and output directory differ.
- Consider the root_prefix_ setting when converting an image URI
to a local filesystem path.
- New `\<image>`_ attribute "loading" overrides image_loading_ setting.
- Embed SVG images as ``<svg>`` instead of data-URI.
Fixes feature-request #100.
- Generate system messages for errors/warnings during the writing stage
(image transformations, math content conversion, ...).
- Close ``<dt>`` element in `depart_term()` to allow a
"definition_list_item" with multiple "terms" (cf. feature-request #60).
- Link to the document "#top" from the ToC heading
(unless toc_backlinks_ is False).
- Transfer `id` attribute from <field> elements to the respective
<field_name> child element to allow cross-references to field-list items
(<field>s are skipped in HTML output).
* docutils/writers/latex2e/__init__.py
- Fix placement of hyperlink target (label) for tables (bug #440).
- More compact LaTeX source for option-lists and description-lists
(no change in output).
* docutils/writers/manpage.py
- Put manual section in .TH in quotes.
- Skip footer to avoid the link to document source in the manpage.
- Add multiple definition list term support, see feature #60.
- Render reference, refid and refuri.
Use of ``.UR`` and ``.UE`` macros for reference markup is too brittle.
- Add preprocessor hinting tbl first line, see bug #477.
- Change tbl-Tables using box option, see bug #475.
- Apply literal block patch #205. Use ``.EE`` and ``.EX`` macros.
Thanks to G. Branden Robinson.
* docutils/writers/odf_odt/__init__.py
- Use context manager for image reading operations.
Catch `URLError` when `urllib.request.urlopen()` fails.
- Convert image URI to path if accessing a local file. Fixes bug #153.
* docutils/writers/s5_html/__init__.py
- Warn if the S5 writer cannot copy the theme files.
- Programmatic customization of theme_url_ setting no longer
overridden by the default for theme_.
* tools/buildhtml.py
- New configuration setting `sources`_.
- Match `prune`_ values with `fnmatch.fnmatch()`.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/py-docutils/ALTERNATIVES
cvs rdiff -u -r1.63 -r1.64 pkgsrc/textproc/py-docutils/Makefile
cvs rdiff -u -r1.31 -r1.32 pkgsrc/textproc/py-docutils/PLIST
cvs rdiff -u -r1.30 -r1.31 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/ALTERNATIVES
diff -u pkgsrc/textproc/py-docutils/ALTERNATIVES:1.4 pkgsrc/textproc/py-docutils/ALTERNATIVES:1.5
--- pkgsrc/textproc/py-docutils/ALTERNATIVES:1.4 Tue May 9 10:14:27 2023
+++ pkgsrc/textproc/py-docutils/ALTERNATIVES Thu Apr 18 09:01:55 2024
@@ -3,9 +3,7 @@ bin/rst2html.py @PREFIX@/bin/rst2html-@P
bin/rst2latex.py @PREFIX@/bin/rst2latex-@PYVERSSUFFIX@
bin/rst2man.py @PREFIX@/bin/rst2man-@PYVERSSUFFIX@
bin/rst2odt.py @PREFIX@/bin/rst2odt-@PYVERSSUFFIX@
-bin/rst2odt_prepstyles.py @PREFIX@/bin/rst2odt_prepstyles-@PYVERSSUFFIX@
bin/rst2pseudoxml.py @PREFIX@/bin/rst2pseudoxml-@PYVERSSUFFIX@
bin/rst2s5.py @PREFIX@/bin/rst2s5-@PYVERSSUFFIX@
bin/rst2xetex.py @PREFIX@/bin/rst2xetex-@PYVERSSUFFIX@
bin/rst2xml.py @PREFIX@/bin/rst2xml-@PYVERSSUFFIX@
-bin/rstpep2html.py @PREFIX@/bin/rstpep2html-@PYVERSSUFFIX@
Index: pkgsrc/textproc/py-docutils/Makefile
diff -u pkgsrc/textproc/py-docutils/Makefile:1.63 pkgsrc/textproc/py-docutils/Makefile:1.64
--- pkgsrc/textproc/py-docutils/Makefile:1.63 Mon Oct 23 06:37:54 2023
+++ pkgsrc/textproc/py-docutils/Makefile Thu Apr 18 09:01:55 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.63 2023/10/23 06:37:54 wiz Exp $
+# $NetBSD: Makefile,v 1.64 2024/04/18 09:01:55 wiz Exp $
-DISTNAME= docutils-0.20.1
+DISTNAME= docutils-0.21.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=d/docutils/}
@@ -11,6 +10,7 @@ HOMEPAGE= https://docutils.sourceforge.i
COMMENT= Python tool to generate documents
LICENSE= public-domain AND 2-clause-bsd
+TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core
DEPENDS+= ${PYPKGPREFIX}-roman>=1.4:../../math/py-roman
DEPENDS+= ${PYPKGPREFIX}-pygments>=0:../../textproc/py-pygments
@@ -18,21 +18,20 @@ USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
-REPLACE_PYTHON+= docutils/utils/code_analyzer.py
+REPLACE_PYTHON+= docutils/__main__.py
REPLACE_PYTHON+= docutils/utils/error_reporting.py
-REPLACE_PYTHON+= docutils/utils/math/latex2mathml.py
REPLACE_PYTHON+= docutils/utils/math/math2html.py
-REPLACE_PYTHON+= docutils/utils/punctuation_chars.py
REPLACE_PYTHON+= docutils/utils/smartquotes.py
+REPLACE_PYTHON+= docutils/writers/odf_odt/prepstyles.py
REPLACE_PYTHON+= docutils/writers/xetex/__init__.py
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} docutils docutils-${PYVERSSUFFIX} || ${TRUE}
.for bin in rst2html rst2html4 rst2html5 rst2latex rst2man rst2odt \
- rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xetex rst2xml rstpep2html
+ rst2pseudoxml rst2s5 rst2xetex rst2xml
cd ${DESTDIR}${PREFIX}/bin && \
- ${MV} ${bin}.py ${bin}-${PYVERSSUFFIX} || ${TRUE}
+ ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
.endfor
do-test:
@@ -40,5 +39,5 @@ do-test:
.include "../../lang/python/batteries-included.mk"
.include "../../lang/python/application.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/py-docutils/PLIST
diff -u pkgsrc/textproc/py-docutils/PLIST:1.31 pkgsrc/textproc/py-docutils/PLIST:1.32
--- pkgsrc/textproc/py-docutils/PLIST:1.31 Sun May 21 17:45:36 2023
+++ pkgsrc/textproc/py-docutils/PLIST Thu Apr 18 09:01:55 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.31 2023/05/21 17:45:36 wiz Exp $
+@comment $NetBSD: PLIST,v 1.32 2024/04/18 09:01:55 wiz Exp $
bin/docutils-${PYVERSSUFFIX}
bin/rst2html-${PYVERSSUFFIX}
bin/rst2html4-${PYVERSSUFFIX}
@@ -6,17 +6,15 @@ bin/rst2html5-${PYVERSSUFFIX}
bin/rst2latex-${PYVERSSUFFIX}
bin/rst2man-${PYVERSSUFFIX}
bin/rst2odt-${PYVERSSUFFIX}
-bin/rst2odt_prepstyles-${PYVERSSUFFIX}
bin/rst2pseudoxml-${PYVERSSUFFIX}
bin/rst2s5-${PYVERSSUFFIX}
bin/rst2xetex-${PYVERSSUFFIX}
bin/rst2xml-${PYVERSSUFFIX}
-bin/rstpep2html-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/COPYING.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
${PYSITELIB}/docutils/__init__.py
${PYSITELIB}/docutils/__init__.pyc
${PYSITELIB}/docutils/__init__.pyo
@@ -26,6 +24,7 @@ ${PYSITELIB}/docutils/__main__.pyo
${PYSITELIB}/docutils/core.py
${PYSITELIB}/docutils/core.pyc
${PYSITELIB}/docutils/core.pyo
+${PYSITELIB}/docutils/docutils.conf
${PYSITELIB}/docutils/examples.py
${PYSITELIB}/docutils/examples.pyc
${PYSITELIB}/docutils/examples.pyo
@@ -86,6 +85,9 @@ ${PYSITELIB}/docutils/languages/it.pyo
${PYSITELIB}/docutils/languages/ja.py
${PYSITELIB}/docutils/languages/ja.pyc
${PYSITELIB}/docutils/languages/ja.pyo
+${PYSITELIB}/docutils/languages/ka.py
+${PYSITELIB}/docutils/languages/ka.pyc
+${PYSITELIB}/docutils/languages/ka.pyo
${PYSITELIB}/docutils/languages/ko.py
${PYSITELIB}/docutils/languages/ko.pyc
${PYSITELIB}/docutils/languages/ko.pyo
@@ -252,6 +254,9 @@ ${PYSITELIB}/docutils/parsers/rst/langua
${PYSITELIB}/docutils/parsers/rst/languages/ja.py
${PYSITELIB}/docutils/parsers/rst/languages/ja.pyc
${PYSITELIB}/docutils/parsers/rst/languages/ja.pyo
+${PYSITELIB}/docutils/parsers/rst/languages/ka.py
+${PYSITELIB}/docutils/parsers/rst/languages/ka.pyc
+${PYSITELIB}/docutils/parsers/rst/languages/ka.pyo
${PYSITELIB}/docutils/parsers/rst/languages/ko.py
${PYSITELIB}/docutils/parsers/rst/languages/ko.pyc
${PYSITELIB}/docutils/parsers/rst/languages/ko.pyo
@@ -357,6 +362,12 @@ ${PYSITELIB}/docutils/utils/math/latex2m
${PYSITELIB}/docutils/utils/math/math2html.py
${PYSITELIB}/docutils/utils/math/math2html.pyc
${PYSITELIB}/docutils/utils/math/math2html.pyo
+${PYSITELIB}/docutils/utils/math/mathalphabet2unichar.py
+${PYSITELIB}/docutils/utils/math/mathalphabet2unichar.pyc
+${PYSITELIB}/docutils/utils/math/mathalphabet2unichar.pyo
+${PYSITELIB}/docutils/utils/math/mathml_elements.py
+${PYSITELIB}/docutils/utils/math/mathml_elements.pyc
+${PYSITELIB}/docutils/utils/math/mathml_elements.pyo
${PYSITELIB}/docutils/utils/math/tex2mathml_extern.py
${PYSITELIB}/docutils/utils/math/tex2mathml_extern.pyc
${PYSITELIB}/docutils/utils/math/tex2mathml_extern.pyo
@@ -395,6 +406,7 @@ ${PYSITELIB}/docutils/writers/html4css1/
${PYSITELIB}/docutils/writers/html5_polyglot/__init__.py
${PYSITELIB}/docutils/writers/html5_polyglot/__init__.pyc
${PYSITELIB}/docutils/writers/html5_polyglot/__init__.pyo
+${PYSITELIB}/docutils/writers/html5_polyglot/italic-field-names.css
${PYSITELIB}/docutils/writers/html5_polyglot/math.css
${PYSITELIB}/docutils/writers/html5_polyglot/minimal.css
${PYSITELIB}/docutils/writers/html5_polyglot/plain.css
Index: pkgsrc/textproc/py-docutils/distinfo
diff -u pkgsrc/textproc/py-docutils/distinfo:1.30 pkgsrc/textproc/py-docutils/distinfo:1.31
--- pkgsrc/textproc/py-docutils/distinfo:1.30 Sun May 21 17:45:36 2023
+++ pkgsrc/textproc/py-docutils/distinfo Thu Apr 18 09:01:56 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.30 2023/05/21 17:45:36 wiz Exp $
+$NetBSD: distinfo,v 1.31 2024/04/18 09:01:56 wiz Exp $
-BLAKE2s (docutils-0.20.1.tar.gz) = a81208aa0bf14b36910ddc129ab50de86e14e4c608d76077f908a8d0f565919e
-SHA512 (docutils-0.20.1.tar.gz) = a0ddca315d03677003036d6a8052ac96fbd3fcc4508564938ea684d79bedb4d322d83449c7b26e55b19b0aadd6e46ca9ac409bb16279a20f06c70e9c15ef5eb0
-Size (docutils-0.20.1.tar.gz) = 2058365 bytes
+BLAKE2s (docutils-0.21.1.tar.gz) = e64e1dd403f537ad9bd47d1ff2bb0c9720dd22c455975e4518ddacea60b954d6
+SHA512 (docutils-0.21.1.tar.gz) = 2816fe074b12d7f15fb6730339f3af5f459f50af0cd2a4922194887f48bfd9931c2f2054a17a5418585b586502b96e05ed18600d31c523084537dc72707ab0ee
+Size (docutils-0.21.1.tar.gz) = 2201080 bytes
Home |
Main Index |
Thread Index |
Old Index