simplejson 3.20.1__tar.gz → 3.20.2__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.
- {simplejson-3.20.1 → simplejson-3.20.2}/CHANGES.txt +5 -0
- {simplejson-3.20.1/simplejson.egg-info → simplejson-3.20.2}/PKG-INFO +3 -2
- {simplejson-3.20.1 → simplejson-3.20.2}/conf.py +1 -1
- {simplejson-3.20.1 → simplejson-3.20.2}/setup.py +3 -2
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/__init__.py +1 -1
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/__init__.py +2 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_float.py +8 -0
- {simplejson-3.20.1 → simplejson-3.20.2/simplejson.egg-info}/PKG-INFO +3 -2
- {simplejson-3.20.1 → simplejson-3.20.2}/LICENSE.txt +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/MANIFEST.in +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/README.rst +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/index.rst +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/scripts/make_docs.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/setup.cfg +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/_speedups.c +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/compat.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/decoder.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/encoder.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/errors.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/ordered_dict.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/raw_json.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/scanner.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/_cibw_runner.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_bigint_as_string.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_bitsize_int_as_string.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_check_circular.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_decimal.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_decode.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_default.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_dump.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_encode_basestring_ascii.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_encode_for_html.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_errors.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_fail.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_for_json.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_indent.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_item_sort_key.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_iterable.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_namedtuple.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_pass1.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_pass2.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_pass3.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_raw_json.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_recursion.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_scanstring.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_separators.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_speedups.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_str_subclass.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_subclass.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_tool.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_tuple.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tests/test_unicode.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson/tool.py +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson.egg-info/SOURCES.txt +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson.egg-info/dependency_links.txt +0 -0
- {simplejson-3.20.1 → simplejson-3.20.2}/simplejson.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: simplejson
|
|
3
|
-
Version: 3.20.
|
|
3
|
+
Version: 3.20.2
|
|
4
4
|
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
|
5
5
|
Home-page: https://github.com/simplejson/simplejson
|
|
6
6
|
Author: Bob Ippolito
|
|
@@ -39,6 +39,7 @@ Dynamic: classifier
|
|
|
39
39
|
Dynamic: description
|
|
40
40
|
Dynamic: home-page
|
|
41
41
|
Dynamic: license
|
|
42
|
+
Dynamic: license-file
|
|
42
43
|
Dynamic: platform
|
|
43
44
|
Dynamic: requires-python
|
|
44
45
|
Dynamic: summary
|
|
@@ -44,7 +44,7 @@ copyright = '2025, Bob Ippolito'
|
|
|
44
44
|
# The short X.Y version.
|
|
45
45
|
version = '3.20'
|
|
46
46
|
# The full version, including alpha/beta/rc tags.
|
|
47
|
-
release = '3.20.
|
|
47
|
+
release = '3.20.2'
|
|
48
48
|
|
|
49
49
|
# There are two options for replacing |today|: either, you set today to some
|
|
50
50
|
# non-false value, then it is used:
|
|
@@ -12,7 +12,8 @@ from distutils.errors import CCompilerError, DistutilsExecError, \
|
|
|
12
12
|
DistutilsPlatformError
|
|
13
13
|
|
|
14
14
|
IS_PYPY = hasattr(sys, 'pypy_translation_info')
|
|
15
|
-
|
|
15
|
+
IS_GRAALPY = getattr(getattr(sys, "implementation", None), "name", None) == "graalpy"
|
|
16
|
+
VERSION = '3.20.2'
|
|
16
17
|
DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python"
|
|
17
18
|
|
|
18
19
|
with open('README.rst', 'r') as f:
|
|
@@ -124,7 +125,7 @@ def run_setup(with_binary):
|
|
|
124
125
|
**kw)
|
|
125
126
|
|
|
126
127
|
|
|
127
|
-
DISABLE_SPEEDUPS = IS_PYPY or os.environ.get('DISABLE_SPEEDUPS') == '1'
|
|
128
|
+
DISABLE_SPEEDUPS = IS_PYPY or IS_GRAALPY or os.environ.get('DISABLE_SPEEDUPS') == '1'
|
|
128
129
|
CIBUILDWHEEL = os.environ.get('CIBUILDWHEEL') == '1'
|
|
129
130
|
REQUIRE_SPEEDUPS = CIBUILDWHEEL or os.environ.get('REQUIRE_SPEEDUPS') == '1'
|
|
130
131
|
try:
|
|
@@ -118,7 +118,7 @@ Serializing multiple objects to JSON lines (newline-delimited JSON)::
|
|
|
118
118
|
|
|
119
119
|
"""
|
|
120
120
|
from __future__ import absolute_import
|
|
121
|
-
__version__ = '3.20.
|
|
121
|
+
__version__ = '3.20.2'
|
|
122
122
|
__all__ = [
|
|
123
123
|
'dump', 'dumps', 'load', 'loads',
|
|
124
124
|
'JSONDecoder', 'JSONDecodeError', 'JSONEncoder',
|
|
@@ -18,6 +18,8 @@ class TestMissingSpeedups(unittest.TestCase):
|
|
|
18
18
|
def runTest(self):
|
|
19
19
|
if hasattr(sys, "pypy_translation_info"):
|
|
20
20
|
"PyPy doesn't need speedups! :)"
|
|
21
|
+
elif getattr(getattr(sys, "implementation", None), "name", None) == "graalpy":
|
|
22
|
+
"GraalPy doesn't need speedups! :)"
|
|
21
23
|
elif hasattr(self, "skipTest"):
|
|
22
24
|
self.skipTest("_speedups.so is missing!")
|
|
23
25
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import sys
|
|
1
2
|
import math
|
|
2
3
|
from unittest import TestCase
|
|
3
4
|
from simplejson.compat import long_type, text_type
|
|
@@ -36,3 +37,10 @@ class TestFloat(TestCase):
|
|
|
36
37
|
self.assertEqual(int(json.dumps(num)), num)
|
|
37
38
|
self.assertEqual(json.loads(json.dumps(num)), num)
|
|
38
39
|
self.assertEqual(json.loads(text_type(json.dumps(num))), num)
|
|
40
|
+
|
|
41
|
+
def test_float_range(self):
|
|
42
|
+
try:
|
|
43
|
+
float_range = [sys.float_info.min, sys.float_info.max]
|
|
44
|
+
except AttributeError:
|
|
45
|
+
float_range = [2.2250738585072014e-308, 1.7976931348623157e+308]
|
|
46
|
+
self.assertEqual(json.loads(json.dumps(float_range)), float_range)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: simplejson
|
|
3
|
-
Version: 3.20.
|
|
3
|
+
Version: 3.20.2
|
|
4
4
|
Summary: Simple, fast, extensible JSON encoder/decoder for Python
|
|
5
5
|
Home-page: https://github.com/simplejson/simplejson
|
|
6
6
|
Author: Bob Ippolito
|
|
@@ -39,6 +39,7 @@ Dynamic: classifier
|
|
|
39
39
|
Dynamic: description
|
|
40
40
|
Dynamic: home-page
|
|
41
41
|
Dynamic: license
|
|
42
|
+
Dynamic: license-file
|
|
42
43
|
Dynamic: platform
|
|
43
44
|
Dynamic: requires-python
|
|
44
45
|
Dynamic: summary
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|