Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-spyder-unittest for 
openSUSE:Factory checked in at 2021-02-03 19:55:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spyder-unittest (Old)
 and      /work/SRC/openSUSE:Factory/.python-spyder-unittest.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-spyder-unittest"

Wed Feb  3 19:55:30 2021 rev:6 rq:868689 version:0.4.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-spyder-unittest/python-spyder-unittest.changes
    2020-07-17 20:53:22.473078277 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-spyder-unittest.new.28504/python-spyder-unittest.changes
 2021-02-03 19:55:39.101669455 +0100
@@ -1,0 +2,11 @@
+Tue Feb  2 13:13:34 UTC 2021 - Benjamin Greiner <[email protected]>
+
+- Use the singlespec rewrite from %python_subpackages to provide
+  the python3-spyder-unittest name
+
+-------------------------------------------------------------------
+Wed Jan 27 23:55:06 UTC 2021 - Ben Greiner <[email protected]>
+
+-  Build only for primary interpreter as spyder does the same
+ 
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-spyder-unittest.spec ++++++
--- /var/tmp/diff_new_pack.9A4GsL/_old  2021-02-03 19:55:39.729670212 +0100
+++ /var/tmp/diff_new_pack.9A4GsL/_new  2021-02-03 19:55:39.733670216 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-spyder-unittest
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,9 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
+# Not really singlespec: Spyder is an app only for the primary python3 
interpreter
+# But we need the python3-spyder-unittest name, provided by the 
python_subpackages rewrite
+%define pythons python3
 Name:           python-spyder-unittest
 Version:        0.4.1
 Release:        0
@@ -26,22 +27,24 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/spyder-ide/spyder-unittest
 Source:         
https://files.pythonhosted.org/packages/source/s/spyder_unittest/spyder_unittest-%{version}.tar.gz
-BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+BuildRequires:  python3-setuptools
 Requires:       python-lxml
 Requires:       spyder >= 3
+Provides:       spyder-unittest = %{version}-%{release}
+Obsoletes:      spyder-unittest < %{version}-%{release}
 Provides:       spyder3-unittest = %{version}-%{release}
 Obsoletes:      spyder3-unittest < %{version}-%{release}
 BuildArch:      noarch
 # SECTION test requirements
-BuildRequires:  %{python_module QtPy}
-BuildRequires:  %{python_module lxml}
-BuildRequires:  %{python_module nose}
-BuildRequires:  %{python_module pytest-qt}
-BuildRequires:  %{python_module pytest-xvfb}
-BuildRequires:  %{python_module pytest}
+BuildRequires:  python3-QtPy
+BuildRequires:  python3-lxml
+# Tests that it can run nose tests
+BuildRequires:  python3-nose
+BuildRequires:  python3-pytest
+BuildRequires:  python3-pytest-qt
+BuildRequires:  python3-pytest-xvfb
 BuildRequires:  spyder >= 3
 BuildRequires:  xdpyinfo
 # /SECTION
@@ -58,11 +61,11 @@
 %setup -q -n spyder_unittest-%{version}
 
 %build
-%python_build
+%python3_build
 
 %install
-%python_install
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%python3_install
+%fdupes %{buildroot}%{python3_sitelib}
 
 %check
 %pytest
@@ -70,6 +73,7 @@
 %files %{python_files}
 %doc CHANGELOG.md README.md
 %license LICENSE.txt
-%{python_sitelib}/*
+%{python_sitelib}/spyder_unittest
+%{python_sitelib}/spyder_unittest-%{version}*-info
 
 %changelog

Reply via email to