Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-nbinteract for openSUSE:Factory checked in at 2021-04-15 16:58:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nbinteract (Old) and /work/SRC/openSUSE:Factory/.python-nbinteract.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nbinteract" Thu Apr 15 16:58:02 2021 rev:4 rq:885593 version:0.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nbinteract/python-nbinteract.changes 2020-05-26 17:22:07.408336381 +0200 +++ /work/SRC/openSUSE:Factory/.python-nbinteract.new.12324/python-nbinteract.changes 2021-04-15 16:58:44.562800130 +0200 @@ -1,0 +2,7 @@ +Sun Apr 11 22:01:27 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Update to 0.26 +- Skip python36 build: NumPy 1.20, NEP 29 +- Add nbinteract-nbconvert6.patch -- gh#SamLau95/nbinteract#152 + +------------------------------------------------------------------- Old: ---- v0.2.5.tar.gz New: ---- nbinteract-0.2.6.tar.gz nbinteract-nbconvert6.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nbinteract.spec ++++++ --- /var/tmp/diff_new_pack.Ti0t5Q/_old 2021-04-15 16:58:45.150801060 +0200 +++ /var/tmp/diff_new_pack.Ti0t5Q/_new 2021-04-15 16:58:45.154801067 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-nbinteract # -# 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 @@ -18,13 +18,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%define skip_python36 1 Name: python-nbinteract -Version: 0.2.5 +Version: 0.2.6 Release: 0 Summary: Python package to export interactive HTML pages from Jupyter Notebooks License: BSD-3-Clause URL: https://github.com/SamLau95/nbinteract -Source: https://github.com/SamLau95/nbinteract/archive/v%{version}.tar.gz +Source: https://github.com/SamLau95/nbinteract/archive/v%{version}.tar.gz#/nbinteract-%{version}.tar.gz +# PATCH-FIX-UPSTREAM nbinteract-nbconvert6.patch -- gh#SamLau95/nbinteract#152 +Patch0: nbinteract-nbconvert6.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -83,7 +86,7 @@ This package provides the command-line interface. %prep -%setup -q -n nbinteract-%{version} +%autosetup -p1 -n nbinteract-%{version} %build %python_build ++++++ nbinteract-nbconvert6.patch ++++++ Index: nbinteract-0.2.6/nbinteract/exporters.py =================================================================== --- nbinteract-0.2.6.orig/nbinteract/exporters.py +++ nbinteract-0.2.6/nbinteract/exporters.py @@ -119,12 +119,18 @@ class InteractExporter(HTMLExporter): find templates. Will be tried in order before the default FileSystem ones. """ - super(InteractExporter, self).__init__(config=config, **kw) + # nbconvert 6 expects the full path for 5.x style .tpl files + if 'template_file' in kw: + kw['template_file'] = os.path.join( + os.path.dirname(__file__), 'templates', + kw['template_file'] + '.tpl') + if config is not None: + if config.InteractExporter.has_key('template_file'): + config.InteractExporter.template_file = os.path.join( + os.path.dirname(__file__), 'templates', + config.InteractExporter.template_file + '.tpl') - # Add current dir to template_path so we can find the template - self.template_path.insert( - 0, os.path.join(os.path.dirname(__file__), 'templates') - ) + super(InteractExporter, self).__init__(config=config, **kw) # Set variables that will be available in the template self.environment.globals['spec'] = self.spec @@ -134,7 +140,8 @@ class InteractExporter(HTMLExporter): @default('template_file') def _template_file_default(self): - return 'full.tpl' + return os.path.join( + os.path.dirname(__file__), 'templates', 'full.tpl') @validate('spec') def _valid_spec(self, proposal): Index: nbinteract-0.2.6/nbinteract/templates/full.tpl =================================================================== --- nbinteract-0.2.6.orig/nbinteract/templates/full.tpl +++ nbinteract-0.2.6/nbinteract/templates/full.tpl @@ -1,5 +1,5 @@ {%- extends 'partial.tpl' -%} -{% from 'mathjax.tpl' import mathjax %} +{% from 'mathjax' import mathjax %} {% from 'nbinteract_css.tpl' import nbinteract_css %} {#