Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jupyterlab-templates for 
openSUSE:Factory checked in at 2021-03-30 20:59:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyterlab-templates (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyterlab-templates.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyterlab-templates"

Tue Mar 30 20:59:57 2021 rev:4 rq:869705 version:0.3.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyterlab-templates/python-jupyterlab-templates.changes
  2020-05-26 17:22:16.140355154 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jupyterlab-templates.new.2401/python-jupyterlab-templates.changes
        2021-03-30 21:00:01.340693024 +0200
@@ -1,0 +2,8 @@
+Thu Feb  4 19:31:36 UTC 2021 - Ben Greiner <[email protected]>
+
+- Update to 0.3.0
+  * No upstream changelog. Mostly internal changes.
+- Fix wheel install location for pyproject_install
+- Enable tests
+
+-------------------------------------------------------------------

Old:
----
  jupyterlab_templates-0.2.3-py2.py3-none-any.whl

New:
----
  jupyterlab_templates-0.3.0-py2.py3-none-any.whl

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

Other differences:
------------------
++++++ python-jupyterlab-templates.spec ++++++
--- /var/tmp/diff_new_pack.f0n8JC/_old  2021-03-30 21:00:02.080693837 +0200
+++ /var/tmp/diff_new_pack.f0n8JC/_new  2021-03-30 21:00:02.084693842 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jupyterlab-templates
 #
-# 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
@@ -19,13 +19,15 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
 Name:           python-jupyterlab-templates
-Version:        0.2.3
+Version:        0.3.0
 Release:        0
 Summary:        Templates for notebooks in JupyterLab
 License:        Apache-2.0
 URL:            https://github.com/timkpaine/jupyterlab_templates
 Source:         
https://files.pythonhosted.org/packages/py2.py3/j/jupyterlab-templates/jupyterlab_templates-%{version}-py2.py3-none-any.whl
+BuildRequires:  %{python_module jupyterlab}
 BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  fdupes
 BuildRequires:  jupyter-jupyterlab-filesystem
 BuildRequires:  jupyter-notebook-filesystem
@@ -55,25 +57,29 @@
 %setup -q -c -T
 
 %build
-# not needed
+%{python_expand mkdir build/; cp -a %{SOURCE0} build/}
 
 %install
-cp -a %{SOURCE0} .
 %pyproject_install
+%python_expand sed -i 's/^from mock/from unittest.mock/' 
%{buildroot}%{$python_sitelib}/jupyterlab_templates/tests/test_extension.py
+%python_compileall
 %jupyter_move_config
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
-%{fdupes %{buildroot}%{_jupyter_prefix} %{buildroot}%{python3_sitelib}}
+%fdupes %{buildroot}%{_jupyter_prefix}
 
 cp 
%{buildroot}%{python3_sitelib}/jupyterlab_templates-%{version}.dist-info/LICENSE
 .
 
 %files %{python_files}
-%license %{python_sitelib}/jupyterlab_templates-%{version}.dist-info/LICENSE
+%license LICENSE
 %{python_sitelib}/jupyterlab_templates-%{version}.dist-info/
 %{python_sitelib}/jupyterlab_templates/
 
+%check
+%pytest --pyargs jupyterlab_templates
+
 %files -n jupyter-jupyterlab-templates
 %license LICENSE
-%{_jupyter_servextension_confdir}/jupyterlab_templates.json
+%config %{_jupyter_servextension_confdir}/jupyterlab_templates.json
 %{_jupyter_labextensions_dir}/jupyterlab_templates-%{version}.tgz
 
 %changelog

Reply via email to