From ce69becb0c12a46dec9230a5422976fff6b27331b8553a5bf2081324b1e9ad8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 20 Mar 2020 12:34:25 +0000 Subject: [PATCH] - Disable py2 as upstream actually disabled python2 support competely * The syntax simply is not compatible OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fakeredis?expand=0&rev=8 --- python-fakeredis.changes | 6 ++++++ python-fakeredis.spec | 9 ++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-fakeredis.changes b/python-fakeredis.changes index f8e04e4..6ec1ebc 100644 --- a/python-fakeredis.changes +++ b/python-fakeredis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 20 12:31:00 UTC 2020 - Tomáš Chvátal + +- Disable py2 as upstream actually disabled python2 support competely + * The syntax simply is not compatible + ------------------------------------------------------------------- Thu Mar 19 22:43:55 UTC 2020 - Hans-Peter Jansen diff --git a/python-fakeredis.spec b/python-fakeredis.spec index 0034fe4..7fdb778 100644 --- a/python-fakeredis.spec +++ b/python-fakeredis.spec @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-fakeredis Version: 1.3.0 Release: 0 Summary: Fake implementation of redis API for testing purposes License: BSD-3-Clause AND MIT -Group: Development/Languages/Python URL: https://github.com/jamesls/fakeredis Source: https://files.pythonhosted.org/packages/source/f/fakeredis/fakeredis-%{version}.tar.gz BuildRequires: %{python_module hypothesis} @@ -39,12 +39,10 @@ BuildArch: noarch BuildRequires: %{python_module future} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module lupa} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest >= 4.0} BuildRequires: %{python_module redis} BuildRequires: %{python_module six >= 1.12} BuildRequires: %{python_module sortedcontainers} -#!BuildIgnore: python2-pytest -BuildRequires: python2-pytest4 # /SECTION %python_subpackages @@ -62,7 +60,8 @@ Fake implementation of redis API for testing purposes. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -python3 -m pytest +export LANG="en_US.UTF8" +%pytest %files %{python_files} %doc README.rst