Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-ipyscales for
openSUSE:Factory checked in at 2024-05-31 22:15:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ipyscales (Old)
and /work/SRC/openSUSE:Factory/.python-ipyscales.new.24587 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ipyscales"
Fri May 31 22:15:56 2024 rev:8 rq:1177756 version:unknown
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ipyscales/python-ipyscales.changes
2024-03-07 18:32:14.483268405 +0100
+++
/work/SRC/openSUSE:Factory/.python-ipyscales.new.24587/python-ipyscales.changes
2024-05-31 22:16:47.727974034 +0200
@@ -1,0 +2,5 @@
+Thu May 30 12:37:38 UTC 2024 - Daniel Garcia <[email protected]>
+
+- Build from source using obs-service-node_modules
+
+-------------------------------------------------------------------
Old:
----
ipyscales-0.7.0-py2.py3-none-any.whl
New:
----
_service
ipyscales-0.7.0.tar.gz
node_modules.obscpio
node_modules.spec.inc
package-lock.json
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-ipyscales.spec ++++++
--- /var/tmp/diff_new_pack.SrHPPG/_old 2024-05-31 22:16:48.191990935 +0200
+++ /var/tmp/diff_new_pack.SrHPPG/_new 2024-05-31 22:16:48.191990935 +0200
@@ -27,12 +27,22 @@
Summary: A widget library for scales
License: BSD-3-Clause
URL: https://github.com/vidartf/ipyscales
-Source0:
https://files.pythonhosted.org/packages/py2.py3/i/ipyscales/ipyscales-%{mainver}-py2.py3-none-any.whl
+Source0:
https://files.pythonhosted.org/packages/source/i/ipyscales/ipyscales-%{mainver}.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 base >= 3.5}
+BuildRequires: %{python_module jupyter-packaging}
+BuildRequires: %{python_module jupyterlab}
BuildRequires: %{python_module pip}
+BuildRequires: %{python_module wheel}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: jupyter-rpm-macros
+BuildRequires: local-npm-registry
BuildRequires: python-rpm-macros
Requires: jupyter-ipyscales = %{version}
Requires: python-ipywidgets >= 7.0.0
@@ -82,26 +92,29 @@
jupyter labextension install @jupyter-widgets/jupyterlab-manager
%prep
-%setup -q -c -T
+%autosetup -p1 -n ipyscales-%{mainver}
+pushd js
+# jupyterlab/builder 3 is too old, in Factory we've version 4
+sed -i 's/builder": "^3/builder": "^4/g' package.json
+sed -i 's/buildutils": "^3/buildutils": "^4/g' package.json
+cp package.json ..
+popd
+local-npm-registry %{_sourcedir} install --include=dev --include=peer
+cp -rf node_modules package-lock.json js
-%build
-# must use upstream wheel: npm build requires online connection
-:
+# gh#vidartf/ipyscales#29
+sed -i 's/np.float/float/' ipyscales/tests/test_colorarray.py
-%install
-%pyproject_install %{SOURCE0}
-builddir=${PWD}
-%{python_expand # must patch everything after installing from wheel
-pushd %{buildroot}%{$python_sitelib}
-cp ipyscales-%{mainver}.dist-info/LICENSE.txt ${builddir}
find ipyscales -name '*.py' \
-exec dos2unix '{}' ';' \
-exec sed -i '1{/env python/ d}' '{}' ';'
-# gh#vidartf/ipyscales#29
-sed -i 's/np.float/float/' ipyscales/tests/test_colorarray.py
-popd
-}
-%python_compileall
+
+%build
+%pyproject_wheel
+
+%install
+%pyproject_install
+
%jupyter_move_config
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{_jupyter_prefix}
++++++ _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 ++++++
++++ 1015 lines (skipped)
++++++ package-lock.json ++++++
++++ 13053 lines (skipped)