Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ipympl for openSUSE:Factory 
checked in at 2024-05-29 19:36:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ipympl (Old)
 and      /work/SRC/openSUSE:Factory/.python-ipympl.new.24587 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ipympl"

Wed May 29 19:36:32 2024 rev:14 rq:1177588 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ipympl/python-ipympl.changes      
2024-04-23 18:56:20.703050353 +0200
+++ /work/SRC/openSUSE:Factory/.python-ipympl.new.24587/python-ipympl.changes   
2024-05-29 19:37:22.091782075 +0200
@@ -1,0 +2,6 @@
+Wed May 29 12:55:54 UTC 2024 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Build from source not whl, using obs-service-node_modules to get the
+  javascript packages required to build the package.
+
+-------------------------------------------------------------------

Old:
----
  full-example.ipynb
  ipympl-0.9.4-py3-none-any.whl

New:
----
  _service
  ipympl-0.9.4.tar.gz
  node_modules.obscpio
  node_modules.spec.inc
  package-lock.json

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

Other differences:
------------------
++++++ python-ipympl.spec ++++++
--- /var/tmp/diff_new_pack.AkEcz6/_old  2024-05-29 19:37:23.291825503 +0200
+++ /var/tmp/diff_new_pack.AkEcz6/_new  2024-05-29 19:37:23.295825648 +0200
@@ -27,20 +27,30 @@
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/matplotlib/ipympl
-Source0:        
https://files.pythonhosted.org/packages/py3/i/ipympl/ipympl-%{pyver}-py3-none-any.whl
-Source1:        
https://github.com/matplotlib/ipympl/raw/%{pyver}/docs/examples/full-example.ipynb
+Source0:        
https://files.pythonhosted.org/packages/source/i/ipympl/ipympl-%{pyver}.tar.gz
+# package-lock.json file generated with command:
+# npm install --package-lock-only --legacy-peer-deps --ignore-scripts
+Source2:        package-lock.json
+# node_modules generated using "osc service mr" with the 
https://github.com/openSUSE/obs-service-node_modules
+Source3:        node_modules.spec.inc
+%include        %{_sourcedir}/node_modules.spec.inc
 BuildRequires:  %{python_module Pillow}
+BuildRequires:  %{python_module hatch-jupyter-builder}
+BuildRequires:  %{python_module hatchling}
 BuildRequires:  %{python_module ipython < 9}
 BuildRequires:  %{python_module ipython_genutils}
 BuildRequires:  %{python_module ipywidgets >= 7.6.0 with %python-ipywidgets < 
9}
+BuildRequires:  %{python_module jupyterlab}
 BuildRequires:  %{python_module matplotlib >= 3.4.0 with %python-matplotlib < 
4}
 BuildRequires:  %{python_module matplotlib-web}
 BuildRequires:  %{python_module nbval}
 BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module traitlets < 6}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  jupyter-rpm-macros
+BuildRequires:  local-npm-registry
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
 Requires:       jupyter-matplotlib = %{jsver}
@@ -98,22 +108,24 @@
 This package provides the JupyterLab extension.
 
 %prep
-%setup -q -c ipympl-%{pyver} -D -T
-%python_expand mkdir -p build; cp %{SOURCE0} build/
-cp %{SOURCE1} .
+%autosetup -p1 -n ipympl-%{pyver}
+# Replace usage of "jlpm" with "npm"
+sed -i 's/npm = \["jlpm"\]/npm = ["npm"]/g' pyproject.toml
+sed -i 's/jlpm/npm run/g' package.json
+sed -i '/prepublish/d' package.json
+local-npm-registry %{_sourcedir} install --include=dev --include=peer
 
 %build
-:
+%pyproject_wheel
 
 %install
 %pyproject_install
 %jupyter_move_config
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %fdupes %{buildroot}%{_jupyter_prefix}
-cp %{buildroot}%{python3_sitelib}/ipympl-%{pyver}.dist-info/licenses/LICENSE .
 
 %check
-%pytest --nbval full-example.ipynb
+%pytest --nbval docs/examples/full-example.ipynb
 
 %files %{python_files}
 %license LICENSE

++++++ _service ++++++
<services>
  <service name="node_modules" mode="manual">
    <param name="cpio">node_modules.obscpio</param>
    <param name="output">node_modules.spec.inc</param>
    <param name="source-offset">10000</param>
  </service>
</services>

++++++ node_modules.spec.inc ++++++
++++ 997 lines (skipped)

++++++ package-lock.json ++++++
++++ 15103 lines (skipped)

Reply via email to