The NetBSD Project

CVS log for pkgsrc/textproc/py-json5/PLIST

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-json5

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Apr 14 12:27:08 2025 UTC (19 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, HEAD
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
py-json5: updated to 0.12.0

v0.12.0 (2025-04-03)

Roll back pyproject.toml change for licensing so that we can still build the package on 3.8.
Upgrade devenv package dependencies to latest versions; they now need Python 3.9 or newer, though json5 itself still supports 3.8.

v0.11.0 (2025-04-01)

Add a couple examples to the documentation and run doctest over them.
Fix a typing issue in dump and dumps with the cls argument; turns out mypy was right and I was wrong and I didn't realize it :).
Introduce a new parse method that can be used to iterate through a string, extracting multiple values.
Add a new consume_trailing parameter to load/loads/parse that specifies whether to keep parsing after a valid object is reached. By default, this is True and the string must only contain trailing whitespace. If set to False, parsing will stop when a valid object is reached.
Add a new start parameter to load/loads/parse to specify the zero-based offset to start parsing the string or file from.
GitHub issue 60. Fix a bug where we were attempting to allow '--4' as a valid number.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Feb 4 14:19:25 2025 UTC (21 months, 1 week ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -4 lines
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.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed May 8 09:12:15 2024 UTC (2 years, 6 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -1 lines
py-json5: updated to 0.9.25

v0.9.25 (2024-04-12)

GitHub issue 81 Explicitly specify the directory to use for the package in pyproject.toml.

v0.9.24 (2024-03-16)

Update GitHub workflow config to remove unnecessary steps and run on pull requests as well as commits.
Added note about removing hypothesize in v0.9.23.
No code changes.

v0.9.23 (2024-03-16)

Lots of cleanup:
Removed old code needed for Python2 compatibility.
Removed tests using hypothesize. This ran model-based checks and didn't really add anything useful in terms of coverage to the test suite, and it introduced dependencies and slowed down the tests significantly. It was a good experiment but I think we're better off without it.
Got everything linting cleanly with pylint 3.1 and ruff check using ruff 0.3.3 (Note that commit message in 00d73a3 says pylint 3.11, which is a typo).
Code reformatted with ruff format
Added missing tests to bring coverage up to 100%.
Lots of minor code changes as the result of linting and coverage testing, but no intentional functional differences.

v0.9.22 (2024-03-06)

Attempt to fix the GitHub CI configuration now that setup.py is gone. Also, test on 3.12 instead of 3.11.
No code changes.

v0.9.21 (2024-03-06)

Moved the benchmarks/*.json data files' license information to //LICENSE to (hopefully) make the Google linter happy.

v0.9.20 (2024-03-03)

Added json5.__version__ in addition to json5.VERSION.
More packaging modernization (no more setup.{cfg,py} files).
Mark Python3.12 as supported in project.classifiers.
Updated the //run script to use python3.

v0.9.19 (2024-03-03)

Replaced the benchmarking data files that came from chromium.org with three files obtained from other datasets on GitHub. Since this repo is vendored into the chromium/src repo it was occasionally confusing people who thought the data was actually used for non-benchmarking purposes and thus updating it for whatever reason.
No code changes.

v0.9.18 (2024-02-29)

Add typing information to the module. This is kind of a big change, but there should be no functional differences.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Feb 20 19:33:39 2024 UTC (2 years, 8 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +7 -8 lines
py-json5: updated to 0.9.17

v0.9.17 (2024-02-19)

Move from setup.py to pyproject.toml.
No code changes (other than the version increasing).

v0.9.16 (2024-02-19)

Drop Python2 from setup.py
Add minimal packaging instructions to //README.md.

v0.9.15 (2024-02-19)

Merge in Pull request 66 to include the tests and sample file in a source distribution.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Aug 26 11:50:44 2023 UTC (3 years, 2 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3
py-json5: added version 0.9.14

A Python implementation of the JSON5 data format.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>