Hello community, here is the log from the commit of package python-simplejson for openSUSE:Factory checked in at 2018-09-20 11:38:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-simplejson (Old) and /work/SRC/openSUSE:Factory/.python-simplejson.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-simplejson" Thu Sep 20 11:38:58 2018 rev:41 rq:634498 version:3.16.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-simplejson/python-simplejson.changes 2018-07-07 21:57:19.683399111 +0200 +++ /work/SRC/openSUSE:Factory/.python-simplejson.new/python-simplejson.changes 2018-09-20 11:39:03.868940937 +0200 @@ -1,0 +2,7 @@ +Sat Sep 8 19:15:21 UTC 2018 - Arun Persaud <a...@gmx.de> + +- update to version 3.16.1: + * Added examples for JSON lines use cases + * Add wheels for more Python versions and platforms + +------------------------------------------------------------------- Old: ---- simplejson-3.16.0.tar.gz New: ---- simplejson-3.16.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-simplejson.spec ++++++ --- /var/tmp/diff_new_pack.PnDpmD/_old 2018-09-20 11:39:05.596939920 +0200 +++ /var/tmp/diff_new_pack.PnDpmD/_new 2018-09-20 11:39:05.600939918 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-simplejson -Version: 3.16.0 +Version: 3.16.1 Release: 0 Summary: Extensible JSON encoder/decoder for Python License: MIT OR AFL-2.1 ++++++ simplejson-3.16.0.tar.gz -> simplejson-3.16.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/CHANGES.txt new/simplejson-3.16.1/CHANGES.txt --- old/simplejson-3.16.0/CHANGES.txt 2018-06-28 23:13:49.000000000 +0200 +++ new/simplejson-3.16.1/CHANGES.txt 2018-09-07 22:14:57.000000000 +0200 @@ -1,3 +1,12 @@ +Version 3.16.1 released 2018-09-07 + +* Added examples for JSON lines use cases + https://github.com/simplejson/simplejson/pull/236 +* Add wheels for more Python versions and platforms + https://github.com/simplejson/simplejson/pull/234 + https://github.com/simplejson/simplejson/pull/233 + https://github.com/simplejson/simplejson/pull/231 + Version 3.16.0 released 2018-06-28 * Restore old behavior with regard to the type of decoded empty diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/PKG-INFO new/simplejson-3.16.1/PKG-INFO --- old/simplejson-3.16.0/PKG-INFO 2018-06-28 23:14:12.000000000 +0200 +++ new/simplejson-3.16.1/PKG-INFO 2018-09-07 22:16:57.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 1.2 Name: simplejson -Version: 3.16.0 +Version: 3.16.1 Summary: Simple, fast, extensible JSON encoder/decoder for Python Home-page: https://github.com/simplejson/simplejson Author: Bob Ippolito Author-email: b...@redivi.com License: MIT License -Description-Content-Type: UNKNOWN Description: simplejson ---------- @@ -58,6 +57,7 @@ Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Software Development :: Libraries :: Python Modules diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/conf.py new/simplejson-3.16.1/conf.py --- old/simplejson-3.16.0/conf.py 2018-06-28 23:13:49.000000000 +0200 +++ new/simplejson-3.16.1/conf.py 2018-09-07 22:14:57.000000000 +0200 @@ -44,7 +44,7 @@ # The short X.Y version. version = '3.16' # The full version, including alpha/beta/rc tags. -release = '3.16.0' +release = '3.16.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.16.0/index.rst new/simplejson-3.16.1/index.rst --- old/simplejson-3.16.0/index.rst 2018-06-28 23:13:49.000000000 +0200 +++ new/simplejson-3.16.1/index.rst 2018-09-07 22:14:57.000000000 +0200 @@ -124,6 +124,26 @@ .. highlight:: python +Parsing multiple documents serialized as JSON lines (newline-delimited JSON):: + + >>> import simplejson as json + >>> def loads_lines(docs): + ... for doc in docs.splitlines(): + ... yield json.loads(doc) + ... + >>> sum(doc["count"] for doc in loads_lines('{"count":1}\n{"count":2}\n{"count":3}\n')) + 6 + +Serializing multiple objects to JSON lines (newline-delimited JSON):: + + >>> import simplejson as json + >>> def dumps_lines(objs): + ... for obj in objs: + ... yield json.dumps(obj, separators=(',',':')) + '\n' + ... + >>> ''.join(dumps_lines([{'count': 1}, {'count': 2}, {'count': 3}])) + '{"count":1}\n{"count":2}\n{"count":3}\n' + .. note:: JSON is a subset of `YAML <http://yaml.org/>`_ 1.2. The JSON produced by diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/scripts/artifacts.py new/simplejson-3.16.1/scripts/artifacts.py --- old/simplejson-3.16.0/scripts/artifacts.py 2018-06-28 23:13:49.000000000 +0200 +++ new/simplejson-3.16.1/scripts/artifacts.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,106 +0,0 @@ -#!/usr/bin/env python3 -from urllib.request import urlopen - -import json -import os -import subprocess -import sys -import getpass - - -def get_json(url): - return json.loads(urlopen(url).read().decode('utf-8')) - - -def download_file(src_url, dest_path): - print(dest_path) - subprocess.call( - ['curl', '-L', '-#', '-o', dest_path, src_url]) - - -def download_appveyor_artifacts(): - api_url = 'https://ci.appveyor.com/api' - builds = get_json( - '{}/projects/etrepum/simplejson'.format(api_url)) - - for job in builds['build']['jobs']: - url = '{api_url}/buildjobs/{jobId}/artifacts'.format( - api_url=api_url, **job) - for artifact in get_json(url): - download_file( - '{url}/{fileName}'.format(url=url, **artifact), - artifact['fileName']) - - -def download_github_artifacts(): - release = get_json( - 'https://api.github.com/repos/simplejson/simplejson/releases/latest') - for asset in release['assets']: - download_file(asset['browser_download_url'], 'dist/{name}'.format(**asset)) - - -def get_version(): - return subprocess.check_output( - [sys.executable, 'setup.py', '--version'], - encoding='utf8' - ).strip() - - -def artifact_matcher(version): - prefix = 'simplejson-{}'.format(version) - def matches(fn): - return ( - fn.startswith(prefix) and - os.path.splitext(fn)[1] in ('.exe', '.whl') and - not fn.endswith('-none-any.whl') - ) or fn == '{}.tar.gz'.format(prefix) - return matches - - -def sign_artifacts(version): - artifacts = set(os.listdir('dist')) - matches = artifact_matcher(version) - passphrase = getpass.getpass('\nGPG Passphrase:') - for fn in artifacts: - if matches(fn) and '{}.asc'.format(fn) not in artifacts: - sign_artifact(os.path.join('dist', fn), passphrase) - - -def sign_artifact(path, passphrase): - cmd = [ - 'gpg', - '--detach-sign', - '--batch', - '--passphrase-fd', '0', - '--armor', - path - ] - print(' '.join(cmd)) - subprocess.run(cmd, check=True, input=passphrase, encoding='utf8') - - -def upload_artifacts(version): - artifacts = set(os.listdir('dist')) - matches = artifact_matcher(version) - args = ['twine', 'upload'] - for fn in artifacts: - if matches(fn): - filename = os.path.join('dist', fn) - args.extend([filename, filename + '.asc']) - subprocess.check_call(args) - - -def main(): - try: - os.makedirs('dist') - except OSError: - pass - download_appveyor_artifacts() - download_github_artifacts() - version = get_version() - sign_artifacts(version) - upload_artifacts(version) - - -if __name__ == '__main__': - main() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/scripts/release.py new/simplejson-3.16.1/scripts/release.py --- old/simplejson-3.16.0/scripts/release.py 1970-01-01 01:00:00.000000000 +0100 +++ new/simplejson-3.16.1/scripts/release.py 2018-09-07 22:14:57.000000000 +0200 @@ -0,0 +1,82 @@ +#!/usr/bin/env python3 +from urllib.request import urlopen + +import json +import os +import subprocess +import sys +import getpass + + +def get_json(url): + return json.loads(urlopen(url).read().decode('utf-8')) + + +def download_file(src_url, dest_path): + print(dest_path) + subprocess.call( + ['curl', '-L', '-#', '-o', dest_path, src_url]) + + +def download_appveyor_artifacts(): + api_url = 'https://ci.appveyor.com/api' + builds = get_json( + '{}/projects/etrepum/simplejson'.format(api_url)) + + for job in builds['build']['jobs']: + url = '{api_url}/buildjobs/{jobId}/artifacts'.format( + api_url=api_url, **job) + for artifact in get_json(url): + download_file( + '{url}/{fileName}'.format(url=url, **artifact), + artifact['fileName']) + + +def download_github_artifacts(): + release = get_json( + 'https://api.github.com/repos/simplejson/simplejson/releases/latest') + for asset in release['assets']: + download_file(asset['browser_download_url'], 'dist/{name}'.format(**asset)) + + +def get_version(): + return subprocess.check_output( + [sys.executable, 'setup.py', '--version'], + encoding='utf8' + ).strip() + + +def artifact_matcher(version): + prefix = 'simplejson-{}'.format(version) + def matches(fn): + return ( + fn.startswith(prefix) and + os.path.splitext(fn)[1] in ('.exe', '.whl') and + not fn.endswith('-none-any.whl') + ) or fn == '{}.tar.gz'.format(prefix) + return matches + + +def upload_artifacts(version): + artifacts = set(os.listdir('dist')) + matches = artifact_matcher(version) + args = ['twine', 'upload'] + for fn in artifacts: + if matches(fn): + filename = os.path.join('dist', fn) + args.extend([filename, filename + '.asc']) + subprocess.check_call(args) + + +def main(): + try: + os.makedirs('dist') + except OSError: + pass + download_appveyor_artifacts() + download_github_artifacts() + upload_artifacts(get_version()) + + +if __name__ == '__main__': + main() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/setup.py new/simplejson-3.16.1/setup.py --- old/simplejson-3.16.0/setup.py 2018-06-28 23:13:49.000000000 +0200 +++ new/simplejson-3.16.1/setup.py 2018-09-07 22:14:57.000000000 +0200 @@ -12,7 +12,7 @@ DistutilsPlatformError IS_PYPY = hasattr(sys, 'pypy_translation_info') -VERSION = '3.16.0' +VERSION = '3.16.1' DESCRIPTION = "Simple, fast, extensible JSON encoder/decoder for Python" with open('README.rst', 'r') as f: @@ -35,6 +35,7 @@ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/simplejson/__init__.py new/simplejson-3.16.1/simplejson/__init__.py --- old/simplejson-3.16.0/simplejson/__init__.py 2018-06-28 23:13:49.000000000 +0200 +++ new/simplejson-3.16.1/simplejson/__init__.py 2018-09-07 22:14:57.000000000 +0200 @@ -87,7 +87,6 @@ >>> ''.join(json.JSONEncoder(default=encode_complex).iterencode(2 + 1j)) '[2.0, 1.0]' - Using simplejson.tool from the shell to validate and pretty-print:: $ echo '{"json":"obj"}' | python -m simplejson.tool @@ -96,9 +95,30 @@ } $ echo '{ 1.2:3.4}' | python -m simplejson.tool Expecting property name: line 1 column 3 (char 2) + +Parsing multiple documents serialized as JSON lines (newline-delimited JSON):: + + >>> import simplejson as json + >>> def loads_lines(docs): + ... for doc in docs.splitlines(): + ... yield json.loads(doc) + ... + >>> sum(doc["count"] for doc in loads_lines('{"count":1}\n{"count":2}\n{"count":3}\n')) + 6 + +Serializing multiple objects to JSON lines (newline-delimited JSON):: + + >>> import simplejson as json + >>> def dumps_lines(objs): + ... for obj in objs: + ... yield json.dumps(obj, separators=(',',':')) + '\n' + ... + >>> ''.join(dumps_lines([{'count': 1}, {'count': 2}, {'count': 3}])) + '{"count":1}\n{"count":2}\n{"count":3}\n' + """ from __future__ import absolute_import -__version__ = '3.16.0' +__version__ = '3.16.1' __all__ = [ 'dump', 'dumps', 'load', 'loads', 'JSONDecoder', 'JSONDecodeError', 'JSONEncoder', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/simplejson.egg-info/PKG-INFO new/simplejson-3.16.1/simplejson.egg-info/PKG-INFO --- old/simplejson-3.16.0/simplejson.egg-info/PKG-INFO 2018-06-28 23:14:12.000000000 +0200 +++ new/simplejson-3.16.1/simplejson.egg-info/PKG-INFO 2018-09-07 22:16:57.000000000 +0200 @@ -1,12 +1,11 @@ Metadata-Version: 1.2 Name: simplejson -Version: 3.16.0 +Version: 3.16.1 Summary: Simple, fast, extensible JSON encoder/decoder for Python Home-page: https://github.com/simplejson/simplejson Author: Bob Ippolito Author-email: b...@redivi.com License: MIT License -Description-Content-Type: UNKNOWN Description: simplejson ---------- @@ -58,6 +57,7 @@ Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Software Development :: Libraries :: Python Modules diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/simplejson-3.16.0/simplejson.egg-info/SOURCES.txt new/simplejson-3.16.1/simplejson.egg-info/SOURCES.txt --- old/simplejson-3.16.0/simplejson.egg-info/SOURCES.txt 2018-06-28 23:14:12.000000000 +0200 +++ new/simplejson-3.16.1/simplejson.egg-info/SOURCES.txt 2018-09-07 22:16:57.000000000 +0200 @@ -5,8 +5,8 @@ conf.py index.rst setup.py -scripts/artifacts.py scripts/make_docs.py +scripts/release.py simplejson/__init__.py simplejson/_speedups.c simplejson/compat.py