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