From owner-svn-ports-head@freebsd.org Sat Jul 27 11:51:56 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E7044B7349; Sat, 27 Jul 2019 11:51:56 +0000 (UTC) (envelope-from sunpoet@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 30DF277F30; Sat, 27 Jul 2019 11:51:53 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 83A9626E47; Sat, 27 Jul 2019 11:51:51 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x6RBppTX072925; Sat, 27 Jul 2019 11:51:51 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x6RBpotC072920; Sat, 27 Jul 2019 11:51:50 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201907271151.x6RBpotC072920@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 27 Jul 2019 11:51:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r507398 - in head/devel: . py-json5 py-json5/files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . py-json5 py-json5/files X-SVN-Commit-Revision: 507398 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 30DF277F30 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.91 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.91)[-0.910,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jul 2019 11:51:57 -0000 Author: sunpoet Date: Sat Jul 27 11:51:50 2019 New Revision: 507398 URL: https://svnweb.freebsd.org/changeset/ports/507398 Log: Add py-json5 0.8.5 pyjson5 is a Python implementation of the JSON5 data format. JSON5 extends the JSON data interchange format to make it slightly more usable as a configuration language: - JavaScript-style comments (both single and multi-line) are legal. - Object keys may be unquoted if they are legal ECMAScript identifiers - Objects and arrays may end with trailing commas. - Strings can be single-quoted, and multi-line string literals are allowed. This project implements a reader and writer implementation for Python; where possible, it mirrors the standard Python JSON API package for ease of use. There is one notable difference from the JSON api: the load() and loads() methods support optionally checking for (and rejecting) duplicate object keys; pass allow_duplicate_keys=False to do so (duplicates are allowed by default). WWW: https://github.com/dpranke/pyjson5 Added: head/devel/py-json5/ head/devel/py-json5/Makefile (contents, props changed) head/devel/py-json5/distinfo (contents, props changed) head/devel/py-json5/files/ head/devel/py-json5/files/patch-setup.py (contents, props changed) head/devel/py-json5/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Jul 27 11:51:41 2019 (r507397) +++ head/devel/Makefile Sat Jul 27 11:51:50 2019 (r507398) @@ -4536,6 +4536,7 @@ SUBDIR += py-jsmin SUBDIR += py-json-py SUBDIR += py-json-sempai + SUBDIR += py-json5 SUBDIR += py-json_tricks SUBDIR += py-jsondiff SUBDIR += py-jsonform Added: head/devel/py-json5/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-json5/Makefile Sat Jul 27 11:51:50 2019 (r507398) @@ -0,0 +1,21 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= json5 +PORTVERSION= 0.8.5 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Python implementation of the JSON5 data format + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include Added: head/devel/py-json5/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-json5/distinfo Sat Jul 27 11:51:50 2019 (r507398) @@ -0,0 +1,3 @@ +TIMESTAMP = 1564157929 +SHA256 (json5-0.8.5.tar.gz) = 124b0f0da1ed2ff3bfe3a3e9b8630abd3c650852465cb52c15ef60b8e82a73b0 +SIZE (json5-0.8.5.tar.gz) = 23752 Added: head/devel/py-json5/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-json5/files/patch-setup.py Sat Jul 27 11:51:50 2019 (r507398) @@ -0,0 +1,10 @@ +--- setup.py.orig 2019-06-12 17:08:19 UTC ++++ setup.py +@@ -30,7 +30,6 @@ with open(os.path.join(here, 'README.md' + setup( + name='json5', + packages=find_packages(), +- package_data={'': ['../README.md']}, + entry_points={ + 'console_scripts': [ + 'pyjson5=json5.tool:main', Added: head/devel/py-json5/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-json5/pkg-descr Sat Jul 27 11:51:50 2019 (r507398) @@ -0,0 +1,17 @@ +pyjson5 is a Python implementation of the JSON5 data format. + +JSON5 extends the JSON data interchange format to make it slightly more usable +as a configuration language: +- JavaScript-style comments (both single and multi-line) are legal. +- Object keys may be unquoted if they are legal ECMAScript identifiers +- Objects and arrays may end with trailing commas. +- Strings can be single-quoted, and multi-line string literals are allowed. + +This project implements a reader and writer implementation for Python; where +possible, it mirrors the standard Python JSON API package for ease of use. + +There is one notable difference from the JSON api: the load() and loads() +methods support optionally checking for (and rejecting) duplicate object keys; +pass allow_duplicate_keys=False to do so (duplicates are allowed by default). + +WWW: https://github.com/dpranke/pyjson5