dev-python/commentjson: Remove last-rited pkg

Bug: https://bugs.gentoo.org/978274
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-21 17:35:31 +02:00
parent d6b98c3df6
commit eb20487814
5 changed files with 0 additions and 89 deletions
-1
View File
@@ -1 +0,0 @@
DIST commentjson-0.9.0.gh.tar.gz 15297 BLAKE2B a857b0fa5551079d3d37bff94fb51a903e998c4fb84e0f62a5de28d6eafe0cb8a38b3215515e72c56de0cddb661f109921c801d15b9ba93771290135adaaa5b1 SHA512 cd3d28adecbc445ed3faed7847c65a23829f408cf8aa3fa85544a0f0cf9fa5544b8aff560725cf51921f249123daf9ce9953069e99ca64a312bb4bff652512fe
@@ -1,47 +0,0 @@
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
inherit distutils-r1
DESCRIPTION="Add Python and JavaScript style comments in your JSON files"
HOMEPAGE="
https://pypi.org/project/commentjson/
https://github.com/vaidik/commentjson/
"
SRC_URI="
https://github.com/vaidik/commentjson/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
RDEPEND="
dev-python/lark[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/six[${PYTHON_USEDEP}]
dev-python/test[${PYTHON_USEDEP}]
)
"
distutils_enable_tests unittest
src_prepare() {
local PATCHES=(
# https://github.com/vaidik/commentjson/pull/54
"${FILESDIR}/${P}-py312.patch"
)
distutils-r1_src_prepare
# remove lark-parser dependency to allow painless upgrade to lark
sed -e '/lark-parser/d' -i setup.py || die
}
@@ -1,24 +0,0 @@
From 04ad293f800039c0221ff010236e589a4ba7079d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sun, 23 Jun 2024 14:54:42 +0200
Subject: [PATCH] Update test skips for Python 3.12+
Python 3.12 moves testing for `Infinity` and other constants
into `test_json/test_decode.py::test_parse_constant`.
---
commentjson/tests/test_json/test_decode.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/commentjson/tests/test_json/test_decode.py b/commentjson/tests/test_json/test_decode.py
index 6971c44..8f5e904 100644
--- a/commentjson/tests/test_json/test_decode.py
+++ b/commentjson/tests/test_json/test_decode.py
@@ -69,3 +69,8 @@ def test_string_with_utf8_bom(self):
'test case is not supported by commentjson.'))
def test_negative_index(self):
pass
+
+ @unittest.skipIf(version >= (3, 12),
+ 'Infinity as a value is not supported yet')
+ def test_parse_constant(self):
+ pass
-12
View File
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">commentjson</remote-id>
<remote-id type="github">vaidik/commentjson</remote-id>
</upstream>
</pkgmetadata>
-5
View File
@@ -179,11 +179,6 @@ dev-python/jsonschema-spec
# Removal on 2026-07-30.
dev-python/roman-numerals-py
# Michał Górny <mgorny@gentoo.org> (2026-06-29)
# Unmaintained. Requires patching since py3.12. No revdeps.
# Removal on 2026-07-29. Bug #978274.
dev-python/commentjson
# Michał Górny <mgorny@gentoo.org> (2026-06-19)
# dev-python/pytrie is broken on Python 3.14 and has not been touched
# since 2020. dev-python/autobahn and dev-python/txaio have become