diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/commentjson | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/commentjson')
| -rw-r--r-- | dev-python/commentjson/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/commentjson/commentjson-0.9.0-r2.ebuild | 47 | ||||
| -rw-r--r-- | dev-python/commentjson/files/commentjson-0.9.0-py312.patch | 24 | ||||
| -rw-r--r-- | dev-python/commentjson/metadata.xml | 9 |
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/commentjson/Manifest b/dev-python/commentjson/Manifest new file mode 100644 index 000000000000..e90fbebd7c55 --- /dev/null +++ b/dev-python/commentjson/Manifest @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000000..1d06dfffd195 --- /dev/null +++ b/dev-python/commentjson/commentjson-0.9.0-r2.ebuild @@ -0,0 +1,47 @@ +# 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 new file mode 100644 index 000000000000..dbdcfe488f83 --- /dev/null +++ b/dev-python/commentjson/files/commentjson-0.9.0-py312.patch @@ -0,0 +1,24 @@ +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 new file mode 100644 index 000000000000..d34971a915e9 --- /dev/null +++ b/dev-python/commentjson/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
