From efc2f098704297d65f4085b3252a336dd327c8a8d6f19fd19d1b7191711a756a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 14 Feb 2021 00:06:19 +0000 Subject: [PATCH] Accepting request 872033 from home:bnavigator:branches:devel:languages:python - Don't test the optional numpy support on python36 flavor, because due to NEP 29, python36-numpy is removed from TW OBS-URL: https://build.opensuse.org/request/show/872033 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cairocffi?expand=0&rev=36 --- python-cairocffi.changes | 6 ++++++ python-cairocffi.spec | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-cairocffi.changes b/python-cairocffi.changes index f5a9c64..75fde69 100644 --- a/python-cairocffi.changes +++ b/python-cairocffi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Feb 13 22:13:03 UTC 2021 - Ben Greiner + +- Don't test the optional numpy support on python36 flavor, + because due to NEP 29, python36-numpy is removed from TW + ------------------------------------------------------------------- Mon Dec 7 12:34:39 UTC 2020 - Benjamin Greiner diff --git a/python-cairocffi.spec b/python-cairocffi.spec index 0f19e5e..13e9882 100644 --- a/python-cairocffi.spec +++ b/python-cairocffi.spec @@ -1,7 +1,7 @@ # # spec file for package python-cairocffi # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,6 @@ Group: Development/Languages/Python URL: https://github.com/Kozea/cairocffi Source: https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-%{version}.tar.gz BuildRequires: %{python_module cffi >= 1.1.0} -BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 39.2.0} BuildRequires: %{python_module xcffib >= 0.3.2} @@ -36,6 +35,7 @@ BuildRequires: dejavu-fonts BuildRequires: fdupes BuildRequires: gdk-pixbuf BuildRequires: python-rpm-macros +BuildRequires: %{python_module numpy if (%python-base without python36-base)} Requires: cairo Requires: python Requires: python-cffi >= 1.1.0 @@ -80,7 +80,9 @@ sed -i -e 's/pytest-runner$/pytest/' \ %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%pytest --pyargs cairocffi +# Don't test with NumPy in the python36 flavor, because python36-numpy is not in TW anymore +python36_ignore="--ignore %{buildroot}%{python36_sitelib}/cairocffi/test_numpy.py" +%pytest --pyargs cairocffi ${$python_ignore} %files %{python_files} %license LICENSE