From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EBA8E1581E7 for ; Wed, 24 Apr 2024 16:36:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3ABA8E299F; Wed, 24 Apr 2024 16:36:49 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 20C1FE299F for ; Wed, 24 Apr 2024 16:36:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2E7FB3431D7 for ; Wed, 24 Apr 2024 16:36:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 886251758 for ; Wed, 24 Apr 2024 16:36:46 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1713976595.f615aa42e328f6046f98e9c7742ad4eb2302b5c1.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pygments-github-lexers/files/, dev-python/pygments-github-lexers/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch dev-python/pygments-github-lexers/metadata.xml dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild X-VCS-Directories: dev-python/pygments-github-lexers/files/ dev-python/pygments-github-lexers/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: f615aa42e328f6046f98e9c7742ad4eb2302b5c1 X-VCS-Branch: master Date: Wed, 24 Apr 2024 16:36:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 11f06b02-731b-4cff-b26d-44b42962feee X-Archives-Hash: d3e71f6890dd531b5c2e8ad3168f4a1a commit: f615aa42e328f6046f98e9c7742ad4eb2302b5c1 Author: Patrick McLean gentoo org> AuthorDate: Wed Apr 24 15:32:50 2024 +0000 Commit: Patrick McLean gentoo org> CommitDate: Wed Apr 24 16:36:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f615aa42 dev-python/pygments-github-lexers: Revbump, add py312 (bug #929490) Add patch to get rid of warnings about invalid escape sequences. Closes: https://bugs.gentoo.org/929490 Signed-off-by: Patrick McLean gentoo.org> ...ents-github-lexers-0.0.5-escape-sequences.patch | 22 ++++++++++++++++++++++ dev-python/pygments-github-lexers/metadata.xml | 2 +- ...uild => pygments-github-lexers-0.0.5-r2.ebuild} | 9 ++++++--- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch b/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch new file mode 100644 index 000000000000..65c90e857bb2 --- /dev/null +++ b/dev-python/pygments-github-lexers/files/pygments-github-lexers-0.0.5-escape-sequences.patch @@ -0,0 +1,22 @@ +diff --git a/pygments_github_lexers/github.py b/pygments_github_lexers/github.py +index d2fa4b2..36a5c94 100644 +--- a/pygments_github_lexers/github.py ++++ b/pygments_github_lexers/github.py +@@ -53,7 +53,7 @@ class Dasm16Lexer(RegexLexer): + + # Regexes yo + char = r'[a-zA-Z$._0-9@]' +- identifier = r'(?:[a-zA-Z$_]' + char + '*|\.' + char + '+)' ++ identifier = r'(?:[a-zA-Z$_]' + char + r'*|\.' + char + '+)' + number = r'[+-]?(?:0[xX][a-zA-Z0-9]+|\d+)' + binary_number = r'0b[01_]+' + instruction = r'(?i)(' + '|'.join(INSTRUCTIONS) + ')' +@@ -379,7 +379,7 @@ class TOMLLexer(RegexLexer): + (r'#.*?$', Comment.Single), + (r'"(\\\\|\\"|[^"])*"', String), + (r'(true|false)$', Keyword.Constant), +- ('[a-zA-Z_][a-zA-Z0-9_\-]*', Name), ++ (r'[a-zA-Z_][a-zA-Z0-9_\-]*', Name), + + # Datetime + (r'\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z', Number.Integer), diff --git a/dev-python/pygments-github-lexers/metadata.xml b/dev-python/pygments-github-lexers/metadata.xml index ad287ae27558..90e6c7f88d46 100644 --- a/dev-python/pygments-github-lexers/metadata.xml +++ b/dev-python/pygments-github-lexers/metadata.xml @@ -6,7 +6,7 @@ Patrick McLean - pygments-github-lexers + pygments-github-lexers liluo/pygments-github-lexers diff --git a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild similarity index 74% rename from dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild rename to dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild index c367787797d7..dba3d0327867 100644 --- a/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r1.ebuild +++ b/dev-python/pygments-github-lexers/pygments-github-lexers-0.0.5-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 2019-2023 Gentoo Authors +# Copyright 2019-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{9..11} pypy3 ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 @@ -14,7 +14,6 @@ SRC_URI="https://github.com/liluo/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" RDEPEND=" dev-python/pygments[${PYTHON_USEDEP}] @@ -23,4 +22,8 @@ BDEPEND=" ${RDEPEND} " +PATCHES=( + "${FILESDIR}/pygments-github-lexers-0.0.5-escape-sequences.patch" +) + # no tests