Hello community,
here is the log from the commit of package python3-simplejson for
openSUSE:Factory checked in at 2015-11-04 15:30:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-simplejson (Old)
and /work/SRC/openSUSE:Factory/.python3-simplejson.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-simplejson"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-simplejson/python3-simplejson.changes
2015-10-28 17:17:21.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python3-simplejson.new/python3-simplejson.changes
2015-11-04 15:30:29.000000000 +0100
@@ -1,0 +2,9 @@
+Thu Oct 29 15:19:19 UTC 2015 - [email protected]
+
+- update to version 3.8.1:
+ * Fix issue with iterable_as_array and indent option
+ https://github.com/simplejson/simplejson/issues/128
+ * Fix typo in keyword argument name introduced in 3.8.0
+ https://github.com/simplejson/simplejson/pull/123
+
+-------------------------------------------------------------------
Old:
----
simplejson-3.8.0.tar.gz
New:
----
simplejson-3.8.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-simplejson.spec ++++++
--- /var/tmp/diff_new_pack.qS4rCa/_old 2015-11-04 15:30:30.000000000 +0100
+++ /var/tmp/diff_new_pack.qS4rCa/_new 2015-11-04 15:30:30.000000000 +0100
@@ -17,7 +17,7 @@
Name: python3-simplejson
-Version: 3.8.0
+Version: 3.8.1
Release: 0
Url: http://github.com/simplejson/simplejson
Summary: Simple, fast, extensible JSON encoder/decoder for Python
++++++ simplejson-3.8.0.tar.gz -> simplejson-3.8.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/CHANGES.txt
new/simplejson-3.8.1/CHANGES.txt
--- old/simplejson-3.8.0/CHANGES.txt 2015-07-18 23:46:40.000000000 +0200
+++ new/simplejson-3.8.1/CHANGES.txt 2015-10-27 16:30:57.000000000 +0100
@@ -1,4 +1,11 @@
-Version 3.8.0 released 2015-XX-XX
+Version 3.8.1 released 2015-10-27
+
+* Fix issue with iterable_as_array and indent option
+ https://github.com/simplejson/simplejson/issues/128
+* Fix typo in keyword argument name introduced in 3.8.0
+ https://github.com/simplejson/simplejson/pull/123
+
+Version 3.8.0 released 2015-07-18
* New iterable_as_array encoder option to perform lazy serialization of
any iterable objects, without having to convert to tuple or list.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/PKG-INFO
new/simplejson-3.8.1/PKG-INFO
--- old/simplejson-3.8.0/PKG-INFO 2015-07-18 23:50:32.000000000 +0200
+++ new/simplejson-3.8.1/PKG-INFO 2015-10-27 16:32:20.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: simplejson
-Version: 3.8.0
+Version: 3.8.1
Summary: Simple, fast, extensible JSON encoder/decoder for Python
Home-page: http://github.com/simplejson/simplejson
Author: Bob Ippolito
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/conf.py new/simplejson-3.8.1/conf.py
--- old/simplejson-3.8.0/conf.py 2015-07-18 23:46:40.000000000 +0200
+++ new/simplejson-3.8.1/conf.py 2015-09-04 19:35:07.000000000 +0200
@@ -44,7 +44,7 @@
# The short X.Y version.
version = '3.8'
# The full version, including alpha/beta/rc tags.
-release = '3.8.0'
+release = '3.8.1'
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/setup.py
new/simplejson-3.8.1/setup.py
--- old/simplejson-3.8.0/setup.py 2015-07-18 23:46:40.000000000 +0200
+++ new/simplejson-3.8.1/setup.py 2015-09-04 19:35:02.000000000 +0200
@@ -11,7 +11,7 @@
DistutilsPlatformError
IS_PYPY = hasattr(sys, 'pypy_translation_info')
-VERSION = '3.8.0'
+VERSION = '3.8.1'
DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python"
with open('README.rst', 'r') as f:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/simplejson/__init__.py
new/simplejson-3.8.1/simplejson/__init__.py
--- old/simplejson-3.8.0/simplejson/__init__.py 2015-07-18 23:46:40.000000000
+0200
+++ new/simplejson-3.8.1/simplejson/__init__.py 2015-09-04 19:35:12.000000000
+0200
@@ -97,7 +97,7 @@
Expecting property name: line 1 column 3 (char 2)
"""
from __future__ import absolute_import
-__version__ = '3.8.0'
+__version__ = '3.8.1'
__all__ = [
'dump', 'dumps', 'load', 'loads',
'JSONDecoder', 'JSONDecodeError', 'JSONEncoder',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/simplejson/_speedups.c
new/simplejson-3.8.1/simplejson/_speedups.c
--- old/simplejson-3.8.0/simplejson/_speedups.c 2015-07-18 23:46:40.000000000
+0200
+++ new/simplejson-3.8.1/simplejson/_speedups.c 2015-09-04 19:32:50.000000000
+0200
@@ -2596,7 +2596,6 @@
"use_decimal",
"namedtuple_as_object",
"tuple_as_array",
- "iterable_as_array"
"int_as_string_bitcount",
"item_sort_key",
"encoding",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/simplejson/encoder.py
new/simplejson-3.8.1/simplejson/encoder.py
--- old/simplejson-3.8.0/simplejson/encoder.py 2015-07-18 23:46:40.000000000
+0200
+++ new/simplejson-3.8.1/simplejson/encoder.py 2015-10-27 16:19:00.000000000
+0100
@@ -496,10 +496,14 @@
chunks = _iterencode(value, _current_indent_level)
for chunk in chunks:
yield chunk
- if newline_indent is not None:
- _current_indent_level -= 1
- yield '\n' + (_indent * _current_indent_level)
- yield ']'
+ if first:
+ # iterable_as_array misses the fast path at the top
+ yield '[]'
+ else:
+ if newline_indent is not None:
+ _current_indent_level -= 1
+ yield '\n' + (_indent * _current_indent_level)
+ yield ']'
if markers is not None:
del markers[markerid]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/simplejson/tests/__init__.py
new/simplejson-3.8.1/simplejson/tests/__init__.py
--- old/simplejson-3.8.0/simplejson/tests/__init__.py 2015-05-18
19:39:10.000000000 +0200
+++ new/simplejson-3.8.1/simplejson/tests/__init__.py 2015-10-27
16:11:46.000000000 +0100
@@ -49,6 +49,7 @@
'simplejson.tests.test_fail',
'simplejson.tests.test_float',
'simplejson.tests.test_indent',
+ 'simplejson.tests.test_iterable',
'simplejson.tests.test_pass1',
'simplejson.tests.test_pass2',
'simplejson.tests.test_pass3',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/simplejson/tests/test_iterable.py
new/simplejson-3.8.1/simplejson/tests/test_iterable.py
--- old/simplejson-3.8.0/simplejson/tests/test_iterable.py 2015-07-18
23:46:40.000000000 +0200
+++ new/simplejson-3.8.1/simplejson/tests/test_iterable.py 2015-10-27
16:29:44.000000000 +0100
@@ -1,5 +1,5 @@
import unittest
-from StringIO import StringIO
+from simplejson.compat import StringIO
import simplejson as json
@@ -13,19 +13,19 @@
class TestIterable(unittest.TestCase):
def test_iterable(self):
- l = [1, 2, 3]
- for dumps in (json.dumps, iter_dumps, sio_dump):
- expect = dumps(l)
- default_expect = dumps(sum(l))
- # Default is False
- self.assertRaises(TypeError, dumps, iter(l))
- self.assertRaises(TypeError, dumps, iter(l),
iterable_as_array=False)
- self.assertEqual(expect, dumps(iter(l), iterable_as_array=True))
- # Ensure that the "default" gets called
- self.assertEqual(default_expect, dumps(iter(l), default=sum))
- self.assertEqual(default_expect, dumps(iter(l),
iterable_as_array=False, default=sum))
- # Ensure that the "default" does not get called
- self.assertEqual(
- default_expect,
- dumps(iter(l), iterable_as_array=True, default=sum))
-
\ No newline at end of file
+ for l in ([], [1], [1, 2], [1, 2, 3]):
+ for opts in [{}, {'indent': 2}]:
+ for dumps in (json.dumps, iter_dumps, sio_dump):
+ expect = dumps(l, **opts)
+ default_expect = dumps(sum(l), **opts)
+ # Default is False
+ self.assertRaises(TypeError, dumps, iter(l), **opts)
+ self.assertRaises(TypeError, dumps, iter(l),
iterable_as_array=False, **opts)
+ self.assertEqual(expect, dumps(iter(l),
iterable_as_array=True, **opts))
+ # Ensure that the "default" gets called
+ self.assertEqual(default_expect, dumps(iter(l),
default=sum, **opts))
+ self.assertEqual(default_expect, dumps(iter(l),
iterable_as_array=False, default=sum, **opts))
+ # Ensure that the "default" does not get called
+ self.assertEqual(
+ expect,
+ dumps(iter(l), iterable_as_array=True, default=sum,
**opts))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/simplejson-3.8.0/simplejson.egg-info/PKG-INFO
new/simplejson-3.8.1/simplejson.egg-info/PKG-INFO
--- old/simplejson-3.8.0/simplejson.egg-info/PKG-INFO 2015-07-18
23:50:28.000000000 +0200
+++ new/simplejson-3.8.1/simplejson.egg-info/PKG-INFO 2015-10-27
16:32:15.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: simplejson
-Version: 3.8.0
+Version: 3.8.1
Summary: Simple, fast, extensible JSON encoder/decoder for Python
Home-page: http://github.com/simplejson/simplejson
Author: Bob Ippolito