pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/py-json5
Module Name: pkgsrc
Committed By: adam
Date: Tue Feb 4 14:19:25 UTC 2025
Modified Files:
pkgsrc/textproc/py-json5: Makefile PLIST distinfo
Log Message:
py-json5: updated to 0.10.0
v0.10.0 (2024-11-25)
GitHub issue 57. Added a JSON5Encoder class that can be overridden to do custom encoding of values. This class is vaguely similar to the JSONEncoder class in the standard json library, except that it
has an encode() method that can be overridden to customize any value, not just ones the standard encoder doesn't know how to handle. It does also support a default() method that can be used to encode
things not normally encodable, like the JSONEncoder class. It does not support an iterencode method. One could probably be added in the future, although exactly how that would work and interact with
encode is a little unclear.
Restructured the code to use the new encoder class; doing so actually allowed me to delete a bunch of tediously duplicative code.
Added a new quote_style argument to dump()/dumps() to control how strings are encoded by default. For compatibility with older versions of the json5 library and the standard json library, it uses
QuoteStyle.ALWAYS_DOUBLE which encodes all strings with double quotes all the time. You can also configure it to use single quotes all the time (ALWAYS_SINGLE), and to switch between single and
double when doing so eliminates a need to escape quotes (PREFER_SINGLE and PREFER_DOUBLE). This also adds a --quote-style argument to python -m json5.
This release has a fair number of changes, but is intended to be completely backwards-compatible. Code without changes should run exactly as it did before.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/py-json5/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/textproc/py-json5/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/py-json5/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/py-json5/Makefile
diff -u pkgsrc/textproc/py-json5/Makefile:1.5 pkgsrc/textproc/py-json5/Makefile:1.6
--- pkgsrc/textproc/py-json5/Makefile:1.5 Mon Nov 18 17:22:24 2024
+++ pkgsrc/textproc/py-json5/Makefile Tue Feb 4 14:19:25 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.5 2024/11/18 17:22:24 adam Exp $
+# $NetBSD: Makefile,v 1.6 2025/02/04 14:19:25 adam Exp $
-DISTNAME= json5-0.9.28
+DISTNAME= json5-0.10.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=j/json5/}
Index: pkgsrc/textproc/py-json5/PLIST
diff -u pkgsrc/textproc/py-json5/PLIST:1.3 pkgsrc/textproc/py-json5/PLIST:1.4
--- pkgsrc/textproc/py-json5/PLIST:1.3 Wed May 8 09:12:15 2024
+++ pkgsrc/textproc/py-json5/PLIST Tue Feb 4 14:19:25 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2024/05/08 09:12:15 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2025/02/04 14:19:25 adam Exp $
bin/pyjson5-${PYVERSSUFFIX}
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
@@ -12,9 +12,6 @@ ${PYSITELIB}/json5/__init__.pyo
${PYSITELIB}/json5/__main__.py
${PYSITELIB}/json5/__main__.pyc
${PYSITELIB}/json5/__main__.pyo
-${PYSITELIB}/json5/arg_parser.py
-${PYSITELIB}/json5/arg_parser.pyc
-${PYSITELIB}/json5/arg_parser.pyo
${PYSITELIB}/json5/host.py
${PYSITELIB}/json5/host.pyc
${PYSITELIB}/json5/host.pyo
Index: pkgsrc/textproc/py-json5/distinfo
diff -u pkgsrc/textproc/py-json5/distinfo:1.4 pkgsrc/textproc/py-json5/distinfo:1.5
--- pkgsrc/textproc/py-json5/distinfo:1.4 Mon Nov 18 17:22:24 2024
+++ pkgsrc/textproc/py-json5/distinfo Tue Feb 4 14:19:25 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2024/11/18 17:22:24 adam Exp $
+$NetBSD: distinfo,v 1.5 2025/02/04 14:19:25 adam Exp $
-BLAKE2s (json5-0.9.28.tar.gz) = a8c70b146a746c9506e82a6dbe7aee9efd907a2636f71dd039457ced1f8414c8
-SHA512 (json5-0.9.28.tar.gz) = f9dd8bc14f33c92ebb8cae86f60915cb04880a037c03e8b3bc68d8bbec85e39d1add835bad3e417c1bd5215dd438f63fdb764e858438fdc86aed32cd64fba026
-Size (json5-0.9.28.tar.gz) = 41853 bytes
+BLAKE2s (json5-0.10.0.tar.gz) = 89ef850c528aa8b37da1f3eda2327dacdb6281124a3fbd679a7e0524402b9537
+SHA512 (json5-0.10.0.tar.gz) = 1c56def363c268aa256066c8e98b3a9bfba66a3756071bf6ff41929cdd98ccf5435f08103fbbc3b505abe81f39a14fa1ec50d4a984eebc52410cbb31f999b1b9
+Size (json5-0.10.0.tar.gz) = 48202 bytes
Home |
Main Index |
Thread Index |
Old Index