Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-panel for openSUSE:Factory 
checked in at 2024-05-07 18:04:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-panel (Old)
 and      /work/SRC/openSUSE:Factory/.python-panel.new.1880 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-panel"

Tue May  7 18:04:48 2024 rev:27 rq:1172393 version:1.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-panel/python-panel.changes        
2024-04-23 18:55:43.549712262 +0200
+++ /work/SRC/openSUSE:Factory/.python-panel.new.1880/python-panel.changes      
2024-05-07 18:05:33.643212780 +0200
@@ -1,0 +2,6 @@
+Tue May  7 09:14:55 UTC 2024 - Daniel Garcia <daniel.gar...@suse.com>
+
+- Bring back package %build from source, removing binary .whl
+  distribution from package.
+
+-------------------------------------------------------------------

Old:
----
  panel-1.4.1-py3-none-any.whl

New:
----
  panel-1.4.1.tar.gz

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

Other differences:
------------------
++++++ python-panel.spec ++++++
--- /var/tmp/diff_new_pack.Rce011/_old  2024-05-07 18:05:34.503244052 +0200
+++ /var/tmp/diff_new_pack.Rce011/_new  2024-05-07 18:05:34.503244052 +0200
@@ -32,7 +32,7 @@
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/holoviz/panel
-Source0:        
https://files.pythonhosted.org/packages/py3/p/panel/panel-%{version}-py3-none-any.whl
+Source0:        
https://files.pythonhosted.org/packages/source/p/panel/panel-%{version}.tar.gz
 Source99:       python-panel-rpmlintrc
 BuildRequires:  %{python_module base}
 BuildRequires:  %{python_module bleach}
@@ -116,20 +116,29 @@
 to all Python flavors.
 
 %prep
-%setup -q -c -T
-%if %{with test}
-%python_expand mkdir -p build && unzip %{SOURCE0} -d build/
-%endif
+%autosetup -p1 -n panel-%{version}
+# Do not try to rebuild the bundled npm stuff. We don't have network. Just use 
the shipped bundle.
+sed -i '/def _build_paneljs/ a \    return' setup.py
+# no color for pytest
+sed -i '/addopts/ s/--color=yes//' pyproject.toml
+for p in panel/tests/io/reload_module.py
+do \
+    [ -f $p -a ! -s $p ] || exit 1 && echo "# Empty module" > $p
+done
+for p in panel/dist/css/regular_table.css \
+  
panel/dist/bundled/perspective/@finos/perspective-viewer@2.9.0/dist/css/variables.css
+do \
+    [ -f $p -a ! -s $p ] || exit 1 && echo "// Empty css" > $p
+done
 
 %build
-# not needed
+%pyproject_wheel
 
 %if ! %{with test}
 %install
-%pyproject_install %{SOURCE0}
+%pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/panel
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
-cp %{buildroot}%{python_sitelib}/panel-%{version}.dist-info/LICENSE.txt .
 %endif
 
 %if %{with test}
@@ -156,7 +165,7 @@
 # Don't test on 32-bit: asyncio is too flaky
 [ $(getconf LONG_BIT) -eq 32 ] && exit 0
 #
-%pytest build/panel -n auto -rsfE -k "not ($donttest)"
+%pytest -n auto -rsfE -k "not ($donttest)"
 %endif
 
 %post
@@ -168,6 +177,7 @@
 %if ! %{with test}
 %files %{python_files}
 %license LICENSE.txt
+%doc README.md
 %python_alternative %{_bindir}/panel
 %{python_sitelib}/panel
 %{python_sitelib}/panel-%{version}.dist-info

Reply via email to