- Do not pull in mysql for tests we actually skip anyway

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-services?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2020-02-24 11:37:44 +00:00
committed by Git OBS Bridge
parent 0b8655ecdc
commit d4722ce8b2
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 24 11:37:28 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Do not pull in mysql for tests we actually skip anyway
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 15 10:37:18 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Fri Nov 15 10:37:18 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-services # spec file for package python-pytest-services
# #
# Copyright (c) 2019 SUSE LLC. # Copyright (c) 2020 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
@@ -25,7 +25,6 @@ License: MIT
URL: https://github.com/pytest-dev/pytest-services URL: https://github.com/pytest-dev/pytest-services
Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz
BuildRequires: %{python_module mock} BuildRequires: %{python_module mock}
BuildRequires: %{python_module mysqlclient}
BuildRequires: %{python_module psutil} BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pylibmc} BuildRequires: %{python_module pylibmc}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@@ -53,6 +52,8 @@ processes for your tests with pytest.
%prep %prep
%setup -q -n pytest-services-%{version} %setup -q -n pytest-services-%{version}
# we don't test mysql anway
sed -i -e '/import MySQLdb/d' tests/test_plugin.py
%build %build
%python_build %python_build