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-06-12 15:26:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbformat (Old)
and /work/SRC/openSUSE:Factory/.python-nbformat.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nbformat"
Mon Jun 12 15:26:33 2023 rev:18 rq:1092383 version:5.9.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbformat/python-nbformat.changes
2023-04-24 22:31:15.707527952 +0200
+++
/work/SRC/openSUSE:Factory/.python-nbformat.new.15902/python-nbformat.changes
2023-06-12 15:27:36.079460174 +0200
@@ -1,0 +2,6 @@
+Sun Jun 11 20:10:03 UTC 2023 - Ben Greiner <[email protected]>
+
+- Update to 5.9.0
+ * Support Python 3.12 #363 (@blink1073)
+
+-------------------------------------------------------------------
Old:
----
nbformat-5.8.0.tar.gz
New:
----
nbformat-5.9.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nbformat.spec ++++++
--- /var/tmp/diff_new_pack.YrqjZU/_old 2023-06-12 15:27:36.771464268 +0200
+++ /var/tmp/diff_new_pack.YrqjZU/_new 2023-06-12 15:27:36.775464291 +0200
@@ -18,14 +18,14 @@
%bcond_without libalternatives
Name: python-nbformat
-Version: 5.8.0
+Version: 5.9.0
Release: 0
Summary: The Jupyter Notebook format
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/jupyter/nbformat
Source:
https://github.com/jupyter/nbformat/releases/download/v%{version}/nbformat-%{version}.tar.gz
-BuildRequires: %{python_module base >= 3.7}
+BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatch_nodejs_version}
BuildRequires: %{python_module hatchling >= 1.5}
BuildRequires: %{python_module pip}
++++++ nbformat-5.8.0.tar.gz -> nbformat-5.9.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/.github/scripts/parse_ref.py
new/nbformat-5.9.0/.github/scripts/parse_ref.py
--- old/nbformat-5.8.0/.github/scripts/parse_ref.py 2020-02-02
01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/.github/scripts/parse_ref.py 2020-02-02
01:00:00.000000000 +0100
@@ -25,7 +25,7 @@
raise Exception(f"Invalid ref `{current_ref}`!") # noqa
tag_name = current_ref.replace("refs/tags/", "")
- print(tag_name)
+ print(tag_name) # noqa
if __name__ == "__main__":
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/.github/workflows/tests.yml
new/nbformat-5.9.0/.github/workflows/tests.yml
--- old/nbformat-5.8.0/.github/workflows/tests.yml 2020-02-02
01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/.github/workflows/tests.yml 2020-02-02
01:00:00.000000000 +0100
@@ -19,16 +19,16 @@
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
- python-version: ["3.7", "3.11"]
+ python-version: ["3.8", "3.11"]
include:
- os: windows-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "pypy-3.8"
- os: ubuntu-latest
- python-version: "3.10"
+ python-version: "3.12.0-beta.1"
- os: macos-latest
- python-version: "3.8"
+ python-version: "3.10"
steps:
- uses: actions/checkout@v3
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
@@ -44,11 +44,18 @@
if: ${{ startsWith(matrix.os, 'windows') }}
run: |
hatch run cov:nowarn || hatch run test:nowarn --lf
- - name: Code coverage
- run: |
- pip install codecov coverage[toml]
- codecov
- run: hatch version 100.100.100
+ - uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
+
+ coverage:
+ runs-on: ubuntu-latest
+ needs:
+ - tests
+ steps:
+ - uses: actions/checkout@v3
+ - uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1
+ with:
+ fail_under: 77
test_lint:
name: Test Lint
@@ -76,7 +83,7 @@
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
with:
@@ -91,7 +98,7 @@
timeout-minutes: 20
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
with:
@@ -105,7 +112,7 @@
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- uses: jupyterlab/maintainer-tools/.github/actions/make-sdist@v1
@@ -147,7 +154,7 @@
tests_check: # This job does nothing and is only used for the branch
protection
if: always()
needs:
- - tests
+ - coverage
- test_lint
- docs
- test_minimum_versions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/.pre-commit-config.yaml
new/nbformat-5.9.0/.pre-commit-config.yaml
--- old/nbformat-5.8.0/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000
+0100
+++ new/nbformat-5.9.0/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000
+0100
@@ -20,7 +20,7 @@
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
- rev: 0.21.0
+ rev: 0.22.0
hooks:
- id: check-github-workflows
@@ -30,12 +30,12 @@
- id: mdformat
- repo: https://github.com/psf/black
- rev: 23.1.0
+ rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
- rev: v0.0.254
+ rev: v0.0.263
hooks:
- id: ruff
args: ["--fix"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/.readthedocs.yaml
new/nbformat-5.9.0/.readthedocs.yaml
--- old/nbformat-5.8.0/.readthedocs.yaml 2020-02-02 01:00:00.000000000
+0100
+++ new/nbformat-5.9.0/.readthedocs.yaml 2020-02-02 01:00:00.000000000
+0100
@@ -2,10 +2,13 @@
sphinx:
configuration: docs/conf.py
python:
- version: 3.8
install:
# install itself with pip install .
- method: pip
path: .
extra_requirements:
- docs
+build:
+ os: ubuntu-22.04
+ tools:
+ python: "3.11"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/CHANGELOG.md
new/nbformat-5.9.0/CHANGELOG.md
--- old/nbformat-5.8.0/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100
@@ -4,6 +4,24 @@
<!-- <START NEW CHANGELOG ENTRY> -->
+## 5.9.0
+
+([Full
Changelog](https://github.com/jupyter/nbformat/compare/v5.8.0...1b5e8e4e9af98f9c9b0843ba155b8756103d094d))
+
+### Maintenance and upkeep improvements
+
+- Support Python 3.12 [#363](https://github.com/jupyter/nbformat/pull/363)
([@blink1073](https://github.com/blink1073))
+- Use local coverage [#360](https://github.com/jupyter/nbformat/pull/360)
([@blink1073](https://github.com/blink1073))
+- Bump actions/checkout from 2 to 3
[#350](https://github.com/jupyter/nbformat/pull/350)
([@dependabot](https://github.com/dependabot))
+
+### Contributors to this release
+
+([GitHub contributors page for this
release](https://github.com/jupyter/nbformat/graphs/contributors?from=2023-03-20&to=2023-05-31&type=c))
+
+[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Ablink1073+updated%3A2023-03-20..2023-05-31&type=Issues)
|
[@dependabot](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Adependabot+updated%3A2023-03-20..2023-05-31&type=Issues)
|
[@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Apre-commit-ci+updated%3A2023-03-20..2023-05-31&type=Issues)
+
+<!-- <END NEW CHANGELOG ENTRY> -->
+
## 5.8.0
([Full
Changelog](https://github.com/jupyter/nbformat/compare/v5.7.3...85917af9c77beae326531e1923e0ec47725e590b))
@@ -29,8 +47,6 @@
[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Ablink1073+updated%3A2023-01-12..2023-03-20&type=Issues)
|
[@dcsaba89](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Adcsaba89+updated%3A2023-01-12..2023-03-20&type=Issues)
|
[@jonabc](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Ajonabc+updated%3A2023-01-12..2023-03-20&type=Issues)
|
[@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Apre-commit-ci+updated%3A2023-01-12..2023-03-20&type=Issues)
|
[@rschroll](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Arschroll+updated%3A2023-01-12..2023-03-20&type=Issues)
|
[@westurner](https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Awesturner+updated%3A2023-01-12..2023-03-20&type=Issues)
-<!-- <END NEW CHANGELOG ENTRY> -->
-
## 5.7.3
([Full
Changelog](https://github.com/jupyter/nbformat/compare/v5.7.2...1eefc29edff5da06f78c0087e7c06e644a6abcc9))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/PKG-INFO new/nbformat-5.9.0/PKG-INFO
--- old/nbformat-5.8.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: nbformat
-Version: 5.8.0
+Version: 5.9.0
Summary: The Jupyter Notebook format
Project-URL: Homepage, https://jupyter.org
Author-email: Jupyter Development Team <[email protected]>
@@ -43,14 +43,12 @@
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
-Requires-Python: >=3.7
+Requires-Python: >=3.8
Requires-Dist: fastjsonschema
-Requires-Dist: importlib-metadata>=3.6; python_version < '3.8'
Requires-Dist: jsonschema>=2.6
Requires-Dist: jupyter-core
Requires-Dist: traitlets>=5.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/README.md new/nbformat-5.9.0/README.md
--- old/nbformat-5.8.0/README.md 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/README.md 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,5 @@
# nbformat: Jupyter Notebook Format
-[](https://codecov.io/github/jupyter/nbformat/coverage.svg?branch=main)

`nbformat` contains the reference implementation of the [Jupyter Notebook
format],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/codecov.yml
new/nbformat-5.9.0/codecov.yml
--- old/nbformat-5.8.0/codecov.yml 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/codecov.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,9 +0,0 @@
-coverage:
- status:
- project:
- default:
- target: auto
- threshold: 1
- patch:
- default:
- target: 0%
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/nbformat/current.py
new/nbformat-5.9.0/nbformat/current.py
--- old/nbformat-5.8.0/nbformat/current.py 2020-02-02 01:00:00.000000000
+0100
+++ new/nbformat-5.9.0/nbformat/current.py 2020-02-02 01:00:00.000000000
+0100
@@ -43,6 +43,7 @@
- use nbformat.vX directly to composing notebooks of a particular version
""",
DeprecationWarning,
+ stacklevel=2,
)
__all__ = [
@@ -88,7 +89,8 @@
def _warn_format():
warnings.warn(
"""Non-JSON file support in nbformat is deprecated since nbformat 1.0.
- Use nbconvert to create files of other formats."""
+ Use nbconvert to create files of other formats.""",
+ stacklevel=2,
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/nbformat/sign.py
new/nbformat-5.9.0/nbformat/sign.py
--- old/nbformat-5.8.0/nbformat/sign.py 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/nbformat/sign.py 2020-02-02 01:00:00.000000000 +0100
@@ -14,6 +14,19 @@
try:
import sqlite3
+
+ # Use adapters recommended by Python 3.12 stdlib docs.
+ #
https://docs.python.org/3.12/library/sqlite3.html#default-adapters-and-converters-deprecated
+ def adapt_datetime_iso(val):
+ """Adapt datetime.datetime to timezone-naive ISO 8601 date."""
+ return val.isoformat()
+
+ def convert_datetime(val):
+ """Convert ISO 8601 datetime to datetime.datetime object."""
+ return datetime.fromisoformat(val.decode())
+
+ sqlite3.register_adapter(datetime, adapt_datetime_iso)
+ sqlite3.register_converter("datetime", convert_datetime)
except ImportError:
try:
from pysqlite2 import dbapi2 as sqlite3 # type:ignore[no-redef]
@@ -596,21 +609,21 @@
def sign_notebook(self, nb, notebook_path="<stdin>"):
"""Sign a notebook that's been loaded"""
if self.notary.check_signature(nb):
- print("Notebook already signed: %s" % notebook_path)
+ print("Notebook already signed: %s" % notebook_path) # noqa
else:
- print("Signing notebook: %s" % notebook_path)
+ print("Signing notebook: %s" % notebook_path) # noqa
self.notary.sign(nb)
def generate_new_key(self):
"""Generate a new notebook signature key"""
- print("Generating new notebook key: %s" % self.notary.secret_file)
+ print("Generating new notebook key: %s" % self.notary.secret_file) #
noqa
self.notary._write_secret_file(os.urandom(1024))
def start(self):
"""Start the trust notebook app."""
if self.reset:
if os.path.exists(self.notary.db_file):
- print("Removing trusted signature cache: %s" %
self.notary.db_file)
+ print("Removing trusted signature cache: %s" %
self.notary.db_file) # noqa
os.remove(self.notary.db_file)
self.generate_new_key()
return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/nbformat/v2/nbpy.py
new/nbformat-5.9.0/nbformat/v2/nbpy.py
--- old/nbformat-5.8.0/nbformat/v2/nbpy.py 2020-02-02 01:00:00.000000000
+0100
+++ new/nbformat-5.9.0/nbformat/v2/nbpy.py 2020-02-02 01:00:00.000000000
+0100
@@ -42,7 +42,7 @@
"""Convert a string to a notebook."""
return self.to_notebook(s, **kwargs)
- def to_notebook(self, s, **kwargs):
+ def to_notebook(self, s, **kwargs): # noqa
"""Convert a string to a notebook."""
lines = s.splitlines()
cells = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/nbformat/v3/nbpy.py
new/nbformat-5.9.0/nbformat/v3/nbpy.py
--- old/nbformat-5.8.0/nbformat/v3/nbpy.py 2020-02-02 01:00:00.000000000
+0100
+++ new/nbformat-5.9.0/nbformat/v3/nbpy.py 2020-02-02 01:00:00.000000000
+0100
@@ -113,7 +113,7 @@
nb = new_notebook(worksheets=[ws])
return nb
- def new_cell(self, state, lines, **kwargs):
+ def new_cell(self, state, lines, **kwargs): # noqa
"""Create a new cell."""
if state == "codecell":
input_ = "\n".join(lines)
@@ -167,7 +167,7 @@
class PyWriter(NotebookWriter):
"""A Python notebook writer."""
- def writes(self, nb, **kwargs):
+ def writes(self, nb, **kwargs): # noqa
"""Convert a notebook to a string."""
lines = ["# -*- coding: utf-8 -*-"]
lines.extend(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/nbformat/validator.py
new/nbformat-5.9.0/nbformat/validator.py
--- old/nbformat-5.8.0/nbformat/validator.py 2020-02-02 01:00:00.000000000
+0100
+++ new/nbformat-5.9.0/nbformat/validator.py 2020-02-02 01:00:00.000000000
+0100
@@ -202,8 +202,7 @@
[
error.message,
"",
- "Failed validating %r in %s%s:"
- % (
+ "Failed validating {!r} in {}{}:".format(
error.validator,
self.ref or "notebook",
_format_as_index(list(error.relative_schema_path)[:-1]),
@@ -524,7 +523,7 @@
return iter(errors)
-def _strip_invalida_metadata(
+def _strip_invalida_metadata( # noqa
nbdict: Any, version: int, version_minor: int, relax_add_props: bool
) -> int:
"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/package.json
new/nbformat-5.9.0/package.json
--- old/nbformat-5.8.0/package.json 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/package.json 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
{
"name": "nbformat-schema",
- "version": "5.8.0",
+ "version": "5.9.0",
"description": "JSON schemata for Jupyter notebook formats",
"main": "index.js",
"files": [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/pyproject.toml
new/nbformat-5.9.0/pyproject.toml
--- old/nbformat-5.8.0/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
+++ new/nbformat-5.9.0/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
@@ -15,19 +15,17 @@
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]
-requires-python = ">=3.7"
+requires-python = ">=3.8"
dependencies = [
"fastjsonschema",
"jsonschema>=2.6",
"jupyter_core",
- "traitlets>=5.1",
- "importlib-metadata>=3.6;python_version<\"3.8\"",
+ "traitlets>=5.1"
]
[[project.authors]]
@@ -87,7 +85,7 @@
test = "mypy --install-types --non-interactive {args:nbformat tests}"
[tool.hatch.envs.lint]
-dependencies = ["black[jupyter]==23.1.0", "mdformat>0.7", "ruff==0.0.254"]
+dependencies = ["black[jupyter]==23.3.0", "mdformat>0.7", "ruff==0.0.263"]
detached = true
[tool.hatch.envs.lint.scripts]
style = [
@@ -110,6 +108,8 @@
"error",
"ignore:Using or importing the ABCs from
'collections':DeprecationWarning:jsonschema",
"module:Jupyter is migrating its paths to use standard
platformdirs:DeprecationWarning",
+ # ignore pytest warnings.
+ "ignore:::_pytest",
]
[tool.coverage.report]
@@ -192,10 +192,16 @@
# RUF001 contains ambiguous unicode character 'â' (did you mean '-'?)
# S101 Use of `assert` detected
# PLR2004 Magic value used in comparison
-"tests/*" = ["B011", "F841", "C408", "E402", "T201", "B007", "N802", "RUF001",
"RUF002", "S101", "PLR2004"]
+# PLC1901 `cell.source == ""` can be simplified
+"tests/*" = ["B011", "F841", "C408", "E402", "T201", "B007", "N802", "RUF001",
"RUF002", "S101", "PLR2004",
+ "PLC1901"]
# F401 `nbxml.to_notebook` imported but unused
"nbformat/*__init__.py" = ["F401"]
+[tool.coverage.run]
+relative_files = true
+source = ["nbformat"]
+
[tool.interrogate]
ignore-init-module=true
ignore-private=true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nbformat-5.8.0/tests/test_sign.py
new/nbformat-5.9.0/tests/test_sign.py
--- old/nbformat-5.8.0/tests/test_sign.py 2020-02-02 01:00:00.000000000
+0100
+++ new/nbformat-5.9.0/tests/test_sign.py 2020-02-02 01:00:00.000000000
+0100
@@ -219,7 +219,7 @@
env = os.environ.copy()
env["JUPYTER_DATA_DIR"] = self.data_dir
p = Popen(
- [sys.executable, "-m", "nbformat.sign", "--log-level=0"],
+ [sys.executable, "-m", "nbformat.sign", "--log-level=0"], #
noqa
stdin=PIPE,
stdout=PIPE,
env=env,