Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jupyterlab-pygments for 
openSUSE:Factory checked in at 2021-11-17 01:13:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyterlab-pygments (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyterlab-pygments.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyterlab-pygments"

Wed Nov 17 01:13:51 2021 rev:5 rq:931616 version:0.1.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyterlab-pygments/python-jupyterlab-pygments.changes
    2021-11-15 15:28:28.577858381 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-jupyterlab-pygments.new.1890/python-jupyterlab-pygments.changes
  2021-11-17 01:14:48.366184533 +0100
@@ -1,0 +2,5 @@
+Mon Nov 15 19:01:14 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Avoid buildcycle with test multibuild
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-jupyterlab-pygments.spec ++++++
--- /var/tmp/diff_new_pack.TId2s3/_old  2021-11-17 01:14:48.746184676 +0100
+++ /var/tmp/diff_new_pack.TId2s3/_new  2021-11-17 01:14:48.750184677 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package python-jupyterlab-pygments
+# spec file
 #
 # Copyright (c) 2021 SUSE LLC
 #
@@ -16,9 +16,18 @@
 #
 
 
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+
 %{?!python_module:%define python_module() python3-%{**}}
 %define         skip_python2 1
-Name:           python-jupyterlab-pygments
+Name:           python-jupyterlab-pygments%{psuffix}
 Version:        0.1.2
 Release:        0
 Summary:        Pygments theme for jupyterlab
@@ -27,14 +36,16 @@
 URL:            https://github.com/jupyterlab/jupyterlab_pygments
 Source:         
https://files.pythonhosted.org/packages/source/j/jupyterlab_pygments/jupyterlab_pygments-%{version}.tar.gz
 Source1:        
https://raw.githubusercontent.com/jupyterlab/jupyterlab_pygments/%{version}/notebooks/Example.ipynb
-BuildRequires:  %{python_module nbval}
-BuildRequires:  %{python_module pygments >= 2.4.1}
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-pygments >= 2.4.1
 BuildArch:      noarch
+%if %{with test}
+BuildRequires:  %{python_module jupyterlab-pygments = %{version}}
+BuildRequires:  %{python_module nbval}
+BuildRequires:  %{python_module pytest}
+%endif
 %python_subpackages
 
 %description
@@ -44,20 +55,26 @@
 %prep
 %setup -q -n jupyterlab_pygments-%{version}
 
+%if !%{with test}
 %build
 %python_build
 
 %install
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
+%if %{with test}
 %check
 %pytest --nbval-lax %{SOURCE1}
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %license LICENSE
 %doc README.md
 %{python_sitelib}/jupyterlab_pygments
 %{python_sitelib}/jupyterlab_pygments-%{version}*-info
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to