Date: Sat, 27 Jul 2019 11:51:50 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> 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 Message-ID: <201907271151.x6RBpotC072920@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <sunpoet@FreeBSD.org> +# $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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907271151.x6RBpotC072920>