From d4722ce8b2e8004a475b37ffaed79cfb442bbf9cf7713c7df05c73c06e228dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 24 Feb 2020 11:37:44 +0000 Subject: [PATCH] - 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 --- python-pytest-services.changes | 5 +++++ python-pytest-services.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-pytest-services.changes b/python-pytest-services.changes index d38e3b9..d993846 100644 --- a/python-pytest-services.changes +++ b/python-pytest-services.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 24 11:37:28 UTC 2020 - Tomáš Chvátal + +- Do not pull in mysql for tests we actually skip anyway + ------------------------------------------------------------------- Fri Nov 15 10:37:18 UTC 2019 - Tomáš Chvátal diff --git a/python-pytest-services.spec b/python-pytest-services.spec index 8dc0457..bb1a177 100644 --- a/python-pytest-services.spec +++ b/python-pytest-services.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,6 @@ License: MIT URL: https://github.com/pytest-dev/pytest-services Source: https://github.com/pytest-dev/pytest-services/archive/%{version}.tar.gz BuildRequires: %{python_module mock} -BuildRequires: %{python_module mysqlclient} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pylibmc} BuildRequires: %{python_module pytest} @@ -53,6 +52,8 @@ processes for your tests with pytest. %prep %setup -q -n pytest-services-%{version} +# we don't test mysql anway +sed -i -e '/import MySQLdb/d' tests/test_plugin.py %build %python_build