Hello community,

here is the log from the commit of package python3-simplejson for 
openSUSE:Factory checked in at 2016-10-26 21:47:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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    
2016-05-17 17:12:34.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-simplejson.new/python3-simplejson.changes   
    2016-10-26 21:47:20.000000000 +0200
@@ -1,0 +2,9 @@
+Sat Oct 22 16:11:43 UTC 2016 - [email protected]
+
+- update to version 3.9.0:
+  * Workaround for bad behavior in string subclasses
+  * Fix warnings flagged by -3
+  * Update readthedocs documentation links
+  * Add build status badge to README
+
+-------------------------------------------------------------------

Old:
----
  simplejson-3.8.2.tar.gz

New:
----
  simplejson-3.9.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-simplejson.spec ++++++
--- /var/tmp/diff_new_pack.v9ZTVj/_old  2016-10-26 21:47:22.000000000 +0200
+++ /var/tmp/diff_new_pack.v9ZTVj/_new  2016-10-26 21:47:22.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python3-simplejson
-Version:        3.8.2
+Version:        3.9.0
 Release:        0
 Url:            http://github.com/simplejson/simplejson
 Summary:        Simple, fast, extensible JSON encoder/decoder for Python

++++++ simplejson-3.8.2.tar.gz -> simplejson-3.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/CHANGES.txt 
new/simplejson-3.9.0/CHANGES.txt
--- old/simplejson-3.8.2/CHANGES.txt    2016-02-15 19:02:14.000000000 +0100
+++ new/simplejson-3.9.0/CHANGES.txt    2016-10-21 13:37:05.000000000 +0200
@@ -1,3 +1,14 @@
+Version 3.9.0 released 2016-10-21
+
+* Workaround for bad behavior in string subclasses
+  https://github.com/simplejson/simplejson/issues/144
+* Fix warnings flagged by -3
+  https://github.com/simplejson/simplejson/pull/146
+* Update readthedocs documentation links
+  https://github.com/simplejson/simplejson/pull/137
+* Add build status badge to README
+  https://github.com/simplejson/simplejson/pull/134
+
 Version 3.8.2 released 2016-02-14
 
 * Fix implicit cast compiler warning in _speedups.c
@@ -318,7 +329,7 @@
 * Force unicode linebreak characters to be escaped (U+2028 and U+2029)
   http://timelessrepo.com/json-isnt-a-javascript-subset
 * Moved documentation from a git submodule to
-  http://simplejson.readthedocs.org/
+  https://simplejson.readthedocs.io/
 
 Version 2.1.6 released 2011-05-08
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/PKG-INFO 
new/simplejson-3.9.0/PKG-INFO
--- old/simplejson-3.8.2/PKG-INFO       2016-02-15 21:18:55.000000000 +0100
+++ new/simplejson-3.9.0/PKG-INFO       2016-10-21 13:38:01.000000000 +0200
@@ -1,18 +1,24 @@
 Metadata-Version: 1.1
 Name: simplejson
-Version: 3.8.2
+Version: 3.9.0
 Summary: Simple, fast, extensible JSON encoder/decoder for Python
 Home-page: http://github.com/simplejson/simplejson
 Author: Bob Ippolito
 Author-email: [email protected]
 License: MIT License
-Description: simplejson is a simple, fast, complete, correct and extensible
+Description: simplejson
+        ----------
+        
+        .. image:: 
https://travis-ci.org/simplejson/simplejson.svg?branch=master
+            :target: https://travis-ci.org/simplejson/simplejson
+        
+        simplejson is a simple, fast, complete, correct and extensible
         JSON <http://json.org> encoder and decoder for Python 2.5+
         and Python 3.3+.  It is pure Python code with no dependencies,
         but includes an optional C extension for a serious speed boost.
         
         The latest documentation for simplejson can be read online here:
-        http://simplejson.readthedocs.org/
+        https://simplejson.readthedocs.io/
         
         simplejson is the externally maintained development version of the
         json library included with Python 2.6 and Python 3.0, but maintains
@@ -35,6 +41,7 @@
         is not maintained, and should only be used as a last resort.
         
         .. _python2.2: https://github.com/simplejson/simplejson/tree/python2.2
+        https://github.com/simplejson/simplejson/tree/python2.2
         
 Platform: any
 Classifier: Development Status :: 5 - Production/Stable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/README.rst 
new/simplejson-3.9.0/README.rst
--- old/simplejson-3.8.2/README.rst     2014-07-22 22:36:17.000000000 +0200
+++ new/simplejson-3.9.0/README.rst     2016-10-21 04:58:09.000000000 +0200
@@ -1,10 +1,16 @@
+simplejson
+----------
+
+.. image:: https://travis-ci.org/simplejson/simplejson.svg?branch=master
+    :target: https://travis-ci.org/simplejson/simplejson
+
 simplejson is a simple, fast, complete, correct and extensible
 JSON <http://json.org> encoder and decoder for Python 2.5+
 and Python 3.3+.  It is pure Python code with no dependencies,
 but includes an optional C extension for a serious speed boost.
 
 The latest documentation for simplejson can be read online here:
-http://simplejson.readthedocs.org/
+https://simplejson.readthedocs.io/
 
 simplejson is the externally maintained development version of the
 json library included with Python 2.6 and Python 3.0, but maintains
@@ -27,3 +33,4 @@
 is not maintained, and should only be used as a last resort.
 
 .. _python2.2: https://github.com/simplejson/simplejson/tree/python2.2
+https://github.com/simplejson/simplejson/tree/python2.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/conf.py new/simplejson-3.9.0/conf.py
--- old/simplejson-3.8.2/conf.py        2016-02-15 19:02:14.000000000 +0100
+++ new/simplejson-3.9.0/conf.py        2016-10-21 09:55:00.000000000 +0200
@@ -36,15 +36,15 @@
 
 # General substitutions.
 project = 'simplejson'
-copyright = '2015, Bob Ippolito'
+copyright = '2016, Bob Ippolito'
 
 # The default replacements for |version| and |release|, also used in various
 # other places throughout the built documents.
 #
 # The short X.Y version.
-version = '3.8'
+version = '3.9'
 # The full version, including alpha/beta/rc tags.
-release = '3.8.2'
+release = '3.9.0'
 
 # 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.2/scripts/artifacts.py 
new/simplejson-3.9.0/scripts/artifacts.py
--- old/simplejson-3.8.2/scripts/artifacts.py   2016-02-15 21:17:38.000000000 
+0100
+++ new/simplejson-3.9.0/scripts/artifacts.py   2016-02-15 21:22:25.000000000 
+0100
@@ -36,7 +36,7 @@
     release = get_json(
         'https://api.github.com/repos/simplejson/simplejson/releases/latest')
     for asset in release['assets']:
-        download_file(asset['url'], 'dist/{name}'.format(**asset))
+        download_file(asset['browser_download_url'], 
'dist/{name}'.format(**asset))
 
 
 def main():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/setup.py 
new/simplejson-3.9.0/setup.py
--- old/simplejson-3.8.2/setup.py       2016-02-15 19:02:14.000000000 +0100
+++ new/simplejson-3.9.0/setup.py       2016-10-21 09:55:07.000000000 +0200
@@ -11,7 +11,7 @@
     DistutilsPlatformError
 
 IS_PYPY = hasattr(sys, 'pypy_translation_info')
-VERSION = '3.8.2'
+VERSION = '3.9.0'
 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.2/simplejson/__init__.py 
new/simplejson-3.9.0/simplejson/__init__.py
--- old/simplejson-3.8.2/simplejson/__init__.py 2016-02-15 19:02:14.000000000 
+0100
+++ new/simplejson-3.9.0/simplejson/__init__.py 2016-10-21 09:55:12.000000000 
+0200
@@ -97,7 +97,7 @@
     Expecting property name: line 1 column 3 (char 2)
 """
 from __future__ import absolute_import
-__version__ = '3.8.2'
+__version__ = '3.9.0'
 __all__ = [
     'dump', 'dumps', 'load', 'loads',
     'JSONDecoder', 'JSONDecodeError', 'JSONEncoder',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/simplejson/compat.py 
new/simplejson-3.9.0/simplejson/compat.py
--- old/simplejson-3.8.2/simplejson/compat.py   2014-07-22 22:30:14.000000000 
+0200
+++ new/simplejson-3.9.0/simplejson/compat.py   2016-10-21 04:58:09.000000000 
+0200
@@ -15,9 +15,6 @@
     integer_types = (int, long)
     unichr = unichr
     reload_module = reload
-    def fromhex(s):
-        return s.decode('hex')
-
 else:
     PY3 = True
     if sys.version_info[:2] >= (3, 4):
@@ -40,7 +37,4 @@
     def unichr(s):
         return u(chr(s))
 
-    def fromhex(s):
-        return bytes.fromhex(s)
-
 long_type = integer_types[-1]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/simplejson/decoder.py 
new/simplejson-3.9.0/simplejson/decoder.py
--- old/simplejson-3.8.2/simplejson/decoder.py  2014-07-22 22:30:14.000000000 
+0200
+++ new/simplejson-3.9.0/simplejson/decoder.py  2016-10-21 04:58:09.000000000 
+0200
@@ -4,7 +4,7 @@
 import re
 import sys
 import struct
-from .compat import fromhex, b, u, text_type, binary_type, PY3, unichr
+from .compat import b, u, text_type, binary_type, PY3, unichr
 from .scanner import make_scanner, JSONDecodeError
 
 def _import_c_scanstring():
@@ -22,12 +22,16 @@
 FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
 
 def _floatconstants():
-    _BYTES = fromhex('7FF80000000000007FF0000000000000')
-    # The struct module in Python 2.4 would get frexp() out of range here
-    # when an endian is specified in the format string. Fixed in Python 2.5+
-    if sys.byteorder != 'big':
-        _BYTES = _BYTES[:8][::-1] + _BYTES[8:][::-1]
-    nan, inf = struct.unpack('dd', _BYTES)
+    if sys.version_info < (2, 6):
+        _BYTES = '7FF80000000000007FF0000000000000'.decode('hex')
+        # The struct module in Python 2.4 would get frexp() out of range here
+        # when an endian is specified in the format string. Fixed in Python 
2.5+
+        if sys.byteorder != 'big':
+            _BYTES = _BYTES[:8][::-1] + _BYTES[8:][::-1]
+        nan, inf = struct.unpack('dd', _BYTES)
+    else:
+        nan = float('nan')
+        inf = float('inf')
     return nan, inf, -inf
 
 NaN, PosInf, NegInf = _floatconstants()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/simplejson/encoder.py 
new/simplejson-3.9.0/simplejson/encoder.py
--- old/simplejson-3.8.2/simplejson/encoder.py  2015-10-27 16:19:00.000000000 
+0100
+++ new/simplejson-3.9.0/simplejson/encoder.py  2016-10-21 09:52:45.000000000 
+0200
@@ -5,7 +5,7 @@
 from operator import itemgetter
 # Do not import Decimal directly to avoid reload issues
 import decimal
-from .compat import u, unichr, binary_type, string_types, integer_types, PY3
+from .compat import u, unichr, binary_type, text_type, string_types, 
integer_types, PY3
 def _import_speedups():
     try:
         from . import _speedups
@@ -46,9 +46,13 @@
     if _PY3:
         if isinstance(s, binary_type):
             s = s.decode('utf-8')
+        if type(s) is not text_type:
+            s = text_type(s)
     else:
         if isinstance(s, str) and HAS_UTF8.search(s) is not None:
             s = s.decode('utf-8')
+        if type(s) not in string_types:
+            s = text_type(s)
     def replace(match):
         return ESCAPE_DCT[match.group(0)]
     return _q + ESCAPE.sub(replace, s) + _q
@@ -61,9 +65,13 @@
     if _PY3:
         if isinstance(s, binary_type):
             s = s.decode('utf-8')
+        if type(s) is not text_type:
+            s = text_type(s)
     else:
         if isinstance(s, str) and HAS_UTF8.search(s) is not None:
             s = s.decode('utf-8')
+        if type(s) not in string_types:
+            s = text_type(s)
     def replace(match):
         s = match.group(0)
         try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/simplejson/tests/__init__.py 
new/simplejson-3.9.0/simplejson/tests/__init__.py
--- old/simplejson-3.8.2/simplejson/tests/__init__.py   2015-10-27 
16:11:46.000000000 +0100
+++ new/simplejson-3.9.0/simplejson/tests/__init__.py   2016-10-21 
08:16:35.000000000 +0200
@@ -57,6 +57,7 @@
                 'simplejson.tests.test_scanstring',
                 'simplejson.tests.test_separators',
                 'simplejson.tests.test_speedups',
+                'simplejson.tests.test_str_subclass',
                 'simplejson.tests.test_unicode',
                 'simplejson.tests.test_decimal',
                 'simplejson.tests.test_tuple',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/simplejson-3.8.2/simplejson/tests/test_str_subclass.py 
new/simplejson-3.9.0/simplejson/tests/test_str_subclass.py
--- old/simplejson-3.8.2/simplejson/tests/test_str_subclass.py  1970-01-01 
01:00:00.000000000 +0100
+++ new/simplejson-3.9.0/simplejson/tests/test_str_subclass.py  2016-10-21 
09:50:00.000000000 +0200
@@ -0,0 +1,16 @@
+from unittest import TestCase
+
+import simplejson
+from simplejson.compat import text_type, u
+
+# Tests for issue demonstrated in 
https://github.com/simplejson/simplejson/issues/144
+class WonkyTextSubclass(text_type):
+    def __getslice__(self, start, end):
+        return self.__class__('not what you wanted!')
+
+class TestStrSubclass(TestCase):
+    def test_dump_load(self):
+        for s in ['', '"hello"', 'text', u('\u005c')]:
+            self.assertEqual(
+                s,
+                simplejson.loads(simplejson.dumps(WonkyTextSubclass(s))))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/simplejson.egg-info/PKG-INFO 
new/simplejson-3.9.0/simplejson.egg-info/PKG-INFO
--- old/simplejson-3.8.2/simplejson.egg-info/PKG-INFO   2016-02-15 
21:18:55.000000000 +0100
+++ new/simplejson-3.9.0/simplejson.egg-info/PKG-INFO   2016-10-21 
13:38:01.000000000 +0200
@@ -1,18 +1,24 @@
 Metadata-Version: 1.1
 Name: simplejson
-Version: 3.8.2
+Version: 3.9.0
 Summary: Simple, fast, extensible JSON encoder/decoder for Python
 Home-page: http://github.com/simplejson/simplejson
 Author: Bob Ippolito
 Author-email: [email protected]
 License: MIT License
-Description: simplejson is a simple, fast, complete, correct and extensible
+Description: simplejson
+        ----------
+        
+        .. image:: 
https://travis-ci.org/simplejson/simplejson.svg?branch=master
+            :target: https://travis-ci.org/simplejson/simplejson
+        
+        simplejson is a simple, fast, complete, correct and extensible
         JSON <http://json.org> encoder and decoder for Python 2.5+
         and Python 3.3+.  It is pure Python code with no dependencies,
         but includes an optional C extension for a serious speed boost.
         
         The latest documentation for simplejson can be read online here:
-        http://simplejson.readthedocs.org/
+        https://simplejson.readthedocs.io/
         
         simplejson is the externally maintained development version of the
         json library included with Python 2.6 and Python 3.0, but maintains
@@ -35,6 +41,7 @@
         is not maintained, and should only be used as a last resort.
         
         .. _python2.2: https://github.com/simplejson/simplejson/tree/python2.2
+        https://github.com/simplejson/simplejson/tree/python2.2
         
 Platform: any
 Classifier: Development Status :: 5 - Production/Stable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/simplejson-3.8.2/simplejson.egg-info/SOURCES.txt 
new/simplejson-3.9.0/simplejson.egg-info/SOURCES.txt
--- old/simplejson-3.8.2/simplejson.egg-info/SOURCES.txt        2016-02-15 
21:18:55.000000000 +0100
+++ new/simplejson-3.9.0/simplejson.egg-info/SOURCES.txt        2016-10-21 
13:38:01.000000000 +0200
@@ -44,6 +44,7 @@
 simplejson/tests/test_scanstring.py
 simplejson/tests/test_separators.py
 simplejson/tests/test_speedups.py
+simplejson/tests/test_str_subclass.py
 simplejson/tests/test_subclass.py
 simplejson/tests/test_tool.py
 simplejson/tests/test_tuple.py


Reply via email to