Hello community,

here is the log from the commit of package python-nbval for openSUSE:Factory 
checked in at 2020-12-17 17:06:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbval (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbval.new.5145 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbval"

Thu Dec 17 17:06:08 2020 rev:6 rq:856670 version:0.9.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbval/python-nbval.changes        
2020-02-25 16:05:53.108450165 +0100
+++ /work/SRC/openSUSE:Factory/.python-nbval.new.5145/python-nbval.changes      
2020-12-17 17:09:22.521975051 +0100
@@ -1,0 +2,13 @@
+Thu Dec 17 12:12:35 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Update to 0.9.6
+  * fix compatibility with pytest >= 6 and python 3.8 
+- enable tests
+
+-------------------------------------------------------------------
+Tue Dec 15 12:52:44 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Provide the old jupyter package name only for the primary
+  Python3 interpreter -- gh#openSUSE/python-rpm-macros#66
+
+-------------------------------------------------------------------

Old:
----
  nbval-0.9.5.tar.gz

New:
----
  nbval-0.9.6.tar.gz

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

Other differences:
------------------
++++++ python-nbval.spec ++++++
--- /var/tmp/diff_new_pack.NKqmJ5/_old  2020-12-17 17:09:23.017975543 +0100
+++ /var/tmp/diff_new_pack.NKqmJ5/_new  2020-12-17 17:09:23.021975547 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
 Name:           python-nbval
-Version:        0.9.5
+Version:        0.9.6
 Release:        0
 Summary:        A pytest plugin to validate Jupyter notebooks
 License:        BSD-3-Clause
@@ -60,7 +60,7 @@
 BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module sympy}
 # /SECTION
-%ifpython3
+%if "%{python_flavor}" == "python3" || "%{?python_provides}"  == "python3"
 Provides:       jupyter-nbval = %{version}
 %endif
 %python_subpackages
@@ -91,6 +91,10 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+# see dodo.py
+%pytest tests/ --nbval --current-env --sanitize-with 
tests/sanitize_defaults.cfg --ignore tests/ipynb-test-samples
+
 %files %{python_files}
 %doc README.md
 %license LICENSE

++++++ nbval-0.9.5.tar.gz -> nbval-0.9.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbval-0.9.5/PKG-INFO new/nbval-0.9.6/PKG-INFO
--- old/nbval-0.9.5/PKG-INFO    2020-02-12 13:04:04.000000000 +0100
+++ new/nbval-0.9.6/PKG-INFO    2020-07-30 12:56:30.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: nbval
-Version: 0.9.5
+Version: 0.9.6
 Summary: A py.test plugin to validate Jupyter notebooks
 Home-page: https://github.com/computationalmodelling/nbval
 Author: Laslett, Cortes, Fauske, Kluyver, Pepper, Fangohr
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbval-0.9.5/nbval/_version.py 
new/nbval-0.9.6/nbval/_version.py
--- old/nbval-0.9.5/nbval/_version.py   2020-02-12 13:03:00.000000000 +0100
+++ new/nbval-0.9.6/nbval/_version.py   2020-07-30 12:55:50.000000000 +0200
@@ -1,2 +1,2 @@
-version_info = (0, 9, 5)
+version_info = (0, 9, 6)
 __version__ = '.'.join(map(str, version_info[:3])) + ''.join(version_info[3:])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbval-0.9.5/nbval/nbdime_reporter.py 
new/nbval-0.9.6/nbval/nbdime_reporter.py
--- old/nbval-0.9.5/nbval/nbdime_reporter.py    2018-01-17 12:17:29.000000000 
+0100
+++ new/nbval-0.9.6/nbval/nbdime_reporter.py    2020-07-30 12:52:14.000000000 
+0200
@@ -25,7 +25,7 @@
 
 nbdime.log.set_nbdime_log_level('ERROR')
 
-_re_nbval_nodeid = re.compile('.*\.ipynb::Cell \d+')
+_re_nbval_nodeid = re.compile(r'.*\.ipynb::Cell \d+')
 
 
 class NbdimeReporter:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbval-0.9.5/nbval/plugin.py 
new/nbval-0.9.6/nbval/plugin.py
--- old/nbval-0.9.5/nbval/plugin.py     2020-01-27 16:38:41.000000000 +0100
+++ new/nbval-0.9.6/nbval/plugin.py     2020-07-30 12:52:14.000000000 +0200
@@ -112,7 +112,11 @@
     """
     opt = parent.config.option
     if (opt.nbval or opt.nbval_lax) and path.fnmatch("*.ipynb"):
-        return IPyNbFile(path, parent)
+        # 
https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent
+        if hasattr(IPyNbFile, "from_parent"):
+            return IPyNbFile.from_parent(parent, fspath=path)
+        else:  # Pytest < 5.4
+            return IPyNbFile(path, parent)
 
 
 
@@ -308,8 +312,14 @@
                     )
                 options.update(comment_opts)
                 options.setdefault('check', self.compare_outputs)
-                yield IPyNbCell('Cell ' + str(cell_num), self, cell_num,
-                                cell, options)
+                name = 'Cell ' + str(cell_num)
+                # 
https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent
+                if hasattr(IPyNbCell, "from_parent"):
+                    yield IPyNbCell.from_parent(
+                        self, name=name, cell_num=cell_num, cell=cell, 
options=options
+                    )
+                else:
+                    yield IPyNbCell(name, self, cell_num, cell, options)
 
                 # Update 'code' cell count
                 cell_num += 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbval-0.9.5/nbval.egg-info/PKG-INFO 
new/nbval-0.9.6/nbval.egg-info/PKG-INFO
--- old/nbval-0.9.5/nbval.egg-info/PKG-INFO     2020-02-12 13:04:04.000000000 
+0100
+++ new/nbval-0.9.6/nbval.egg-info/PKG-INFO     2020-07-30 12:56:30.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: nbval
-Version: 0.9.5
+Version: 0.9.6
 Summary: A py.test plugin to validate Jupyter notebooks
 Home-page: https://github.com/computationalmodelling/nbval
 Author: Laslett, Cortes, Fauske, Kluyver, Pepper, Fangohr
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nbval-0.9.5/tests/test_unit_tests_in_notebooks.py 
new/nbval-0.9.6/tests/test_unit_tests_in_notebooks.py
--- old/nbval-0.9.5/tests/test_unit_tests_in_notebooks.py       2018-01-17 
12:17:29.000000000 +0100
+++ new/nbval-0.9.6/tests/test_unit_tests_in_notebooks.py       2020-07-30 
12:52:14.000000000 +0200
@@ -66,7 +66,7 @@
     if correctoutcome == 'pass':
         if exitcode != 0:
             raise AssertionError("Tests failed on ipynb (expected pass)")
-        assert exitcode is 0
+        assert exitcode == 0
         print("The call of py.test has not reported errors - this is good.")
     elif correctoutcome == 'fail':
         if exitcode == 0:
_______________________________________________
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

Reply via email to