commit python-nbsmoke for openSUSE:Factory

2023-08-11 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbsmoke for openSUSE:Factory 
checked in at 2023-08-11 15:56:04

Comparing /work/SRC/openSUSE:Factory/python-nbsmoke (Old)
 and  /work/SRC/openSUSE:Factory/.python-nbsmoke.new.11712 (New)


Package is "python-nbsmoke"

Fri Aug 11 15:56:04 2023 rev:10 rq:1103426 version:0.6.0

Changes:

--- /work/SRC/openSUSE:Factory/python-nbsmoke/python-nbsmoke.changes
2022-10-18 12:45:49.109835560 +0200
+++ /work/SRC/openSUSE:Factory/.python-nbsmoke.new.11712/python-nbsmoke.changes 
2023-08-11 15:56:18.336038823 +0200
@@ -1,0 +2,5 @@
+Fri Aug 11 03:15:06 UTC 2023 - Ben Greiner 
+
+- Ignore test failure due to new unicode handling in the stack
+
+---



Other differences:
--
++ python-nbsmoke.spec ++
--- /var/tmp/diff_new_pack.NS0e1k/_old  2023-08-11 15:56:19.880048023 +0200
+++ /var/tmp/diff_new_pack.NS0e1k/_new  2023-08-11 15:56:19.924048285 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nbsmoke
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,21 @@
 #
 
 
-%{?!python_module:%define python_module() python3-%{**}}
-%define skip_python2 1
 Name:   python-nbsmoke
 Version:0.6.0
 Release:0
 Summary:Basic notebook checks
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-URL:https://github.com/pyviz-dev/nbsmoke
+URL:https://github.com/holoviz-dev/nbsmoke
 Source: 
https://files.pythonhosted.org/packages/source/n/nbsmoke/nbsmoke-%{version}.tar.gz
 # PATCH-FIX-UPSTREAM nbsmoke-pr63-remove-id.patch gh#pyviz-dev/nbsmoke#63
 Patch0: nbsmoke-pr63-remove-id.patch
 # PATCH-FIX-OPENSUSE nbsmoke-obs-nounraisableexception.patch, don't error on 
warnings about obs not closing sockets in time, c...@bnavigator.de
 Patch1: nbsmoke-obs-nounraisableexception.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-ipykernel
@@ -69,21 +69,23 @@
 %autosetup -p1 -n nbsmoke-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # needs to import from sourcedir
 export PYTHONPATH=":x"
-%pytest -p pytester
+# fails to check unicode strings
+donttest="test_run_good_html"
+%pytest -p pytester -k "not ($donttest)"
 
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%{python_sitelib}/nbsmoke-%{version}*-info
+%{python_sitelib}/nbsmoke-%{version}.dist-info
 %{python_sitelib}/nbsmoke/
 
 %changelog


commit python-nbsmoke for openSUSE:Factory

2022-10-18 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbsmoke for openSUSE:Factory 
checked in at 2022-10-18 12:45:24

Comparing /work/SRC/openSUSE:Factory/python-nbsmoke (Old)
 and  /work/SRC/openSUSE:Factory/.python-nbsmoke.new.2275 (New)


Package is "python-nbsmoke"

Tue Oct 18 12:45:24 2022 rev:9 rq:1029607 version:0.6.0

Changes:

--- /work/SRC/openSUSE:Factory/python-nbsmoke/python-nbsmoke.changes
2022-06-25 10:25:12.462754747 +0200
+++ /work/SRC/openSUSE:Factory/.python-nbsmoke.new.2275/python-nbsmoke.changes  
2022-10-18 12:45:49.109835560 +0200
@@ -1,0 +2,5 @@
+Mon Oct 17 20:15:23 UTC 2022 - Ben Greiner 
+
+- Add nbsmoke-pr63-remove-id.patch -- gh#pyviz-dev/nbsmoke#63
+
+---

New:

  nbsmoke-pr63-remove-id.patch



Other differences:
--
++ python-nbsmoke.spec ++
--- /var/tmp/diff_new_pack.H4Oc3y/_old  2022-10-18 12:45:49.541836543 +0200
+++ /var/tmp/diff_new_pack.H4Oc3y/_new  2022-10-18 12:45:49.545836553 +0200
@@ -26,6 +26,8 @@
 Group:  Development/Languages/Python
 URL:https://github.com/pyviz-dev/nbsmoke
 Source: 
https://files.pythonhosted.org/packages/source/n/nbsmoke/nbsmoke-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM nbsmoke-pr63-remove-id.patch gh#pyviz-dev/nbsmoke#63
+Patch0: nbsmoke-pr63-remove-id.patch
 # PATCH-FIX-OPENSUSE nbsmoke-obs-nounraisableexception.patch, don't error on 
warnings about obs not closing sockets in time, c...@bnavigator.de
 Patch1: nbsmoke-obs-nounraisableexception.patch
 BuildRequires:  %{python_module setuptools}

++ nbsmoke-pr63-remove-id.patch ++
>From 86860f1900bbc38f0a1873001bb8f420f66d96d4 Mon Sep 17 00:00:00 2001
From: maximlt 
Date: Mon, 3 Oct 2022 14:30:05 +0200
Subject: [PATCH 2/2] remove added id field when not required

---
 nbsmoke/lint/magics/__init__.py | 12 
 1 file changed, 12 insertions(+)

diff --git a/nbsmoke/lint/magics/__init__.py b/nbsmoke/lint/magics/__init__.py
index 8e991e8..c23f2ab 100644
--- a/nbsmoke/lint/magics/__init__.py
+++ b/nbsmoke/lint/magics/__init__.py
@@ -120,11 +120,23 @@ def _load_user_magic_handlers(path):
 def insert_get_ipython(nb):
 # define and use get_ipython (for pyflakes)
 if len(nb['cells']) > 0:
+is_id_field = 'id' in nb['cells'][0]
 # the get_ipython() is so pyflakes doesn't complain if no
 # magics present (which would leave get_ipython unused)
 get_ipython_cell = nbformat.v4.new_code_cell(
 'from IPython import get_ipython\nget_ipython()')
 nb['cells'].insert(0,get_ipython_cell)
+# Starting from nbformat 4.5 notebook cells must have an id field.
+# So adding a new cell with new_code_cell will add a cell with an 
id field.
+# However, if the notebook was based on a previous version (e.g. 
4.2),
+# then it would contain a mix of id and non id cells. Newer 
versions
+# of nbformat (5.6) raise an error when validating such notebook 
while
+# before they were mutating it. nbconvert uses nbformat to validate
+# it build proper notebooks, in particular after applying 
preprocessors.
+# This change remove the id added by new_code_cell if the notebook
+# didn't have ids (just checking the first cell...).
+if 'id' in nb['cells'][0] and not is_id_field:
+del nb['cells'][0]['id']
 
 
 def ipython_to_python_for_flake_checks(self, ipy):


commit python-nbsmoke for openSUSE:Factory

2022-06-25 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbsmoke for openSUSE:Factory 
checked in at 2022-06-25 10:24:53

Comparing /work/SRC/openSUSE:Factory/python-nbsmoke (Old)
 and  /work/SRC/openSUSE:Factory/.python-nbsmoke.new.1548 (New)


Package is "python-nbsmoke"

Sat Jun 25 10:24:53 2022 rev:8 rq:984968 version:0.6.0

Changes:

--- /work/SRC/openSUSE:Factory/python-nbsmoke/python-nbsmoke.changes
2022-01-08 23:25:13.694310449 +0100
+++ /work/SRC/openSUSE:Factory/.python-nbsmoke.new.1548/python-nbsmoke.changes  
2022-06-25 10:25:12.462754747 +0200
@@ -1,0 +2,6 @@
+Fri Jun 24 19:39:08 UTC 2022 - Ben Greiner 
+
+- Add nbsmoke-obs-nounraisableexception.patch: don't error on
+  warnings about obs not closing sockets in time
+
+---

New:

  nbsmoke-obs-nounraisableexception.patch



Other differences:
--
++ python-nbsmoke.spec ++
--- /var/tmp/diff_new_pack.a2PWqN/_old  2022-06-25 10:25:12.814755250 +0200
+++ /var/tmp/diff_new_pack.a2PWqN/_new  2022-06-25 10:25:12.822755261 +0200
@@ -26,6 +26,8 @@
 Group:  Development/Languages/Python
 URL:https://github.com/pyviz-dev/nbsmoke
 Source: 
https://files.pythonhosted.org/packages/source/n/nbsmoke/nbsmoke-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE nbsmoke-obs-nounraisableexception.patch, don't error on 
warnings about obs not closing sockets in time, c...@bnavigator.de
+Patch1: nbsmoke-obs-nounraisableexception.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -62,7 +64,7 @@
 and whether they contain lint.
 
 %prep
-%setup -q -n nbsmoke-%{version}
+%autosetup -p1 -n nbsmoke-%{version}
 
 %build
 %python_build

++ nbsmoke-obs-nounraisableexception.patch ++
Index: nbsmoke-0.6.0/nbsmoke/tests/__init__.py
===
--- nbsmoke-0.6.0.orig/nbsmoke/tests/__init__.py
+++ nbsmoke-0.6.0/nbsmoke/tests/__init__.py
@@ -60,12 +60,15 @@ VERBOSE = '-v'
 # Ignore deprecation warnings until the many deprecation warnings stop
 # coming from ipython and traitlets as used by nbconvert
 IGNORE_DEPRECATION_WARNINGS = '-W ignore::DeprecationWarning'
+# don't error on warnings about obs not closing sockets in time
+# 
https://docs.pytest.org/en/7.1.x/how-to/failures.html#warning-about-unraisable-exceptions-and-unhandled-thread-exceptions
+NO_UNRAISABLE_EXCEPTION = ['-p', 'no:unraisableexception']
 
 _all_args = [
 VERBOSE,
 WARNINGS_ARE_ERRORS,
 IGNORE_DEPRECATION_WARNINGS
-]
+] + NO_UNRAISABLE_EXCEPTION
 
 
 lint_args = ['--nbsmoke-lint'] + _all_args


commit python-nbsmoke for openSUSE:Factory

2022-01-08 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbsmoke for openSUSE:Factory 
checked in at 2022-01-08 23:24:22

Comparing /work/SRC/openSUSE:Factory/python-nbsmoke (Old)
 and  /work/SRC/openSUSE:Factory/.python-nbsmoke.new.1892 (New)


Package is "python-nbsmoke"

Sat Jan  8 23:24:22 2022 rev:7 rq:944946 version:0.6.0

Changes:

--- /work/SRC/openSUSE:Factory/python-nbsmoke/python-nbsmoke.changes
2021-11-15 15:28:27.233858004 +0100
+++ /work/SRC/openSUSE:Factory/.python-nbsmoke.new.1892/python-nbsmoke.changes  
2022-01-08 23:25:13.694310449 +0100
@@ -1,0 +2,6 @@
+Sat Jan  8 19:27:13 UTC 2022 - Ben Greiner 
+
+- Update to 0.6.0
+  * Change template file name for nbconvert >= 6
+
+---

Old:

  nbsmoke-0.5.0.tar.gz
  python-nbsmoke-rpmlintrc

New:

  nbsmoke-0.6.0.tar.gz



Other differences:
--
++ python-nbsmoke.spec ++
--- /var/tmp/diff_new_pack.UHV5wO/_old  2022-01-08 23:25:14.110310789 +0100
+++ /var/tmp/diff_new_pack.UHV5wO/_new  2022-01-08 23:25:14.114310792 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nbsmoke
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,14 +19,13 @@
 %{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:   python-nbsmoke
-Version:0.5.0
+Version:0.6.0
 Release:0
 Summary:Basic notebook checks
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 URL:https://github.com/pyviz-dev/nbsmoke
 Source: 
https://files.pythonhosted.org/packages/source/n/nbsmoke/nbsmoke-%{version}.tar.gz
-Source99:   python-nbsmoke-rpmlintrc
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -62,12 +61,6 @@
 Basic notebook smoke tests for checking whether the notebooks run,
 and whether they contain lint.
 
-WARNING: early stage proof of concept; work in progress. Use at your
-own risk.
-
-In particular, this extension is supposed to handle ipython magics as
-far as possible, but has not yet been widely tested.
-
 %prep
 %setup -q -n nbsmoke-%{version}
 
@@ -76,18 +69,15 @@
 
 %install
 %python_install
-%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests/
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-# unix socket problem in OBS
-donttest="test_run_good_html"
-# linter problem
-python39_donttest="or test_lint_bad"
-%pytest -k "not ($donttest ${$python_donttest})"
+# needs to import from sourcedir
+export PYTHONPATH=":x"
+%pytest -p pytester
 
 %files %{python_files}
-%doc README.rst
+%doc README.md
 %license LICENSE
 %{python_sitelib}/nbsmoke-%{version}*-info
 %{python_sitelib}/nbsmoke/

++ nbsmoke-0.5.0.tar.gz -> nbsmoke-0.6.0.tar.gz ++
 4234 lines of diff (skipped)


commit python-nbsmoke for openSUSE:Factory

2021-11-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbsmoke for openSUSE:Factory 
checked in at 2021-11-15 15:26:42

Comparing /work/SRC/openSUSE:Factory/python-nbsmoke (Old)
 and  /work/SRC/openSUSE:Factory/.python-nbsmoke.new.1890 (New)


Package is "python-nbsmoke"

Mon Nov 15 15:26:42 2021 rev:6 rq:931403 version:0.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-nbsmoke/python-nbsmoke.changes
2020-12-17 17:08:36.537929403 +0100
+++ /work/SRC/openSUSE:Factory/.python-nbsmoke.new.1890/python-nbsmoke.changes  
2021-11-15 15:28:27.233858004 +0100
@@ -1,0 +2,9 @@
+Sun Nov 14 14:21:07 UTC 2021 - Ben Greiner 
+
+- Update to 0.5.0
+  * Compatibility with newer versions of pytest.
+  * Compatibility with newer versions of nbconvert.
+  * Allow user-specified magic handlers.
+- Enable test suite
+
+---

Old:

  nbsmoke-0.4.1.tar.gz

New:

  nbsmoke-0.5.0.tar.gz



Other differences:
--
++ python-nbsmoke.spec ++
--- /var/tmp/diff_new_pack.wWCCz9/_old  2021-11-15 15:28:27.637858118 +0100
+++ /var/tmp/diff_new_pack.wWCCz9/_new  2021-11-15 15:28:27.641858118 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nbsmoke
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,29 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:   python-nbsmoke
-Version:0.4.1
+Version:0.5.0
 Release:0
 Summary:Basic notebook checks
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-URL:https://github.com/pyviz/nbsmoke
+URL:https://github.com/pyviz-dev/nbsmoke
 Source: 
https://files.pythonhosted.org/packages/source/n/nbsmoke/nbsmoke-%{version}.tar.gz
 Source99:   python-nbsmoke-rpmlintrc
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:   python-beautifulsoup4
 Requires:   python-ipykernel
 Requires:   python-jupyter-client
 Requires:   python-nbconvert
 Requires:   python-nbformat
+Requires:   python-param
 Requires:   python-pyflakes
 Requires:   python-pytest >= 3.1.1
-Requires:   python-requests
+Recommends: python-beautifulsoup4
+Recommends: python-requests
 Provides:   python-jupyter_nbsmoke = %{version}
 Obsoletes:  python-jupyter_nbsmoke < %{version}
 BuildArch:  noarch
@@ -47,6 +48,7 @@
 BuildRequires:  %{python_module jupyter-client}
 BuildRequires:  %{python_module nbconvert}
 BuildRequires:  %{python_module nbformat}
+BuildRequires:  %{python_module param}
 BuildRequires:  %{python_module pyflakes}
 BuildRequires:  %{python_module pytest >= 3.1.1}
 BuildRequires:  %{python_module requests}
@@ -78,12 +80,16 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_expand $python -c "import nbsmoke"
+# unix socket problem in OBS
+donttest="test_run_good_html"
+# linter problem
+python39_donttest="or test_lint_bad"
+%pytest -k "not ($donttest ${$python_donttest})"
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/nbsmoke-%{version}-py*.egg-info
+%{python_sitelib}/nbsmoke-%{version}*-info
 %{python_sitelib}/nbsmoke/
 
 %changelog

++ nbsmoke-0.4.1.tar.gz -> nbsmoke-0.5.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbsmoke-0.4.1/PKG-INFO new/nbsmoke-0.5.0/PKG-INFO
--- old/nbsmoke-0.4.1/PKG-INFO  2019-12-22 08:30:26.0 +0100
+++ new/nbsmoke-0.5.0/PKG-INFO  2020-09-11 00:16:12.0 +0200
@@ -1,18 +1,34 @@
 Metadata-Version: 2.1
 Name: nbsmoke
-Version: 0.4.1
+Version: 0.5.0
 Summary: Basic notebook checks. Do they run? Do they contain lint?
-Home-page: https://github.com/pyviz/nbsmoke
+Home-page: https://github.com/pyviz-dev/nbsmoke
 Author: pyviz contributors
 Author-email: d...@pyviz.org
 License: BSD-3
-Description: .. image:: 
https://travis-ci.org/pyviz-dev/nbsmoke.svg?branch=master
+Description: .. image:: https://img.shields.io/pypi/v/nbsmoke
+:target: https://pypi.org/project/nbsmoke/
+:alt: PyPI
+  
+.. image:: https://pepy.tech/badge/nbsmoke
+:target: https://pepy.tech/project/nbsmoke
+:alt: PyPI Downloads
+
+.. image:: https://img.shields.io/conda/vn/conda-forge/nbsmoke
+:target: https://anacond

commit python-nbsmoke for openSUSE:Factory

2020-12-17 Thread User for buildservice source handling
Hello community,

here is the log from the commit of package python-nbsmoke for openSUSE:Factory 
checked in at 2020-12-17 17:04:27

Comparing /work/SRC/openSUSE:Factory/python-nbsmoke (Old)
 and  /work/SRC/openSUSE:Factory/.python-nbsmoke.new.5145 (New)


Package is "python-nbsmoke"

Thu Dec 17 17:04:27 2020 rev:5 rq:856392 version:0.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-nbsmoke/python-nbsmoke.changes
2020-01-03 17:38:02.939328456 +0100
+++ /work/SRC/openSUSE:Factory/.python-nbsmoke.new.5145/python-nbsmoke.changes  
2020-12-17 17:08:36.537929403 +0100
@@ -1,0 +2,6 @@
+Tue Dec 15 12:52:43 UTC 2020 - Benjamin Greiner 
+
+- Provide the old jupyter package name only for the primary
+  Python3 interpreter -- gh#openSUSE/python-rpm-macros#66
+
+---



Other differences:
--
++ python-nbsmoke.spec ++
--- /var/tmp/diff_new_pack.TNG3ex/_old  2020-12-17 17:08:36.981929844 +0100
+++ /var/tmp/diff_new_pack.TNG3ex/_new  2020-12-17 17:08:36.985929847 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nbsmoke
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -51,7 +51,7 @@
 BuildRequires:  %{python_module pytest >= 3.1.1}
 BuildRequires:  %{python_module requests}
 # /SECTION
-%ifpython3
+%if "%{python_flavor}" == "python3" || "%{?python_provides}"  == "python3"
 Provides:   jupyter-nbsmoke = %{version}
 %endif
 %python_subpackages
___
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org