From 050726a9438c4c6ecb571c6f72739b0c411cc9ca178d729eafa976fe7f13ad89 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 14 Feb 2021 18:22:04 +0000 Subject: [PATCH] Accepting request 872180 from home:bnavigator:branches:devel:languages:python - Don't test NumPy with python36 flavor (NumPy 1.20 in TW dropped Python 3.6, NEP 29), tests are automatically skipped if not installed. OBS-URL: https://build.opensuse.org/request/show/872180 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-toml?expand=0&rev=17 --- python-toml.changes | 7 +++++++ python-toml.spec | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-toml.changes b/python-toml.changes index 319a5e1..e7dbcb7 100644 --- a/python-toml.changes +++ b/python-toml.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Feb 14 15:07:09 UTC 2021 - Ben Greiner + +- Don't test NumPy with python36 flavor (NumPy 1.20 in TW dropped + Python 3.6, NEP 29), tests are automatically skipped if not + installed. + ------------------------------------------------------------------- Thu Nov 19 19:41:13 UTC 2020 - Martin Liška diff --git a/python-toml.spec b/python-toml.spec index 7414764..602ddbe 100644 --- a/python-toml.spec +++ b/python-toml.spec @@ -1,7 +1,7 @@ # # spec file for package python-toml # -# 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 @@ -42,8 +42,9 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch %if %{with test} -BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} +# python36-numpy is no longer available in Tumbleweed (NEP 29), tests are automatically skipped if not installed +BuildRequires: %{python_module numpy if (%python-base without python36-base)} %endif %python_subpackages