Hello community,

here is the log from the commit of package python-mysqlclient for 
openSUSE:Factory checked in at 2019-12-29 15:48:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mysqlclient (Old)
 and      /work/SRC/openSUSE:Factory/.python-mysqlclient.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mysqlclient"

Sun Dec 29 15:48:02 2019 rev:7 rq:755913 version:1.4.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mysqlclient/python-mysqlclient.changes    
2019-11-29 15:55:37.849015957 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-mysqlclient.new.6675/python-mysqlclient.changes
  2019-12-29 15:48:12.655135555 +0100
@@ -1,0 +2,5 @@
+Mon Dec  9 20:22:50 UTC 2019 - [email protected]
+
+- run the testsuite against test mysqld server
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-mysqlclient.spec ++++++
--- /var/tmp/diff_new_pack.Qzmc47/_old  2019-12-29 15:48:14.227136273 +0100
+++ /var/tmp/diff_new_pack.Qzmc47/_new  2019-12-29 15:48:14.231136274 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-mysqlclient
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,12 +27,15 @@
 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:  python3-attrs
 BuildRequires:  fdupes
 BuildRequires:  libmysqlclient-devel
+BuildRequires:  mariadb-rpm-macros
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-Sphinx
+BuildRequires:  python3-attrs
 BuildRequires:  unzip
 Recommends:     mariadb
 Provides:       python-mysql = %{version}
@@ -60,6 +63,29 @@
 
 python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
 
+%check
+exit_code=0
+cconf=abuild-myclient.cnf
+#
+# start the mariadb server
+#
+%mysql_testserver_start -u abuild -p abuildpw
+#
+# creating client mysql config
+#
+%mysql_testserver_cconf -n $cconf
+#
+# running the test
+#
+rm -r MySQLdb
+export TESTDB="$PWD/$cconf"
+%pytest_arch -k "not (test_LONG or test_TEXT)"
+#
+# stopping mariadb
+#
+%mysql_testserver_stop
+exit $exit_code
+
 %install
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}


Reply via email to