From 60f8cd81d67693db984b8b23dff4eeb752a6b7aecc950dc3c3a58631ee4e889a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 22 Jan 2021 19:25:16 +0000 Subject: [PATCH] Accepting request 866080 from home:bnavigator:branches:devel:languages:python - Update BuildRequirements for tests: scipy and numpy are only available for python >= 3.7 soon. - Apply upstream's deprecation of Python 2: Already failing due to syntax errors. OBS-URL: https://build.opensuse.org/request/show/866080 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudpickle?expand=0&rev=36 --- python-cloudpickle.changes | 8 ++++++++ python-cloudpickle.spec | 32 ++++++++++++-------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/python-cloudpickle.changes b/python-cloudpickle.changes index ab17537..3345632 100644 --- a/python-cloudpickle.changes +++ b/python-cloudpickle.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Jan 22 16:19:43 UTC 2021 - Benjamin Greiner + +- Update BuildRequirements for tests: scipy and numpy are only + available for python >= 3.7 soon. +- Apply upstream's deprecation of Python 2: Already failing due to + syntax errors. + ------------------------------------------------------------------- Wed Dec 9 14:43:55 UTC 2020 - Benjamin Greiner diff --git a/python-cloudpickle.spec b/python-cloudpickle.spec index bd9c3f7..33a6f31 100644 --- a/python-cloudpickle.spec +++ b/python-cloudpickle.spec @@ -1,7 +1,7 @@ # # spec file for package python-cloudpickle # -# 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 @@ -16,8 +16,8 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-cloudpickle Version: 1.6.0 Release: 0 @@ -25,27 +25,19 @@ Summary: Extended pickling support for Python objects License: BSD-3-Clause URL: https://github.com/cloudpipe/cloudpickle Source: https://files.pythonhosted.org/packages/source/c/cloudpickle/cloudpickle-%{version}.tar.gz -BuildRequires: %{python_module curses} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module numpy >= 1.8.5} -BuildRequires: %{python_module psutil} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module scipy} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module tornado} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-curses -Requires: python-numpy >= 1.8.5 -Requires: python-scipy -Requires: python-tornado BuildArch: noarch -%if %{with python2} -BuildRequires: python-futures -%endif -%ifpython2 -Requires: python-futures -%endif +# SECTION test requirements. None of these are hard dependencies +BuildRequires: %{python_module curses} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module tornado} +# only test these for the primary interpreter, as packages for older pythons are dropped in TW +BuildRequires: python3-scipy +BuildRequires: python3-numpy >= 1.18.5 +# /SECTION %python_subpackages %description