summaryrefslogtreecommitdiff
path: root/dev-python/commentjson
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/commentjson')
-rw-r--r--dev-python/commentjson/Manifest1
-rw-r--r--dev-python/commentjson/commentjson-0.9.0-r2.ebuild47
-rw-r--r--dev-python/commentjson/files/commentjson-0.9.0-py312.patch24
-rw-r--r--dev-python/commentjson/metadata.xml12
4 files changed, 0 insertions, 84 deletions
diff --git a/dev-python/commentjson/Manifest b/dev-python/commentjson/Manifest
deleted file mode 100644
index e90fbebd7c55..000000000000
--- a/dev-python/commentjson/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST commentjson-0.9.0.gh.tar.gz 15297 BLAKE2B a857b0fa5551079d3d37bff94fb51a903e998c4fb84e0f62a5de28d6eafe0cb8a38b3215515e72c56de0cddb661f109921c801d15b9ba93771290135adaaa5b1 SHA512 cd3d28adecbc445ed3faed7847c65a23829f408cf8aa3fa85544a0f0cf9fa5544b8aff560725cf51921f249123daf9ce9953069e99ca64a312bb4bff652512fe
diff --git a/dev-python/commentjson/commentjson-0.9.0-r2.ebuild b/dev-python/commentjson/commentjson-0.9.0-r2.ebuild
deleted file mode 100644
index 1d06dfffd195..000000000000
--- a/dev-python/commentjson/commentjson-0.9.0-r2.ebuild
+++ /dev/null
@@ -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_{13..14} )
-
-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
-}
diff --git a/dev-python/commentjson/files/commentjson-0.9.0-py312.patch b/dev-python/commentjson/files/commentjson-0.9.0-py312.patch
deleted file mode 100644
index dbdcfe488f83..000000000000
--- a/dev-python/commentjson/files/commentjson-0.9.0-py312.patch
+++ /dev/null
@@ -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
diff --git a/dev-python/commentjson/metadata.xml b/dev-python/commentjson/metadata.xml
deleted file mode 100644
index e3123799bf5b..000000000000
--- a/dev-python/commentjson/metadata.xml
+++ /dev/null
@@ -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>