Accepting request 755913 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/755913 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mysqlclient?expand=0&rev=7
This commit is contained in:
commit
45439e2402
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 9 20:22:50 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- run the testsuite against test mysqld server
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 22 17:31:43 UTC 2019 - Alexei Podvalsky <avvissu@yandex.by>
|
Fri Nov 22 17:31:43 UTC 2019 - Alexei Podvalsky <avvissu@yandex.by>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-mysqlclient
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -27,12 +27,15 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/PyMySQL/mysqlclient-python
|
URL: https://github.com/PyMySQL/mysqlclient-python
|
||||||
Source: https://files.pythonhosted.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/m/mysqlclient/mysqlclient-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module mock}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python3-attrs
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libmysqlclient-devel
|
BuildRequires: libmysqlclient-devel
|
||||||
|
BuildRequires: mariadb-rpm-macros
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
|
BuildRequires: python3-attrs
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
Recommends: mariadb
|
Recommends: mariadb
|
||||||
Provides: python-mysql = %{version}
|
Provides: python-mysql = %{version}
|
||||||
@ -60,6 +63,29 @@ This package adds Python 3 support and bug fixes to MySQLdb1.
|
|||||||
|
|
||||||
python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
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
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user