1
0

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
This commit is contained in:
Matej Cepl 2021-02-14 00:06:19 +00:00 committed by Git OBS Bridge
parent 70e54e2649
commit efc2f09870
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Feb 13 22:13:03 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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 <code@bnavigator.de>

View File

@ -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