Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbformat for openSUSE:Factory 
checked in at 2023-08-06 16:29:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbformat (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbformat.new.22712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbformat"

Sun Aug  6 16:29:44 2023 rev:21 rq:1102509 version:5.9.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbformat/python-nbformat.changes  
2023-07-31 15:24:39.311423217 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-nbformat.new.22712/python-nbformat.changes   
    2023-08-06 16:30:01.515870113 +0200
@@ -1,0 +2,12 @@
+Sat Aug  5 16:29:03 UTC 2023 - Arun Persaud <a...@gmx.de>
+
+- update to version 5.9.2:
+  * Bugs fixed
+    + Fix version handling #372 (@blink1073)
+  * Maintenance and upkeep improvements
+    + Fix encoding warnings #371 (@blink1073)
+    + Update link to notebook security #370 (@blink1073)
+  * Documentation improvements
+    + Update link to notebook security #370 (@blink1073)
+
+-------------------------------------------------------------------

Old:
----
  nbformat-5.9.1.tar.gz

New:
----
  nbformat-5.9.2.tar.gz

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

Other differences:
------------------
++++++ python-nbformat.spec ++++++
--- /var/tmp/diff_new_pack.ym3Gkm/_old  2023-08-06 16:30:03.015879205 +0200
+++ /var/tmp/diff_new_pack.ym3Gkm/_new  2023-08-06 16:30:03.019879229 +0200
@@ -18,7 +18,7 @@
 
 %bcond_without libalternatives
 Name:           python-nbformat
-Version:        5.9.1
+Version:        5.9.2
 Release:        0
 Summary:        The Jupyter Notebook format
 License:        BSD-3-Clause

++++++ nbformat-5.9.1.tar.gz -> nbformat-5.9.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/.github/workflows/tests.yml 
new/nbformat-5.9.2/.github/workflows/tests.yml
--- old/nbformat-5.9.1/.github/workflows/tests.yml      2020-02-02 
01:00:00.000000000 +0100
+++ new/nbformat-5.9.2/.github/workflows/tests.yml      2020-02-02 
01:00:00.000000000 +0100
@@ -19,14 +19,14 @@
       fail-fast: false
       matrix:
         os: [ubuntu-latest, windows-latest, macos-latest]
-        python-version: ["3.8", "3.11"]
+        python-version: ["3.8", "3.12"]
         include:
           - os: windows-latest
             python-version: "3.9"
           - os: ubuntu-latest
             python-version: "pypy-3.8"
           - os: ubuntu-latest
-            python-version: "3.12.0-beta.1"
+            python-version: "3.11"
           - os: macos-latest
             python-version: "3.10"
     steps:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/CHANGELOG.md 
new/nbformat-5.9.2/CHANGELOG.md
--- old/nbformat-5.9.1/CHANGELOG.md     2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.2/CHANGELOG.md     2020-02-02 01:00:00.000000000 +0100
@@ -4,6 +4,31 @@
 
 <!-- <START NEW CHANGELOG ENTRY> -->
 
+## 5.9.2
+
+([Full 
Changelog](https://github.com/jupyter/nbformat/compare/v5.9.1...80dd726ec87218e0b428a857b4cc656e7e9950d3))
+
+### Bugs fixed
+
+- Fix version handling [#372](https://github.com/jupyter/nbformat/pull/372) 
([@blink1073](https://github.com/blink1073))
+
+### Maintenance and upkeep improvements
+
+- Fix encoding warnings [#371](https://github.com/jupyter/nbformat/pull/371) 
([@blink1073](https://github.com/blink1073))
+- Update link to notebook security 
[#370](https://github.com/jupyter/nbformat/pull/370) 
([@blink1073](https://github.com/blink1073))
+
+### Documentation improvements
+
+- Update link to notebook security 
[#370](https://github.com/jupyter/nbformat/pull/370) 
([@blink1073](https://github.com/blink1073))
+
+### Contributors to this release
+
+([GitHub contributors page for this 
release](https://github.com/jupyter/nbformat/graphs/contributors?from=2023-07-10&to=2023-07-31&type=c))
+
+[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Ablink1073+updated%3A2023-07-10..2023-07-31&type=Issues)
+
+<!-- <END NEW CHANGELOG ENTRY> -->
+
 ## 5.9.1
 
 ([Full 
Changelog](https://github.com/jupyter/nbformat/compare/v5.9.0...c348f9d12f05b4e0350413c74f58cd9e4f54a550))
@@ -18,8 +43,6 @@
 
 
[@eladkal](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Aeladkal+updated%3A2023-05-31..2023-07-10&type=Issues)
 | 
[@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Apre-commit-ci+updated%3A2023-05-31..2023-07-10&type=Issues)
 
-<!-- <END NEW CHANGELOG ENTRY> -->
-
 ## 5.9.0
 
 ([Full 
Changelog](https://github.com/jupyter/nbformat/compare/v5.8.0...1b5e8e4e9af98f9c9b0843ba155b8756103d094d))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/PKG-INFO new/nbformat-5.9.2/PKG-INFO
--- old/nbformat-5.9.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.2/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: nbformat
-Version: 5.9.1
+Version: 5.9.2
 Summary: The Jupyter Notebook format
 Project-URL: Homepage, https://jupyter.org
 Author-email: Jupyter Development Team <jupy...@googlegroups.com>
@@ -47,6 +47,7 @@
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
 Requires-Python: >=3.8
 Requires-Dist: fastjsonschema
 Requires-Dist: jsonschema>=2.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/docs/api.rst 
new/nbformat-5.9.2/docs/api.rst
--- old/nbformat-5.9.1/docs/api.rst     2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.2/docs/api.rst     2020-02-02 01:00:00.000000000 +0100
@@ -81,7 +81,7 @@
 
 This machinery is used by the notebook web application to record which 
notebooks
 are *trusted*, and may show dynamic output as soon as they're loaded. See
-:ref:`notebook:notebook_security` for more information.
+:ref:`server:server_security` for more information.
 
 .. autoclass:: NotebookNotary
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/docs/conf.py 
new/nbformat-5.9.2/docs/conf.py
--- old/nbformat-5.9.1/docs/conf.py     2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.2/docs/conf.py     2020-02-02 01:00:00.000000000 +0100
@@ -304,6 +304,7 @@
     "jupyterclient": ("https://jupyter-client.readthedocs.io/en/stable";, None),
     "nbconvert": ("https://nbconvert.readthedocs.org/en/stable";, None),
     "notebook": ("https://jupyter-notebook.readthedocs.org/en/stable";, None),
+    "server": ("https://jupyter-server.readthedocs.org/en/stable";, None),
 }
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/nbformat/_version.py 
new/nbformat-5.9.2/nbformat/_version.py
--- old/nbformat-5.9.1/nbformat/_version.py     2020-02-02 01:00:00.000000000 
+0100
+++ new/nbformat-5.9.2/nbformat/_version.py     2020-02-02 01:00:00.000000000 
+0100
@@ -1,13 +1,9 @@
 """The version information for nbformat."""
 # Use "hatchling version xx.yy.zz" to handle version changes
 import re
+from importlib.metadata import version
 
-try:
-    from importlib.metadata import version
-except ImportError:
-    from importlib_metadata import version  # type:ignore
-
-__version__ = version("nbformat")
+__version__ = version("nbformat") or "0.0.0"
 
 # matches tbump regex in pyproject.toml
 _version_regex = re.compile(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/nbformat/sign.py 
new/nbformat-5.9.2/nbformat/sign.py
--- old/nbformat-5.9.1/nbformat/sign.py 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.2/nbformat/sign.py 2020-02-02 01:00:00.000000000 +0100
@@ -602,7 +602,7 @@
         if not os.path.exists(notebook_path):
             self.log.error("Notebook missing: %s" % notebook_path)
             self.exit(1)
-        with open(notebook_path, encoding="utf8") as f:
+        with open(notebook_path, encoding="utf-8") as f:
             nb = read(f, NO_CONVERT)
         self.sign_notebook(nb, notebook_path)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/nbformat/validator.py 
new/nbformat-5.9.2/nbformat/validator.py
--- old/nbformat-5.9.1/nbformat/validator.py    2020-02-02 01:00:00.000000000 
+0100
+++ new/nbformat-5.9.2/nbformat/validator.py    2020-02-02 01:00:00.000000000 
+0100
@@ -99,7 +99,7 @@
     else:
         msg = "Cannot find appropriate nbformat schema file."
         raise AttributeError(msg)
-    with open(schema_path) as f:
+    with open(schema_path, encoding='utf-8') as f:
         schema_json = json.load(f)
     return schema_json
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/package.json 
new/nbformat-5.9.2/package.json
--- old/nbformat-5.9.1/package.json     2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.2/package.json     2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 {
     "name": "nbformat-schema",
-    "version": "5.9.1",
+    "version": "5.9.2",
     "description": "JSON schemata for Jupyter notebook formats",
     "main": "index.js",
     "files": [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/pyproject.toml 
new/nbformat-5.9.2/pyproject.toml
--- old/nbformat-5.9.1/pyproject.toml   2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.2/pyproject.toml   2020-02-02 01:00:00.000000000 +0100
@@ -18,7 +18,8 @@
     "Programming Language :: Python :: 3.8",
     "Programming Language :: Python :: 3.9",
     "Programming Language :: Python :: 3.10",
-    "Programming Language :: Python :: 3.11"
+    "Programming Language :: Python :: 3.11",
+    "Programming Language :: Python :: 3.12"
 ]
 requires-python = ">=3.8"
 dependencies = [
@@ -68,7 +69,7 @@
 [tool.hatch.envs.test]
 features = ["test"]
 [tool.hatch.envs.test.scripts]
-test = "python -m pytest -vv {args}"
+test = "PYTHONWARNDEFAULTENCODING=1 python -m pytest -vv {args}"
 nowarn = "test -W default {args}"
 
 [tool.hatch.envs.cov]
@@ -151,11 +152,11 @@
 [tool.black]
 line-length = 100
 skip-string-normalization = true
-target-version = ["py37"]
+target-version = ["py38"]
 extend-exclude = "^/tests.*ipynb$"
 
 [tool.ruff]
-target-version = "py37"
+target-version = "py38"
 line-length = 100
 select = [
   "A", "B", "C", "DTZ", "E", "EM", "F", "FBT", "I", "ICN", "ISC", "N",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/tests/test_sign.py 
new/nbformat-5.9.2/tests/test_sign.py
--- old/nbformat-5.9.1/tests/test_sign.py       2020-02-02 01:00:00.000000000 
+0100
+++ new/nbformat-5.9.2/tests/test_sign.py       2020-02-02 01:00:00.000000000 
+0100
@@ -40,7 +40,7 @@
 
     def test_invalid_db_file(self):
         invalid_sql_file = os.path.join(self.data_dir, "invalid_db_file.db")
-        with open(invalid_sql_file, "w") as tempfile:
+        with open(invalid_sql_file, "w", encoding="utf-8") as tempfile:
             tempfile.write("[invalid data]")
 
         invalid_notary = sign.NotebookNotary(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbformat-5.9.1/tests/v4/test_json.py 
new/nbformat-5.9.2/tests/v4/test_json.py
--- old/nbformat-5.9.1/tests/v4/test_json.py    2020-02-02 01:00:00.000000000 
+0100
+++ new/nbformat-5.9.2/tests/v4/test_json.py    2020-02-02 01:00:00.000000000 
+0100
@@ -108,7 +108,9 @@
 
     def test_base_version_matches_latest(self):
         """Test to ensure latest version file matches latest verison"""
-        with open(os.path.join(BASE_PATH, "nbformat.v4.schema.json")) as 
schema_file:
+        with open(
+            os.path.join(BASE_PATH, "nbformat.v4.schema.json"), 
encoding='utf-8'
+        ) as schema_file:
             latest_schema = json.load(schema_file)
             with open(
                 os.path.join(
@@ -117,13 +119,16 @@
                         major=nbformat, minor=nbformat_minor
                     ),
                 ),
+                encoding='utf-8',
             ) as schema_file:  # noqa
                 ver_schema = json.load(schema_file)
             assert latest_schema == ver_schema
 
     def test_latest_matches_nbformat(self):
         """Test to ensure that the nbformat version matches the description of 
the latest schema"""
-        with open(os.path.join(BASE_PATH, "nbformat.v4.schema.json")) as 
schema_file:
+        with open(
+            os.path.join(BASE_PATH, "nbformat.v4.schema.json"), 
encoding='utf-8'
+        ) as schema_file:
             schema = json.load(schema_file)
         assert schema["description"] == "Jupyter Notebook v{major}.{minor} 
JSON schema.".format(
             major=nbformat, minor=nbformat_minor

Reply via email to