k3utfjson 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: k3utfjson
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: JSON dump and load with enforced UTF-8 encoding
5
5
  Author-email: Zhang Yanpo <drdr.xp@gmail.com>
6
6
  License: MIT
@@ -23,6 +23,7 @@ Provides-Extra: dev
23
23
  Requires-Dist: pytest>=7.0; extra == "dev"
24
24
  Requires-Dist: ruff; extra == "dev"
25
25
  Requires-Dist: coverage; extra == "dev"
26
+ Requires-Dist: k3ut; extra == "dev"
26
27
  Provides-Extra: publish
27
28
  Requires-Dist: build; extra == "publish"
28
29
  Requires-Dist: twine; extra == "publish"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: k3utfjson
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: JSON dump and load with enforced UTF-8 encoding
5
5
  Author-email: Zhang Yanpo <drdr.xp@gmail.com>
6
6
  License: MIT
@@ -23,6 +23,7 @@ Provides-Extra: dev
23
23
  Requires-Dist: pytest>=7.0; extra == "dev"
24
24
  Requires-Dist: ruff; extra == "dev"
25
25
  Requires-Dist: coverage; extra == "dev"
26
+ Requires-Dist: k3ut; extra == "dev"
26
27
  Provides-Extra: publish
27
28
  Requires-Dist: build; extra == "publish"
28
29
  Requires-Dist: twine; extra == "publish"
@@ -3,6 +3,7 @@
3
3
  pytest>=7.0
4
4
  ruff
5
5
  coverage
6
+ k3ut
6
7
 
7
8
  [docs]
8
9
  mkdocs>=1.5
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "k3utfjson"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "JSON dump and load with enforced UTF-8 encoding"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -35,6 +35,7 @@ dev = [
35
35
  "pytest>=7.0",
36
36
  "ruff",
37
37
  "coverage",
38
+ "k3ut",
38
39
  ]
39
40
  publish = [
40
41
  "build",
@@ -116,7 +116,8 @@ class TestUTFJson(unittest.TestCase):
116
116
 
117
117
  # encoded chars and unicode chars in one string
118
118
  self.assertEqual(
119
- "/aaa\xe7\x89\x88\xe6\x9c\xac/jfkdsl\x01", k3utfjson.load('"\/aaa\xe7\x89\x88\xe6\x9c\xac\/jfkdsl\\u0001"')
119
+ "/aaa\xe7\x89\x88\xe6\x9c\xac/jfkdsl\x01",
120
+ k3utfjson.load('"\\/aaa\xe7\x89\x88\xe6\x9c\xac\\/jfkdsl\\u0001"'),
120
121
  )
121
122
 
122
123
  self.assertEqual('{\n "我": "我"\n}', k3utfjson.dump({"我": "我"}, indent=2))
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes