From b9c72af5126932968b7b6d5264aad3366ed154d0ac47c92decad377fcbdad5bd Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Thu, 15 Apr 2021 12:37:36 +0000 Subject: [PATCH] - Disable Python2 builds which are no longer supported upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-arrow?expand=0&rev=47 --- python-arrow.changes | 5 +++++ python-arrow.spec | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/python-arrow.changes b/python-arrow.changes index 49899ff..c228952 100644 --- a/python-arrow.changes +++ b/python-arrow.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 15 12:33:30 UTC 2021 - John Paul Adrian Glaubitz + +- Disable Python2 builds which are no longer supported upstream + ------------------------------------------------------------------- Tue Mar 9 05:13:18 UTC 2021 - Steve Kowalik diff --git a/python-arrow.spec b/python-arrow.spec index e6ea6e4..d9793fa 100644 --- a/python-arrow.spec +++ b/python-arrow.spec @@ -1,5 +1,5 @@ # -# spec file for package python +# spec file for package python-arrow%{?psuffix} # # Copyright (c) 2021 SUSE LLC # @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -24,7 +25,6 @@ %else %bcond_with test %endif -%bcond_without python2 Name: python-arrow%{?psuffix} Version: 1.0.3 Release: 0 @@ -48,12 +48,6 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module simplejson} %endif -%if %{with python2} -BuildRequires: python-backports.functools_lru_cache >= 1.2.1 -%endif -%ifpython2 -Requires: python-backports.functools_lru_cache >= 1.2.1 -%endif %python_subpackages %description