From nobody Tue Jan 11 18:55:44 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7AFAF1950A42; Tue, 11 Jan 2022 18:55:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JYKdw6trXz4gRZ; Tue, 11 Jan 2022 18:55:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 43A771EA14; Tue, 11 Jan 2022 18:55:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20BItiB1064449; Tue, 11 Jan 2022 18:55:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20BIti6S064448; Tue, 11 Jan 2022 18:55:44 GMT (envelope-from git) Date: Tue, 11 Jan 2022 18:55:44 GMT Message-Id: <202201111855.20BIti6S064448@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 1452613731e9 - main - textproc/py-myst-parser: Update to 0.16.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1452613731e9b158b9a882300a9e27c4c767ba05 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641927350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1czpcIzHPpFGgYK/zpv4Yyb82VsakGnwsHyq0UOrAq0=; b=Luf0VOlnZLvl7Rn5lWLE/b0uGM+OiZnTM+VDLVQ7CDaDhNd2pUSF5JmGCZEsdHB41g5YKJ FPWb8dDm25KOByltLz3Zj3KbH19S+3aWCojyFyjFppmuww5TAbYCk/e1jpwQEl/wTCnCRl +IGbywKEv36sxPMva1oavQO6WvN8v0cKhy2OsntxNEkOQx3TvlAsTfZjlU/hw3tmZSNOvv vdwdX5do9gh4hxrudTTdvImJF0WzLDFziUbRjyIQ9tqjIuGSQWyYyULDTzR03U6mZQ4Wcp A5nRxverEYlCXxu7mKqdo++mgaD5NiYsYaKH36nwV60QdF7nJAI5wddRJHvc7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641927350; a=rsa-sha256; cv=none; b=gBcHpK8X5nzdxg84nR7UuD/1DcEJi86Jc2KRDQPTjLiwC/x6IEMM0kyB2aeUKoOi1B13wr ZN7cLhKgaZoEvZio44lSE/ZI2esLXs1j4Y7oLPZpNkUr+Z9CgvWSpWpVMwA+4lK+k36KmW U0VqfaEdLz6JabFmuAxBJ5ETx+2clMgky9oJEcC1mNRAWpxN3nKYMNiOjNZhy0EEv5EKP3 qAi55q2Cm+CVrUM6ZDIUoTBeSN8i1T8H1erH1/JAITcBi5m3/Kc/kHiIaje55acTb8HQ9D MZsT5tMjjuBW4oUBp03rEctaBBAJFPP0DoBBhjxhjJUehNxkjkaipPteUSlwcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=1452613731e9b158b9a882300a9e27c4c767ba05 commit 1452613731e9b158b9a882300a9e27c4c767ba05 Author: Po-Chuan Hsieh AuthorDate: 2022-01-11 17:17:33 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-01-11 18:44:42 +0000 textproc/py-myst-parser: Update to 0.16.1 Changes: https://github.com/executablebooks/MyST-Parser/releases https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md --- textproc/py-myst-parser/Makefile | 3 +- textproc/py-myst-parser/distinfo | 6 +- textproc/py-myst-parser/files/patch-mdit-py | 85 ----------------------------- 3 files changed, 4 insertions(+), 90 deletions(-) diff --git a/textproc/py-myst-parser/Makefile b/textproc/py-myst-parser/Makefile index 39d948e8c334..04133874f2cc 100644 --- a/textproc/py-myst-parser/Makefile +++ b/textproc/py-myst-parser/Makefile @@ -1,8 +1,7 @@ # Created by: Po-Chuan Hsieh PORTNAME= myst-parser -PORTVERSION= 0.15.2 -PORTREVISION= 1 +PORTVERSION= 0.16.1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/textproc/py-myst-parser/distinfo b/textproc/py-myst-parser/distinfo index 12c2342d07b6..e20ae311a429 100644 --- a/textproc/py-myst-parser/distinfo +++ b/textproc/py-myst-parser/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1632037240 -SHA256 (myst-parser-0.15.2.tar.gz) = f7f3b2d62db7655cde658eb5d62b2ec2a4631308137bd8d10f296a40d57bbbeb -SIZE (myst-parser-0.15.2.tar.gz) = 48787 +TIMESTAMP = 1641046008 +SHA256 (myst-parser-0.16.1.tar.gz) = a6473b9735c8c74959b49b36550725464f4aecc4481340c9a5f9153829191f83 +SIZE (myst-parser-0.16.1.tar.gz) = 52635 diff --git a/textproc/py-myst-parser/files/patch-mdit-py b/textproc/py-myst-parser/files/patch-mdit-py deleted file mode 100644 index 8e5e29b71585..000000000000 --- a/textproc/py-myst-parser/files/patch-mdit-py +++ /dev/null @@ -1,85 +0,0 @@ -Obtained from: https://github.com/executablebooks/MyST-Parser/commit/43d5c66831cb2578bc034f9d6217d659ddc46847 - ---- myst_parser/docutils_.py.orig 2021-08-27 01:35:33 UTC -+++ myst_parser/docutils_.py -@@ -8,7 +8,6 @@ from typing import Tuple - from docutils import nodes - from docutils.parsers.rst import Parser as RstParser - from markdown_it.token import Token --from markdown_it.utils import AttrDict - - from myst_parser.main import MdParserConfig, default_parser - -@@ -47,7 +46,7 @@ class Parser(RstParser): - config = MdParserConfig(renderer="docutils") - parser = default_parser(config) - parser.options["document"] = document -- env = AttrDict() -+ env: dict = {} - tokens = parser.parse(inputstring, env) - if not tokens or tokens[0].type != "front_matter": - # we always add front matter, so that we can merge it with global keys, ---- myst_parser/docutils_renderer.py.orig 2021-08-27 01:35:33 UTC -+++ myst_parser/docutils_renderer.py -@@ -782,11 +782,13 @@ class DocutilsRenderer(RendererProtocol): - - def render_math_inline(self, token: SyntaxTreeNode) -> None: - content = token.content -- if token.markup == "$$": -- # available when dmath_double_inline is True -- node = nodes.math_block(content, content, nowrap=False, number=None) -- else: -- node = nodes.math(content, content) -+ node = nodes.math(content, content) -+ self.add_line_and_source_path(node, token) -+ self.current_node.append(node) -+ -+ def render_math_inline_double(self, token: SyntaxTreeNode) -> None: -+ content = token.content -+ node = nodes.math_block(content, content, nowrap=False, number=None) - self.add_line_and_source_path(node, token) - self.current_node.append(node) - ---- myst_parser/sphinx_parser.py.orig 2021-08-27 01:35:33 UTC -+++ myst_parser/sphinx_parser.py -@@ -6,7 +6,6 @@ from docutils import nodes - from docutils.core import publish_doctree - from docutils.parsers.rst import Parser as RstParser - from markdown_it.token import Token --from markdown_it.utils import AttrDict - from sphinx.application import Sphinx - from sphinx.io import SphinxStandaloneReader - from sphinx.parsers import Parser as SphinxParser -@@ -52,7 +51,7 @@ class MystParser(SphinxParser): - config = document.settings.env.myst_config - parser = default_parser(config) - parser.options["document"] = document -- env = AttrDict() -+ env: dict = {} - tokens = parser.parse(inputstring, env) - if not tokens or tokens[0].type != "front_matter": - # we always add front matter, so that we can merge it with global keys, ---- myst_parser/sphinx_renderer.py.orig 2021-08-27 01:35:33 UTC -+++ myst_parser/sphinx_renderer.py -@@ -122,7 +122,7 @@ class SphinxRenderer(DocutilsRenderer): - self.doc_env.myst_anchors = True # type: ignore[attr-defined] - section["myst-anchor"] = doc_slug - -- def render_math_block_eqno(self, token: SyntaxTreeNode) -> None: -+ def render_math_block_label(self, token: SyntaxTreeNode) -> None: - """Render math with referencable labels, e.g. ``$a=1$ (label)``.""" - label = token.info - content = token.content ---- setup.cfg.orig 2021-08-27 01:35:37 UTC -+++ setup.cfg -@@ -39,8 +39,8 @@ packages = find: - install_requires = - docutils>=0.15,<0.18 - jinja2 # required for substitutions, but let sphinx choose version -- markdown-it-py>=1.0.0,<2.0.0 -- mdit-py-plugins~=0.2.8 -+ markdown-it-py>=1.0.0,<3.0.0 -+ mdit-py-plugins~=0.3.0 - pyyaml - sphinx>=3.1,<5 - python_requires = >=3.6