From 08937f402197e82e876be8259df7da2bc63d057f6432fe60b10199f65b2c6f41 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 25 May 2023 09:35:51 +0000 Subject: [PATCH] - Remove python-pandas and python-matplotlib from BuildRequires OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-regressions?expand=0&rev=7 --- python-pytest-regressions.changes | 5 +++++ python-pytest-regressions.spec | 13 ++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/python-pytest-regressions.changes b/python-pytest-regressions.changes index 1fc8e6f..dc79e99 100644 --- a/python-pytest-regressions.changes +++ b/python-pytest-regressions.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 25 09:34:08 UTC 2023 - Daniel Garcia + +- Remove python-pandas and python-matplotlib from BuildRequires + ------------------------------------------------------------------- Tue May 9 21:07:08 UTC 2023 - Dirk Müller diff --git a/python-pytest-regressions.spec b/python-pytest-regressions.spec index 6a00aa0..cf7577e 100644 --- a/python-pytest-regressions.spec +++ b/python-pytest-regressions.spec @@ -32,10 +32,12 @@ BuildRequires: python-rpm-macros BuildRequires: %{python_module pytest >= 6.2.0} BuildRequires: %{python_module Pillow} BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module numpy} -BuildRequires: %{python_module pandas} BuildRequires: %{python_module pytest-datadir >= 1.2.0} +# These could be added as build dep for testing but are commented to +# reduce the number of requirements. +# BuildRequires: %%{python_module pandas} +# BuildRequires: %%{python_module matplotlib} # /SECTION BuildRequires: fdupes Requires: python-PyYAML @@ -63,7 +65,12 @@ Python fixtures to write regression tests. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# ignore tests that depends on matplotlib +donttest="test_image_regression" +# Requires python-pandas +donttest+=" or test_foo" +# Ignore tests that depends on python-pandas +%pytest --ignore tests/test_num_regression.py --ignore tests/test_dataframe_regression.py -k "not ($donttest)" %files %{python_files} %doc CHANGELOG.rst README.rst