pkgsrc-WIP-changes archive

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

py-mdformat: Update to 0.7.22



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Wed Jul 23 12:22:53 2025 +0200
Changeset:	ee3602beaafeda5c5b05051229977a5719c0b70c

Modified Files:
	py-mdformat/Makefile
	py-mdformat/PLIST
	py-mdformat/distinfo

Log Message:
py-mdformat: Update to 0.7.22

pkgsrc changes:
- Adjust PLIST for newer setuptools / wheel.

Changes:
0.7.22
- Performance
   - Improved import time and performance of CLI invocations that do not
     format Markdown.
- Fixed
   - No longer mutate cached TOML options or _conf.DEFAULT_OPTS.
     This should avoid some hard to debug issues in plugins' tests.
- Added
   - cache_toml keyword argument to _cli.run for disabling TOML caching.
     This is useful in tests written for plugins.

0.7.21
- Fixed
   - Circular import in plugins that import from mdformat.renderer.

0.7.20
- Deprecated
   - mdformat.codepoints.ASCII_WHITESPACE. CommonMark no longer defines
     this since v0.30.
- Added
   - --no-validate flag for disabling the AST safety check. Thank you,
     Kyle King, for the PR.
   - Added the delete control character to
     mdformat.codepoints.ASCII_CTRL as per CommonMark v0.30
- Fixed
   - The AST safety check not triggering when a code formatter plugin
     is in use, two or more code blocks are in the same file, and unsafe
     formatting happens in between the code blocks.

0.7.19
- Deprecated
   - Plugin interface:
     mdformat.plugins.ParserExtensionInterface.add_cli_options. The
     replacing interface is
     mdformat.plugins.ParserExtensionInterface.add_cli_argument_group.
- Fixed
   - Incorrect line wrap on lines right after a hard break.
     Thank you, MDW, for the issue.
   - Adding an extra leading space to paragraphs that start with space in
     line wrap modes.
   - An error on empty paragraph (Unicode space only) surrounded by
     non-paragraph elements. Thank you, Nico Schlömer, for the issue.
- Added
   - Plugin interface:
     mdformat.plugins.ParserExtensionInterface.add_cli_argument_group.
     With this plugins can now read CLI arguments merged with values from
     .mdformat.toml.
   - Option to select enabled (and required) extensions and code
     formatter languages (--extensions and --codeformatters on the CLI,
     and extensions and codeformatters keys in TOML).
   - Improved plugin list at the end of --help output: List languages
     supported by codeformatter plugin distributions, and parser
     extensions added by parser extension distributions.
- Changed
   - Style: No longer escape square bracket enclosures.
   - Style: No longer escape less than sign followed by space character.
   - Style: Convert tabs to spaces. Reduce space sequences to one space.
- Improved
   - Plugin interface: A trailing newline is added to fenced code
     blocks if a plugin fails to add it.

0.7.18
- Added
   - Option to exclude file paths using Unix-style glob patterns
     (--exclude on the CLI and exclude key in TOML). This feature is
     Python 3.13+ only. Thank you, J. Sebastian Paez, for the issue.
- Removed
   - Python 3.8 support

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ee3602beaafeda5c5b05051229977a5719c0b70c

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

diffstat:
 py-mdformat/Makefile | 4 ++--
 py-mdformat/PLIST    | 2 +-
 py-mdformat/distinfo | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs:
diff --git a/py-mdformat/Makefile b/py-mdformat/Makefile
index e092700481..36aa32f0a6 100644
--- a/py-mdformat/Makefile
+++ b/py-mdformat/Makefile
@@ -1,6 +1,6 @@
 # $NetBSD$
 
-DISTNAME=	mdformat-0.7.17
+DISTNAME=	mdformat-0.7.22
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	textproc python
 MASTER_SITES=	${MASTER_SITE_PYPI:=m/mdformat/}
@@ -10,7 +10,7 @@ HOMEPAGE=	https://mdformat.rtfd.io/
 COMMENT=	CommonMark compliant Markdown formatter
 LICENSE=	mit
 
-TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
 TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=	${PYPKGPREFIX}-markdown-it-py>=1.0.0:../../textproc/py-markdown-it-py
 
diff --git a/py-mdformat/PLIST b/py-mdformat/PLIST
index eedeae4f46..8b93c6af88 100644
--- a/py-mdformat/PLIST
+++ b/py-mdformat/PLIST
@@ -1,10 +1,10 @@
 @comment $NetBSD$
 bin/mdformat${PYVERSSUFFIX}
-${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
 ${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/mdformat/__init__.py
 ${PYSITELIB}/mdformat/__init__.pyc
diff --git a/py-mdformat/distinfo b/py-mdformat/distinfo
index ad7533f78c..ab2d16b698 100644
--- a/py-mdformat/distinfo
+++ b/py-mdformat/distinfo
@@ -1,5 +1,5 @@
 $NetBSD$
 
-BLAKE2s (mdformat-0.7.17.tar.gz) = 4b1660fb1a1f22628f986527e2a8f66a3b39651a331f9094aea22c5c5c512ee1
-SHA512 (mdformat-0.7.17.tar.gz) = eec41a25ed04724228773f45515d73382cee5259e834ac74730c6f78a526baff86769d4d09458a06c9c30a5319ae25d61f3d6bd4117a650be162f83accaf9de3
-Size (mdformat-0.7.17.tar.gz) = 36305 bytes
+BLAKE2s (mdformat-0.7.22.tar.gz) = 1197e262dba39cb0b39c05b5e1a76db34d9be52489d801453669c1d8f43e9c41
+SHA512 (mdformat-0.7.22.tar.gz) = 00f4701598a1dca60dd7b047fdb432c1c520c6b257208613ce3ebf639910ea640301b2a74e00c6d99775ffdddbeaf25c73ad73ebe0a6345b3caa39652d71efa8
+Size (mdformat-0.7.22.tar.gz) = 34610 bytes


Home | Main Index | Thread Index | Old Index