Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-nbclient for openSUSE:Factory
checked in at 2022-03-12 17:15:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbclient (Old)
and /work/SRC/openSUSE:Factory/.python-nbclient.new.25692 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nbclient"
Sat Mar 12 17:15:24 2022 rev:20 rq:961182 version:0.5.13
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbclient/python-nbclient.changes
2022-03-11 11:32:44.994019774 +0100
+++
/work/SRC/openSUSE:Factory/.python-nbclient.new.25692/python-nbclient.changes
2022-03-12 17:16:05.050347744 +0100
@@ -1,0 +2,6 @@
+Sat Mar 12 04:52:28 UTC 2022 - Arun Persaud <[email protected]>
+
+- update to version 0.5.13:
+ * Drop ipython_genutils #209 (@davidbrochart)
+
+-------------------------------------------------------------------
Old:
----
nbclient-0.5.12.tar.gz
New:
----
nbclient-0.5.13.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nbclient.spec ++++++
--- /var/tmp/diff_new_pack.YiHkXJ/_old 2022-03-12 17:16:05.514348281 +0100
+++ /var/tmp/diff_new_pack.YiHkXJ/_new 2022-03-12 17:16:05.514348281 +0100
@@ -32,7 +32,7 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-nbclient%{psuffix}
-Version: 0.5.12
+Version: 0.5.13
Release: 0
Summary: A client library for executing notebooks
License: BSD-3-Clause
++++++ nbclient-0.5.12.tar.gz -> nbclient-0.5.13.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.12/CHANGELOG.md
new/nbclient-0.5.13/CHANGELOG.md
--- old/nbclient-0.5.12/CHANGELOG.md 2022-03-06 20:07:33.000000000 +0100
+++ new/nbclient-0.5.13/CHANGELOG.md 2022-03-11 09:57:45.000000000 +0100
@@ -2,6 +2,22 @@
<!-- <START NEW CHANGELOG ENTRY> -->
+## 0.5.13
+
+([Full
Changelog](https://github.com/jupyter/nbclient/compare/v0.5.12...af2315aefbd8d08c1d6a473c289beef1e8ebbecb))
+
+### Merged PRs
+
+- Drop ipython_genutils [#209](https://github.com/jupyter/nbclient/pull/209)
([@davidbrochart](https://github.com/davidbrochart))
+
+### Contributors to this release
+
+([GitHub contributors page for this
release](https://github.com/jupyter/nbclient/graphs/contributors?from=2022-03-06&to=2022-03-11&type=c))
+
+[@davidbrochart](https://github.com/search?q=repo%3Ajupyter%2Fnbclient+involves%3Adavidbrochart+updated%3A2022-03-06..2022-03-11&type=Issues)
+
+<!-- <END NEW CHANGELOG ENTRY> -->
+
## 0.5.12
([Full
Changelog](https://github.com/jupyter/nbclient/compare/v0.5.11...d20e29e803e5a22379f7a1356e7cf55d4649e9cb))
@@ -17,8 +33,6 @@
[@davidbrochart](https://github.com/search?q=repo%3Ajupyter%2Fnbclient+involves%3Adavidbrochart+updated%3A2022-02-14..2022-03-06&type=Issues)
|
[@frenzymadness](https://github.com/search?q=repo%3Ajupyter%2Fnbclient+involves%3Afrenzymadness+updated%3A2022-02-14..2022-03-06&type=Issues)
-<!-- <END NEW CHANGELOG ENTRY> -->
-
## 0.5.11
([Full
Changelog](https://github.com/jupyter/nbclient/compare/v0.5.10...050c7da89a98159e6361b1ad0dbefd215db5f816))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.12/PKG-INFO new/nbclient-0.5.13/PKG-INFO
--- old/nbclient-0.5.12/PKG-INFO 2022-03-06 20:08:11.306576700 +0100
+++ new/nbclient-0.5.13/PKG-INFO 2022-03-11 09:58:25.364798800 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: nbclient
-Version: 0.5.12
+Version: 0.5.13
Summary: A client library for executing notebooks. Formerly nbconvert's
ExecutePreprocessor.
Home-page: https://jupyter.org
Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.12/nbclient/_version.py
new/nbclient-0.5.13/nbclient/_version.py
--- old/nbclient-0.5.12/nbclient/_version.py 2022-03-06 20:07:55.000000000
+0100
+++ new/nbclient-0.5.13/nbclient/_version.py 2022-03-11 09:58:09.000000000
+0100
@@ -1,7 +1,7 @@
import re
from typing import List, Union
-__version__ = "0.5.12"
+__version__ = "0.5.13"
# Build up version_info tuple for backwards compatibility
pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.12/nbclient/jsonutil.py
new/nbclient-0.5.13/nbclient/jsonutil.py
--- old/nbclient-0.5.12/nbclient/jsonutil.py 2022-03-06 20:07:33.000000000
+0100
+++ new/nbclient-0.5.13/nbclient/jsonutil.py 2022-03-11 09:57:45.000000000
+0100
@@ -13,11 +13,6 @@
from datetime import datetime
from typing import Dict
-from ipython_genutils import py3compat
-from ipython_genutils.py3compat import iteritems, unicode_type
-
-next_attr_name = '__next__' if py3compat.PY3 else 'next'
-
# -----------------------------------------------------------------------------
# Globals and constants
# -----------------------------------------------------------------------------
@@ -71,44 +66,7 @@
is base64-encoded.
"""
-
- # no need for handling of ambiguous bytestrings on Python 3,
- # where bytes objects always represent binary data and thus
- # base64-encoded.
- if py3compat.PY3:
- return format_dict
-
- encoded = format_dict.copy()
-
- pngdata = format_dict.get('image/png')
- if isinstance(pngdata, bytes):
- # make sure we don't double-encode
- if not pngdata.startswith(PNG64):
- pngdata = b2a_base64(pngdata)
- encoded['image/png'] = pngdata.decode('ascii')
-
- jpegdata = format_dict.get('image/jpeg')
- if isinstance(jpegdata, bytes):
- # make sure we don't double-encode
- if not jpegdata.startswith(JPEG64):
- jpegdata = b2a_base64(jpegdata)
- encoded['image/jpeg'] = jpegdata.decode('ascii')
-
- gifdata = format_dict.get('image/gif')
- if isinstance(gifdata, bytes):
- # make sure we don't double-encode
- if not gifdata.startswith((GIF_64, GIF89_64)):
- gifdata = b2a_base64(gifdata)
- encoded['image/gif'] = gifdata.decode('ascii')
-
- pdfdata = format_dict.get('application/pdf')
- if isinstance(pdfdata, bytes):
- # make sure we don't double-encode
- if not pdfdata.startswith(PDF64):
- pdfdata = b2a_base64(pdfdata)
- encoded['application/pdf'] = pdfdata.decode('ascii')
-
- return encoded
+ return format_dict
def json_clean(obj):
@@ -135,7 +93,7 @@
"""
# types that are 'atomic' and ok in json as-is.
- atomic_ok = (unicode_type, type(None))
+ atomic_ok = (str, type(None))
# containers that we need to convert into lists
container_to_list = (tuple, set, types.GeneratorType)
@@ -160,22 +118,10 @@
return obj
if isinstance(obj, bytes):
- if py3compat.PY3:
- # unanmbiguous binary data is base64-encoded
- # (this probably should have happened upstream)
- return b2a_base64(obj).decode('ascii')
- else:
- # Python 2 bytestr is ambiguous,
- # needs special handling for possible binary bytestrings.
- # imperfect workaround: if ascii, assume text.
- # otherwise assume binary, base64-encode (py3 behavior).
- try:
- return obj.decode('ascii')
- except UnicodeDecodeError:
- return b2a_base64(obj).decode('ascii')
+ return b2a_base64(obj).decode('ascii')
if isinstance(obj, container_to_list) or (
- hasattr(obj, '__iter__') and hasattr(obj, next_attr_name)
+ hasattr(obj, '__iter__') and hasattr(obj, '__next__')
):
obj = list(obj)
@@ -187,7 +133,7 @@
# key collisions after stringification. This can happen with keys like
# True and 'true' or 1 and '1', which collide in JSON.
nkeys = len(obj)
- nkeys_collapsed = len(set(map(unicode_type, obj)))
+ nkeys_collapsed = len(set(map(str, obj)))
if nkeys != nkeys_collapsed:
raise ValueError(
'dict cannot be safely converted to JSON: '
@@ -195,8 +141,8 @@
)
# If all OK, proceed by making the new dict that will be json-safe
out = {}
- for k, v in iteritems(obj):
- out[unicode_type(k)] = json_clean(v)
+ for k, v in iter(obj.items()):
+ out[str(k)] = json_clean(v)
return out
if isinstance(obj, datetime):
return obj.strftime(ISO8601)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.12/nbclient/tests/test_client.py
new/nbclient-0.5.13/nbclient/tests/test_client.py
--- old/nbclient-0.5.12/nbclient/tests/test_client.py 2022-03-06
20:07:33.000000000 +0100
+++ new/nbclient-0.5.13/nbclient/tests/test_client.py 2022-03-11
09:57:45.000000000 +0100
@@ -14,7 +14,6 @@
import nbformat
import pytest
import xmltodict # type: ignore
-from ipython_genutils.py3compat import string_types
from jupyter_client import KernelManager
from jupyter_client.kernelspec import KernelSpecManager
from nbconvert.filters import strip_ansi # type: ignore
@@ -215,7 +214,7 @@
if 'image/svg+xml' in output.get('data', {}):
output['data']['image/svg+xml'] =
xmltodict.parse(output['data']['image/svg+xml'])
for key, value in output.get('data', {}).items():
- if isinstance(value, string_types):
+ if isinstance(value, str):
output['data'][key] = normalize_base64(value)
if 'traceback' in output:
tb = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.12/nbclient.egg-info/PKG-INFO
new/nbclient-0.5.13/nbclient.egg-info/PKG-INFO
--- old/nbclient-0.5.12/nbclient.egg-info/PKG-INFO 2022-03-06
20:08:10.000000000 +0100
+++ new/nbclient-0.5.13/nbclient.egg-info/PKG-INFO 2022-03-11
09:58:25.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: nbclient
-Version: 0.5.12
+Version: 0.5.13
Summary: A client library for executing notebooks. Formerly nbconvert's
ExecutePreprocessor.
Home-page: https://jupyter.org
Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbclient-0.5.12/pyproject.toml
new/nbclient-0.5.13/pyproject.toml
--- old/nbclient-0.5.12/pyproject.toml 2022-03-06 20:07:55.000000000 +0100
+++ new/nbclient-0.5.13/pyproject.toml 2022-03-11 09:58:09.000000000 +0100
@@ -37,7 +37,6 @@
[[tool.mypy.overrides]]
module = [
- "ipython_genutils.*",
"nbformat.*",
"nest_asyncio.*",
"async_generator.*",
@@ -53,7 +52,7 @@
ignore = [".mailmap", "*.yml", "*.yaml"]
[tool.tbump.version]
-current = "0.5.12"
+current = "0.5.13"
regex = '''
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
((?P<channel>a|b|rc|.dev)(?P<release>\d+))?