From nobody Sat Aug 17 20:44:51 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WmW7l2V9lz5Tftr; Sat, 17 Aug 2024 20:44:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WmW7l1xFBz4MCy; Sat, 17 Aug 2024 20:44:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723927491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=P/7uMF1MkZxYwGbkGEuayz4nSF51j1uGIpr2oBjenKQ=; b=sE+bAbpm4yWDyWBuFzYkb8kUNgVcsoRKzDlqt4aVLU8KpadYCsov0IWVoe0JZjA1nM1p/A zPPbRnbrUVj+fJjnduvSiVr7mVgHqsIM+0xKnynXg0bIdu0Z0WpBa5guLI2/0MRwnGFthL GSamCaen/zOatzDNNR0dNduFmTwva0CzDUnbgyhvUGyj5UmGnvfjgUvNkdDrVc2qqbc2Ng NNFhf0SVwr33BhdaQwlXsP/ddC+KxjkB3tbQ+b2IXILoDAG+JLY2NCZawrTvDe6F8m/wGu 7AxXnIgSbPGbyGAQDKCZ5c09ildA4X9HFtlzKizx5XeiqD7Z72f+i6LfYPRxnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723927491; a=rsa-sha256; cv=none; b=pVDD+qbEOLTWm54tvchpyPxNMgkeCuusnWdvcpx53hWzUdpHDziqSw3jGd7MH3Rm7PGFOM 4fpuu1j253r5PgDV9uauxIAJigoDHTYnW2ItVgdu+uHpQf9/Mys0SFQBkKC4jt18zzjb3X XTPWZcUGQ+93GrHcP9jIlUYnNo76AIn40irDj4ytrQXKa3jbLSSLCdSGTTwZf0A+Gl9Det WwhNBW3E0X1NQ0w3MqkSWc3/SMAbbDbVXtqGHZH3kgWtsxS39AFKl5b75XX+t/aC1+dV90 91tE5MjF+gGS/Lk+W6hNLygKeXQkLIQ8QQ8jI/mqOJmpF488UWNoZ7YNLzgdEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723927491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=P/7uMF1MkZxYwGbkGEuayz4nSF51j1uGIpr2oBjenKQ=; b=fCddhPqStv5rouIr4+JI62zSFiSkahY+jPT6L49zkrtVLgRg9nP5/vVX2VHPaDR0ToIfXA S4Swu5lVEFfYF1WZRKGTS7M1pnBtUC0/1SpmYwW1ZZrDTbSIHZwdhJhkDA6dxozAyOTzBv H2NcXilDZgx7BGDCLVIiqFOfLuE0VYmB9ShNOHQYNk5SB7brfdfuW64BCJAmqcImNL2lBM Uwp871A//++TIU1ZearrDMj3HAKVyPMNl0h/vdr4CJLJ07R5Z9YA6bFvVEA7SKNcN2JYAv fhCYSsq0cy1e72Lrl4ChNEwhMkT+fV1WImPfCy7RsNd7ibyls8R9MA361tLfNg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WmW7l1XkDz14l1; Sat, 17 Aug 2024 20:44:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47HKipAK042963; Sat, 17 Aug 2024 20:44:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47HKipiN042960; Sat, 17 Aug 2024 20:44:51 GMT (envelope-from git) Date: Sat, 17 Aug 2024 20:44:51 GMT Message-Id: <202408172044.47HKipiN042960@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 6f8772bed71a - main - devel/py-commentjson: create JSON files with Python and JS style inline comments List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6f8772bed71abb54f1ba0ae5b0f8811ce7b7d222 Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=6f8772bed71abb54f1ba0ae5b0f8811ce7b7d222 commit 6f8772bed71abb54f1ba0ae5b0f8811ce7b7d222 Author: Shapovalov Alexey AuthorDate: 2024-07-04 07:17:28 +0000 Commit: Gleb Popov 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 --- 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 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?= +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.