git: 6f8772bed71a - main - devel/py-commentjson: create JSON files with Python and JS style inline comments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Aug 2024 20:44:51 UTC
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=6f8772bed71abb54f1ba0ae5b0f8811ce7b7d222 commit 6f8772bed71abb54f1ba0ae5b0f8811ce7b7d222 Author: Shapovalov Alexey <aishapoval@mts.ru> AuthorDate: 2024-07-04 07:17:28 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2024-08-17 20:44:38 +0000 devel/py-commentjson: create JSON files with Python and JS style inline comments Sponsored by: Serenity Cybersecurity, LLC Co-authored-by: Gleb Popov <arrowd@FreeBSD.org> --- devel/Makefile | 1 + devel/py-commentjson/Makefile | 22 ++++++++++++++++++++++ devel/py-commentjson/distinfo | 3 +++ devel/py-commentjson/files/patch-lark | 30 ++++++++++++++++++++++++++++++ devel/py-commentjson/pkg-descr | 3 +++ 5 files changed, 59 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d35a1a028d2c..adfbf321ac7d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4617,6 +4617,7 @@ SUBDIR += py-columnize SUBDIR += py-comm SUBDIR += py-commandlines + SUBDIR += py-commentjson SUBDIR += py-conditional SUBDIR += py-confection SUBDIR += py-configargparse diff --git a/devel/py-commentjson/Makefile b/devel/py-commentjson/Makefile new file mode 100755 index 000000000000..3f5a29aa0174 --- /dev/null +++ b/devel/py-commentjson/Makefile @@ -0,0 +1,22 @@ +PORTNAME= commentjson +PORTVERSION= 0.9.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= awoonyaa@gmail.com +COMMENT= Create JSON files with Python and JavaScript style inline comments +WWW= https://pypi.org/project/commentjson/ + +LICENSE= MIT + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lark>0:devel/py-lark@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-commentjson/distinfo b/devel/py-commentjson/distinfo new file mode 100755 index 000000000000..aa44f8cde800 --- /dev/null +++ b/devel/py-commentjson/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703083370 +SHA256 (commentjson-0.9.0.tar.gz) = 42f9f231d97d93aff3286a4dc0de39bfd91ae823d1d9eba9fa901fe0c7113dd4 +SIZE (commentjson-0.9.0.tar.gz) = 8653 diff --git a/devel/py-commentjson/files/patch-lark b/devel/py-commentjson/files/patch-lark new file mode 100644 index 000000000000..27ccf4ba7421 --- /dev/null +++ b/devel/py-commentjson/files/patch-lark @@ -0,0 +1,30 @@ +https://github.com/vaidik/commentjson/pull/52 + +From 5d5ffaed8dcfe9419b1cca24e61a8e3b60ff3056 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Mon, 25 Apr 2022 17:50:14 +0200 +Subject: [PATCH] Update lark-parser to lark + +The lark-parser has been renamed to lark. The newest release seems +to be compatible with commentjson's code and all tests pass, so just +update the requirement. + +Closes #51 +--- + requirements.txt | 2 +- + setup.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index 04a1370..c0019ef 100644 +--- a/setup.py ++++ setup.py +@@ -9,7 +9,7 @@ + __version__ = '0.9.0' + + install_requires = [ +- 'lark-parser>=0.7.1,<0.8.0' ++ 'lark' + ] + if sys.version_info <= (2, 6): + install_requires.append('simplejson') diff --git a/devel/py-commentjson/pkg-descr b/devel/py-commentjson/pkg-descr new file mode 100755 index 000000000000..060b4fd10c98 --- /dev/null +++ b/devel/py-commentjson/pkg-descr @@ -0,0 +1,3 @@ +commentjson (Comment JSON) is a Python package that helps you create +JSON files with Python and JavaScript style inline comments. Its API +is very similar to the Python standard library's json module.