1
0

Accepting request 836337 from home:frispete:python

Duh, sorry..

- disable testing for Leaps 
  mariadb-rpm-macros not available or not sufficient

OBS-URL: https://build.opensuse.org/request/show/836337
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMySQL?expand=0&rev=25
This commit is contained in:
Dirk Mueller 2020-09-28 16:23:01 +00:00 committed by Git OBS Bridge
parent 5a340a5e98
commit 0e61974c81
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 23 13:18:38 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
- disable testing for Leaps
mariadb-rpm-macros not available or not sufficient
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 16 11:01:32 UTC 2020 - Dirk Mueller <dmueller@suse.com> Wed Sep 16 11:01:32 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -16,6 +16,13 @@
# #
# mariadb-rpm-macros is either not available or not sufficient for Leaps
%if 0%{?suse_version} > 1500
%bcond_without tests
%else
%bcond_with tests
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyMySQL Name: python-PyMySQL
Version: 0.10.0 Version: 0.10.0
@ -28,7 +35,9 @@ Source: https://github.com/PyMySQL/PyMySQL/archive/v%{version}.tar.gz#/P
BuildRequires: %{python_module cryptography} BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
%if %{with tests}
BuildRequires: mariadb-rpm-macros BuildRequires: mariadb-rpm-macros
%endif
# will be removed with next release # will be removed with next release
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@ -58,6 +67,7 @@ sed -i '1 { /^#!/ d }' pymysql/tests/thirdparty/test_MySQLdb/*.py
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
%check %check
exit_code=0 exit_code=0
dbuser='db_user' dbuser='db_user'
@ -90,6 +100,7 @@ export PASSWORD="$dbuserpw"
# #
%mysql_testserver_stop %mysql_testserver_stop
exit $exit_code exit $exit_code
%endif
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE