Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-lineup-widget for
openSUSE:Factory checked in at 2023-08-28 17:14:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lineup-widget (Old)
and /work/SRC/openSUSE:Factory/.python-lineup-widget.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-lineup-widget"
Mon Aug 28 17:14:51 2023 rev:6 rq:1106069 version:4.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-lineup-widget/python-lineup-widget.changes
2021-11-13 22:49:05.385275908 +0100
+++
/work/SRC/openSUSE:Factory/.python-lineup-widget.new.1766/python-lineup-widget.changes
2023-08-28 17:14:55.168013551 +0200
@@ -1,0 +2,6 @@
+Sat Aug 26 15:28:34 UTC 2023 - Ben Greiner <[email protected]>
+
+- Don't use notebook 7: nbclassic or notebook 6 required
+- PEP517
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-lineup-widget.spec ++++++
--- /var/tmp/diff_new_pack.gCAAdc/_old 2023-08-28 17:14:56.284053627 +0200
+++ /var/tmp/diff_new_pack.gCAAdc/_new 2023-08-28 17:14:56.288053772 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-lineup-widget
#
-# Copyright (c) 2021 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,9 +16,7 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
-%define skip_python36 1
+%define shortversion 4
Name: python-lineup-widget
Version: 4.0.0
Release: 0
@@ -28,14 +26,18 @@
Group: Development/Languages/Python
Source:
https://files.pythonhosted.org/packages/source/l/lineup-widget/lineup_widget-%{version}.tar.gz
BuildRequires: %{python_module ipywidgets >= 7.0.0}
-BuildRequires: %{python_module notebook}
+BuildRequires: %{python_module nbclassic}
BuildRequires: %{python_module pandas >= 0.18.0}
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
+BuildRequires: jupyter-rpm-macros
BuildRequires: python-rpm-macros
Requires: python-ipywidgets >= 7.0.0
-Requires: python-notebook
Requires: python-pandas >= 0.18.0
+Requires: (python-notebook < 7 or python-nbclassic)
+Provides: python-lineup_widget = %{version}-%{release}
BuildArch: noarch
%python_subpackages
@@ -49,8 +51,9 @@
%package -n jupyter-lineup-widget
Summary: Python package to export interactive HTML pages from Jupyter
Notebooks
Requires: jupyter-ipywidgets >= 7.0.0
-Requires: jupyter-notebook
-Requires: python3-lineup-widget = %{version}
+Requires: (jupyter-notebook < 7 or jupyter-nbclassic)
+Requires: python3dist(lineup-widget) = %{shortversion}
+Suggests: python3-lineup-widget
%description -n jupyter-lineup-widget
NBinteract is a Python package that creates interactive webpages from Jupyter
@@ -64,29 +67,36 @@
%setup -q -n lineup_widget-%{version}
%build
-%python_build
+%pyproject_wheel
sed -i 's/\r$//' README.md lineup_widget/__init__.py lineup_widget/static/*.svg
find . -type f -exec chmod a-x '{}' ';'
%install
-%python_install
+%pyproject_install
%jupyter_move_config
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{_jupyter_prefix}
-#%%check
-# no python unit tests
+%check
+export JUPYTER_PATH=%{buildroot}%{_jupyter_prefix}
+export JUPYTER_CONFIG_DIR=%{buildroot}%{_jupyter_confdir}
+%{python_expand # no python tests available
+export PYTHONPATH=%{buildroot}%{$python_sitelib}
+$python -c 'import lineup_widget'
+jupyter-%{$python_bin_suffix} nbclassic-extension list 2>&1 | grep
'lineup.*enabled'
+}
+rm -f %{buildroot}%{_jupyter_confdir}migrated
%files %{python_files}
%license LICENSE.txt
-%{python_sitelib}/lineup_widget-%{version}-py*.egg-info
+%{python_sitelib}/lineup_widget-%{version}.dist-info
%{python_sitelib}/lineup_widget/
%files -n jupyter-lineup-widget
%license LICENSE.txt
%doc README.md
-%config %{_jupyter_nb_notebook_confdir}/lineup_widget.json
+%_jupyter_config %{_jupyter_nb_notebook_confdir}/lineup_widget.json
%{_jupyter_nbextension_dir}/lineup_widget/
%changelog