pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-pygments py-pygments: updated to 2.13.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/2613d852d6f0
branches: trunk
changeset: 383260:2613d852d6f0
user: adam <adam%pkgsrc.org@localhost>
date: Tue Aug 16 14:01:18 2022 +0000
description:
py-pygments: updated to 2.13.0
Version 2.13.0
--------------
- Added lexers:
* COMAL-80
* JMESPath
* Sql+Jinja
- Updated lexers:
* Ada: support Ada 2022
because it disturbs lexing of aspects
* Agda: allow straight quotes in module names
* C family (C, C++ and many others): allow comments between
elements of function headers, e.g. between the arguments and
the opening brace for the body
* C++: Resolve several cases of ``Error`` tokens
* Coq: add some common keywords, improve recognition of ``Set``
and qualified identifiers
* F*: Allow C-style comments anywhere in a line
* Fortran: fix catastrophic backtracking with backslashes in strings
* Go: add support for generics
* Inform: update for version 6.40
* Isabelle: recognize cartouches
* Java: support multiline strings aka. text blocks
* Kotlin: add ``value`` modifier
* LilyPond: add some missing builtins
* Macaulay2: update builtins
* Matlab session: fix traceback when a line continuation ellipsis
appears in the output
* .NET: add aliases for LibreOffice Basic, OpenOfficeBasic and
StarOffice Basic
* Nim: use ``Name.Builtin`` instead of ``Keyword.Type``
* PHP: fix `\"$var\"` inside strings
* Python: only recognize ``\N``, ``\u`` and ``\U`` escape sequences
in string literals, but not in bytes literals where they are
not supported
* Tcl: support ``${name}`` variables
* Terraform: accept leading whitespace for `<<` heredoc
delimiters
* Teraterm: Various improvements
* Spice: add support for the recently added features including more
builtin functions and bin, oct, hex number formats
- Added styles:
* GitHub dark
* StarOffice
* Nord (`nord` and `nord-darker`)
- Pygments now tries to use the ``importlib.metadata`` module to
discover plugins instead of the slower ``pkg_resources``
particular, this largely speeds up the ``pygmentize`` script when
the lexer is not specified.
``importlib.metadata`` is only available in the Python standard
library since Python 3.8. For older versions, there exists an
``importlib_metadata`` backport on PyPI. For this reason, Pygments
now defines a packaging extra ``plugins``, which adds a requirement
on ``importlib_metadata`` if the Python version is older than
3.8. Thus, in order to install Pygments with optimal plugin
support even for old Python versions, you should do::
pip install pygments[plugins]
Pygments still falls back on ``pkg_resources`` if neither
``importlib.metadata`` nor ``importlib_metadata`` is found, but it
will be slower.
- Silently ignore ``BrokenPipeError`` in the command-line interface
- The ``HtmlFormatter`` now uses the ``linespans`` attribute for
``anchorlinenos`` if the ``lineanchors`` attribute is unset
- The ``highlight``, ``lex`` and ``format`` functions no longer
wrongly report "argument must be a lexer/formatter instance, not a
class" in some cases where this is not the actual problem
- Fix warnings in doc build
- The ``codetagify`` filter now recognizes ``FIXME`` tags by default
- The ``pygmentize`` command now recognizes if the ``COLORTERM``
environment variable is set to a value indicating that true-color
support is available. In that case, it uses the ``TerminalTrueColorFormatter``
by default
- Remove redundant caches for filename patterns
- Use new non-deprecated Pillow API for text bounding box in ``ImageFormatter``
- Remove ``default_style``
- Stop treating ``DeprecationWarnings`` as errors in the unit tests
diffstat:
textproc/py-pygments/Makefile | 9 +++++++--
textproc/py-pygments/PLIST | 18 +++++++++++++++++-
textproc/py-pygments/distinfo | 8 ++++----
3 files changed, 28 insertions(+), 7 deletions(-)
diffs (103 lines):
diff -r 3b6844534452 -r 2613d852d6f0 textproc/py-pygments/Makefile
--- a/textproc/py-pygments/Makefile Tue Aug 16 13:53:08 2022 +0000
+++ b/textproc/py-pygments/Makefile Tue Aug 16 14:01:18 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.40 2022/04/26 10:53:29 adam Exp $
+# $NetBSD: Makefile,v 1.41 2022/08/16 14:01:18 adam Exp $
-DISTNAME= Pygments-2.12.0
+DISTNAME= Pygments-2.13.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=P/Pygments/}
@@ -18,6 +18,11 @@
PYTHON_VERSIONS_INCOMPATIBLE= 27
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} < 38
+DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
+.endif
+
USE_PKG_RESOURCES= yes
post-install:
diff -r 3b6844534452 -r 2613d852d6f0 textproc/py-pygments/PLIST
--- a/textproc/py-pygments/PLIST Tue Aug 16 13:53:08 2022 +0000
+++ b/textproc/py-pygments/PLIST Tue Aug 16 14:01:18 2022 +0000
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.21 2022/04/26 10:53:29 adam Exp $
+@comment $NetBSD: PLIST,v 1.22 2022/08/16 14:01:18 adam Exp $
bin/pygmentize-${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}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/pygments/__init__.py
${PYSITELIB}/pygments/__init__.pyc
@@ -234,6 +235,9 @@
${PYSITELIB}/pygments/lexers/clean.py
${PYSITELIB}/pygments/lexers/clean.pyc
${PYSITELIB}/pygments/lexers/clean.pyo
+${PYSITELIB}/pygments/lexers/comal.py
+${PYSITELIB}/pygments/lexers/comal.pyc
+${PYSITELIB}/pygments/lexers/comal.pyo
${PYSITELIB}/pygments/lexers/compiled.py
${PYSITELIB}/pygments/lexers/compiled.pyc
${PYSITELIB}/pygments/lexers/compiled.pyo
@@ -396,6 +400,9 @@
${PYSITELIB}/pygments/lexers/javascript.py
${PYSITELIB}/pygments/lexers/javascript.pyc
${PYSITELIB}/pygments/lexers/javascript.pyo
+${PYSITELIB}/pygments/lexers/jmespath.py
+${PYSITELIB}/pygments/lexers/jmespath.pyc
+${PYSITELIB}/pygments/lexers/jmespath.pyo
${PYSITELIB}/pygments/lexers/jslt.py
${PYSITELIB}/pygments/lexers/jslt.pyc
${PYSITELIB}/pygments/lexers/jslt.pyo
@@ -771,6 +778,9 @@
${PYSITELIB}/pygments/styles/fruity.py
${PYSITELIB}/pygments/styles/fruity.pyc
${PYSITELIB}/pygments/styles/fruity.pyo
+${PYSITELIB}/pygments/styles/gh_dark.py
+${PYSITELIB}/pygments/styles/gh_dark.pyc
+${PYSITELIB}/pygments/styles/gh_dark.pyo
${PYSITELIB}/pygments/styles/gruvbox.py
${PYSITELIB}/pygments/styles/gruvbox.pyc
${PYSITELIB}/pygments/styles/gruvbox.pyo
@@ -801,6 +811,9 @@
${PYSITELIB}/pygments/styles/native.py
${PYSITELIB}/pygments/styles/native.pyc
${PYSITELIB}/pygments/styles/native.pyo
+${PYSITELIB}/pygments/styles/nord.py
+${PYSITELIB}/pygments/styles/nord.pyc
+${PYSITELIB}/pygments/styles/nord.pyo
${PYSITELIB}/pygments/styles/onedark.py
${PYSITELIB}/pygments/styles/onedark.pyc
${PYSITELIB}/pygments/styles/onedark.pyo
@@ -828,6 +841,9 @@
${PYSITELIB}/pygments/styles/solarized.py
${PYSITELIB}/pygments/styles/solarized.pyc
${PYSITELIB}/pygments/styles/solarized.pyo
+${PYSITELIB}/pygments/styles/staroffice.py
+${PYSITELIB}/pygments/styles/staroffice.pyc
+${PYSITELIB}/pygments/styles/staroffice.pyo
${PYSITELIB}/pygments/styles/stata_dark.py
${PYSITELIB}/pygments/styles/stata_dark.pyc
${PYSITELIB}/pygments/styles/stata_dark.pyo
diff -r 3b6844534452 -r 2613d852d6f0 textproc/py-pygments/distinfo
--- a/textproc/py-pygments/distinfo Tue Aug 16 13:53:08 2022 +0000
+++ b/textproc/py-pygments/distinfo Tue Aug 16 14:01:18 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.26 2022/04/26 10:53:29 adam Exp $
+$NetBSD: distinfo,v 1.27 2022/08/16 14:01:18 adam Exp $
-BLAKE2s (Pygments-2.12.0.tar.gz) = c2303298bfdcaaf97ed6f333abc4222ef6d648ff795900d858799a8925d653bf
-SHA512 (Pygments-2.12.0.tar.gz) = 70bbfaefeb34f9afb5d74aa924ac3da4a913d1c7f607c0b3f80b6cd25c88a8996e516a689062bf2009c472b29999e309eb044f0f427fa1ea8479bf921b51c524
-Size (Pygments-2.12.0.tar.gz) = 4282017 bytes
+BLAKE2s (Pygments-2.13.0.tar.gz) = 910784f6e02dfb96265984ce4493c34e3941a5a92139134b2623faf4ce1ae259
+SHA512 (Pygments-2.13.0.tar.gz) = d492acf112423fa997f35d6d3cae18b89bf11619c696879c6df49697dca933b6d54d7cb22907e06812e0a562f03e8ed5ccefde5247bc1c51cf2d3d69e7d65422
+Size (Pygments-2.13.0.tar.gz) = 4324285 bytes
Home |
Main Index |
Thread Index |
Old Index