Hello community, here is the log from the commit of package python-simplejson for openSUSE:Factory checked in at 2018-07-07 21:57:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-simplejson (Old) and /work/SRC/openSUSE:Factory/.python-simplejson.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-simplejson" Sat Jul 7 21:57:00 2018 rev:40 rq:620217 version:3.16.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-simplejson/python-simplejson.changes 2018-05-22 17:01:30.333222321 +0200 +++ /work/SRC/openSUSE:Factory/.python-simplejson.new/python-simplejson.changes 2018-07-07 21:57:19.683399111 +0200 @@ -1,0 +2,21 @@ +Mon Jul 2 11:08:58 UTC 2018 - tchva...@suse.com + +- Do not package tests + +------------------------------------------------------------------- +Mon Jul 2 01:11:41 UTC 2018 - a...@gmx.de + +- specfile: + * be more specific in %files: + %{python_sitearch}/* -> %{python_sitearch}/simplejson* + +- update to version 3.16.0: + * Restore old behavior with regard to the type of decoded empty + strings with speedups enabled on Python 2.x + https://github.com/simplejson/simplejson/pull/225 + * Add python_requires to setup.py to help pip + https://github.com/simplejson/simplejson/pull/224 + * Fix CSS in docs when built locally + https://github.com/simplejson/simplejson/pull/222 + +------------------------------------------------------------------- Old: ---- simplejson-3.15.0.tar.gz New: ---- simplejson-3.16.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-simplejson.spec ++++++ --- /var/tmp/diff_new_pack.x4JY37/_old 2018-07-07 21:57:20.095398587 +0200 +++ /var/tmp/diff_new_pack.x4JY37/_new 2018-07-07 21:57:20.099398582 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-simplejson -Version: 3.15.0 +Version: 3.16.0 Release: 0 Summary: Extensible JSON encoder/decoder for Python License: MIT OR AFL-2.1 @@ -27,6 +27,7 @@ Source: https://files.pythonhosted.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros %python_subpackages @@ -35,14 +36,6 @@ pure Python code with no dependencies, but includes an optional C extension for a speed boost. -%package test -Summary: Tests for python-simplejson -Group: Development/Languages/Python -Requires: %{name} = %{version} - -%description test -Test cases for python-simplejson - %prep %setup -q -n simplejson-%{version} @@ -52,6 +45,8 @@ %install %python_install +%python_expand rm -rf %{buildroot}%{$python_sitearch}/simplejson/tests/ +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check %python_exec setup.py test @@ -59,10 +54,6 @@ %files %{python_files} %license LICENSE.txt %doc CHANGES.txt README.rst -%exclude %{python_sitearch}/simplejson/tests/* -%{python_sitearch}/* - -%files %{python_files test} -%{python_sitearch}/simplejson/tests/* +%{python_sitearch}/simplejson* %changelog ++++++ simplejson-3.15.0.tar.gz -> simplejson-3.16.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.15.0/CHANGES.txt new/simplejson-3.16.0/CHANGES.txt --- old/simplejson-3.15.0/CHANGES.txt 2018-05-12 20:58:17.000000000 +0200 +++ new/simplejson-3.16.0/CHANGES.txt 2018-06-28 23:13:49.000000000 +0200 @@ -1,3 +1,13 @@ +Version 3.16.0 released 2018-06-28 + +* Restore old behavior with regard to the type of decoded empty + strings with speedups enabled on Python 2.x + https://github.com/simplejson/simplejson/pull/225 +* Add python_requires to setup.py to help pip + https://github.com/simplejson/simplejson/pull/224 +* Fix CSS in docs when built locally + https://github.com/simplejson/simplejson/pull/222 + Version 3.15.0 released 2018-05-12 * Clean up the C code diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.15.0/PKG-INFO new/simplejson-3.16.0/PKG-INFO --- old/simplejson-3.15.0/PKG-INFO 2018-05-12 20:58:44.000000000 +0200 +++ new/simplejson-3.16.0/PKG-INFO 2018-06-28 23:14:12.000000000 +0200 @@ -1,8 +1,8 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: simplejson -Version: 3.15.0 +Version: 3.16.0 Summary: Simple, fast, extensible JSON encoder/decoder for Python -Home-page: http://github.com/simplejson/simplejson +Home-page: https://github.com/simplejson/simplejson Author: Bob Ippolito Author-email: b...@redivi.com License: MIT License @@ -61,3 +61,4 @@ Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Software Development :: Libraries :: Python Modules +Requires-Python: >=2.5, !=3.0.*, !=3.1.*, !=3.2.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.15.0/conf.py new/simplejson-3.16.0/conf.py --- old/simplejson-3.15.0/conf.py 2018-05-12 20:58:17.000000000 +0200 +++ new/simplejson-3.16.0/conf.py 2018-06-28 23:13:49.000000000 +0200 @@ -42,9 +42,9 @@ # other places throughout the built documents. # # The short X.Y version. -version = '3.15' +version = '3.16' # The full version, including alpha/beta/rc tags. -release = '3.15.0' +release = '3.16.0' # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: @@ -83,7 +83,7 @@ # The style sheet to use for HTML and HTML Help pages. A file of that name # must exist either in Sphinx' static/ path, or in one of the custom paths # given in html_static_path. -html_style = 'default.css' +#html_style = 'default.css' # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.15.0/setup.py new/simplejson-3.16.0/setup.py --- old/simplejson-3.15.0/setup.py 2018-05-12 20:58:17.000000000 +0200 +++ new/simplejson-3.16.0/setup.py 2018-06-28 23:13:49.000000000 +0200 @@ -12,12 +12,14 @@ DistutilsPlatformError IS_PYPY = hasattr(sys, 'pypy_translation_info') -VERSION = '3.15.0' +VERSION = '3.16.0' DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python" with open('README.rst', 'r') as f: LONG_DESCRIPTION = f.read() +PYTHON_REQUIRES = '>=2.5, !=3.0.*, !=3.1.*, !=3.2.*' + CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', @@ -41,7 +43,7 @@ if sys.platform == 'win32' and sys.version_info < (2, 7): # 2.6's distutils.msvc9compiler can raise an IOError when failing to # find the compiler - # It can also raise ValueError http://bugs.python.org/issue7511 + # It can also raise ValueError https://bugs.python.org/issue7511 ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError, IOError, ValueError) else: @@ -101,9 +103,10 @@ description=DESCRIPTION, long_description=LONG_DESCRIPTION, classifiers=CLASSIFIERS, + python_requires=PYTHON_REQUIRES, author="Bob Ippolito", author_email="b...@redivi.com", - url="http://github.com/simplejson/simplejson", + url="https://github.com/simplejson/simplejson", license="MIT License", packages=['simplejson', 'simplejson.tests'], platforms=['any'], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.15.0/simplejson/__init__.py new/simplejson-3.16.0/simplejson/__init__.py --- old/simplejson-3.15.0/simplejson/__init__.py 2018-05-12 20:58:17.000000000 +0200 +++ new/simplejson-3.16.0/simplejson/__init__.py 2018-06-28 23:13:49.000000000 +0200 @@ -98,7 +98,7 @@ Expecting property name: line 1 column 3 (char 2) """ from __future__ import absolute_import -__version__ = '3.15.0' +__version__ = '3.16.0' __all__ = [ 'dump', 'dumps', 'load', 'loads', 'JSONDecoder', 'JSONDecodeError', 'JSONEncoder', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.15.0/simplejson/_speedups.c new/simplejson-3.16.0/simplejson/_speedups.c --- old/simplejson-3.15.0/simplejson/_speedups.c 2018-05-12 20:58:17.000000000 +0200 +++ new/simplejson-3.16.0/simplejson/_speedups.c 2018-06-28 23:13:49.000000000 +0200 @@ -76,6 +76,9 @@ static PyObject *JSON_NegInfinity = NULL; static PyObject *JSON_NaN = NULL; static PyObject *JSON_EmptyUnicode = NULL; +#if PY_MAJOR_VERSION < 3 +static PyObject *JSON_EmptyStr = NULL; +#endif static PyTypeObject PyScannerType; static PyTypeObject PyEncoderType; @@ -785,12 +788,7 @@ /* return ''.join(lst) */ static PyObject *joinfn = NULL; if (joinfn == NULL) { - PyObject *ustr = PyString_FromStringAndSize(NULL, 0); - if (ustr == NULL) - return NULL; - - joinfn = PyObject_GetAttrString(ustr, "join"); - Py_DECREF(ustr); + joinfn = PyObject_GetAttrString(JSON_EmptyStr, "join"); if (joinfn == NULL) return NULL; } @@ -1026,7 +1024,7 @@ if (chunk != NULL) rval = chunk; else { - rval = JSON_EmptyUnicode; + rval = JSON_EmptyStr; Py_INCREF(rval); } } @@ -3331,6 +3329,9 @@ #if PY_MAJOR_VERSION >= 3 JSON_EmptyUnicode = PyUnicode_New(0, 127); #else /* PY_MAJOR_VERSION >= 3 */ + JSON_EmptyStr = PyString_FromString(""); + if (JSON_EmptyStr == NULL) + return 0; JSON_EmptyUnicode = PyUnicode_FromUnicode(NULL, 0); #endif /* PY_MAJOR_VERSION >= 3 */ if (JSON_EmptyUnicode == NULL) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.15.0/simplejson/tests/test_scanstring.py new/simplejson-3.16.0/simplejson/tests/test_scanstring.py --- old/simplejson-3.15.0/simplejson/tests/test_scanstring.py 2018-05-12 20:58:17.000000000 +0200 +++ new/simplejson-3.16.0/simplejson/tests/test_scanstring.py 2018-06-28 23:13:49.000000000 +0200 @@ -22,6 +22,8 @@ return self._test_scanstring(simplejson.decoder.c_scanstring) + self.assertTrue(isinstance(simplejson.decoder.c_scanstring('""', 0)[0], str)) + def _test_scanstring(self, scanstring): if sys.maxunicode == 65535: self.assertEqual( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.15.0/simplejson.egg-info/PKG-INFO new/simplejson-3.16.0/simplejson.egg-info/PKG-INFO --- old/simplejson-3.15.0/simplejson.egg-info/PKG-INFO 2018-05-12 20:58:44.000000000 +0200 +++ new/simplejson-3.16.0/simplejson.egg-info/PKG-INFO 2018-06-28 23:14:12.000000000 +0200 @@ -1,8 +1,8 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: simplejson -Version: 3.15.0 +Version: 3.16.0 Summary: Simple, fast, extensible JSON encoder/decoder for Python -Home-page: http://github.com/simplejson/simplejson +Home-page: https://github.com/simplejson/simplejson Author: Bob Ippolito Author-email: b...@redivi.com License: MIT License @@ -61,3 +61,4 @@ Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Software Development :: Libraries :: Python Modules +Requires-Python: >=2.5, !=3.0.*, !=3.1.*, !=3.2.*