Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
n-takumasa committed Jun 20, 2023
1 parent 83b0724 commit 5e54788
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
11 changes: 6 additions & 5 deletions .python-version
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
3.7.9
3.8.10
3.9.13
3.10.7
3.11.0
3.7.17
3.8.17
3.9.17
3.10.12
3.11.4
3.12.0b3
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
[![Python Versions](https://img.shields.io/pypi/pyversions/json-with-comments.svg)](https://pypi.org/project/json-with-comments/)

## Features
* Remove single line (`//`) and block comments (`/* */`)
* Remove trailing commas from arrays and objects
* `load()`, `loads()`
* Remove single line (`//`) and block comments (`/* */`)
* Remove trailing commas from arrays and objects
* `dump()`, `dumps()`
* Add comments
* Add trailing commas

## Usage

Expand Down
10 changes: 5 additions & 5 deletions jsonc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

from __future__ import annotations

from io import StringIO
from copy import deepcopy
from warnings import warn
from tokenize import NL, STRING, COMMENT, TokenInfo, generate_tokens, untokenize
from collections.abc import Callable
from copy import deepcopy
from io import StringIO
from tokenize import COMMENT, NL, STRING, TokenInfo, generate_tokens, untokenize
from typing import TYPE_CHECKING, Any, TextIO
from warnings import warn

__version__ = "1.1.1"
__version__ = "1.2.0"
import json
import re
from json import JSONDecoder, JSONEncoder # for compatibility
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "json-with-comments"
version = "1.1.1"
version = "1.2.0"
description = "JSON with Comments for Python"
license = "MIT"
authors = ["Takumasa Nakamura <[email protected]>"]
Expand All @@ -14,7 +14,7 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.7, <3.12"
python = ">=3.7, <3.13"
tomli = { version = "^2.0.1", python = "<3.11" }

[tool.poetry.group.dev.dependencies]
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
isolated_build = True
envlist = py{37, 38, 39, 310, 311}
envlist = py{37, 38, 39, 310, 311, 312}

[testenv]
deps = pytest >= 7.2.0
Expand All @@ -13,3 +13,4 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

0 comments on commit 5e54788

Please sign in to comment.