Hello community,

here is the log from the commit of package python-mysqlclient for 
openSUSE:Factory checked in at 2020-03-08 22:22:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mysqlclient (Old)
 and      /work/SRC/openSUSE:Factory/.python-mysqlclient.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mysqlclient"

Sun Mar  8 22:22:44 2020 rev:9 rq:782219 version:1.4.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mysqlclient/python-mysqlclient.changes    
2020-03-01 21:26:21.908355508 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mysqlclient.new.26092/python-mysqlclient.changes
 2020-03-08 22:22:51.364030024 +0100
@@ -1,0 +2,12 @@
+Thu Mar  5 13:33:30 UTC 2020 - Kristyna Streitova <kstreit...@suse.com>
+
+- fix test package by adding BuildRequires: %{python_module mysqlclient
+  >= %{version}}
+
+-------------------------------------------------------------------
+Fri Feb 21 10:04:38 UTC 2020 - Kristyna Streitova <kstreit...@suse.com>
+
+- switch to multibuild to run tests and avoid a buildcycle with
+  mariadb
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-mysqlclient.spec ++++++
--- /var/tmp/diff_new_pack.y8l2zN/_old  2020-03-08 22:22:51.972030399 +0100
+++ /var/tmp/diff_new_pack.y8l2zN/_new  2020-03-08 22:22:51.976030401 +0100
@@ -18,21 +18,25 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
-Name:           python-mysqlclient
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name:           python-mysqlclient%{psuffix}
 Version:        1.4.6
 Release:        0
 Summary:        Python interface to MySQL
 License:        GPL-2.0-or-later
-Group:          Development/Languages/Python
 URL:            https://github.com/PyMySQL/mysqlclient-python
 Source:         
https://files.pythonhosted.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module mock}
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  libmysqlclient-devel
-BuildRequires:  mariadb-rpm-macros
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-Sphinx
 BuildRequires:  python3-attrs
@@ -42,6 +46,12 @@
 Obsoletes:      python-mysql < %{version}
 Provides:       python-MySQL-python = %{version}
 Obsoletes:      python-MySQL-python < %{version}
+%if %{with test}
+BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module mysqlclient >= %{version}}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  mariadb-rpm-macros
+%endif
 %ifpython2
 Provides:       %{oldpython}-mysql = %{version}
 Obsoletes:      %{oldpython}-mysql < %{version}
@@ -59,11 +69,14 @@
 %setup -q -n mysqlclient-%{version}
 
 %build
+%if !%{with test}
 %python_build
 
 python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
+%endif
 
 %check
+%if %{with test}
 exit_code=0
 cconf=abuild-myclient.cnf
 #
@@ -85,14 +98,19 @@
 #
 %mysql_testserver_stop
 exit $exit_code
+%endif
 
 %install
+%if !%{with test}
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %license LICENSE
 %doc HISTORY.rst MANIFEST.in README.md build/sphinx/html
 %{python_sitearch}/*
+%endif
 
 %changelog

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

Reply via email to