diff --git a/2.10.6.tar.gz b/2.10.6.tar.gz deleted file mode 100644 index 9fd70b5d9602be54c238c2a77f6c4dc5672a3d84..0000000000000000000000000000000000000000 Binary files a/2.10.6.tar.gz and /dev/null differ diff --git a/3.4.1.tar.gz b/3.4.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..dbc8d8aeb9f779969a8e38c926a18e2a2f45dc47 Binary files /dev/null and b/3.4.1.tar.gz differ diff --git a/python-redis.spec b/python-redis.spec index 447838b8a6458e53a788e211e05f9df71996ec54..0f8a2dc97dee3ba008d64aabb0027c8fce058984 100644 --- a/python-redis.spec +++ b/python-redis.spec @@ -1,44 +1,55 @@ -Name: python-redis -Version: 2.10.6 -Release: 7 -Summary: The Python interface to the Redis key-value store +%global upstream_name redis + +Name: python-%{upstream_name} +Version: 3.4.1 +Release: 1 +Summary: Python interface to the Redis key-value store License: MIT URL: https://github.com/andymccurdy/redis-py Source0: https://github.com/andymccurdy/redis-py/archive/%{version}.tar.gz - BuildArch: noarch +BuildRequires: redis -%description -The Python interface to the Redis key-value store. +%global _description\ +This is a Python interface to the Redis key-value store. -%package -n python3-redis -Summary: The Python3 interface to the Redis key-value store -BuildRequires: redis python3-devel python3-setuptools python3-py python3-pytest python3-mock +%description %_description + +%package -n python3-redis +Summary: Python 3 interface to the Redis key-value store +%{?python_provide:%python_provide python3-redis} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-py +BuildRequires: python3-pytest +BuildRequires: python3-mock %description -n python3-redis -The Python3 interface to the Redis key-value store. +This is a Python 3 interface to the Redis key-value store. %prep %autosetup -n redis-py-%{version} -p1 -rm tests/test_commands.py* %build -%{__python3} setup.py build +%py3_build %install -%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} +%py3_install %check redis-server & -%{__python3} setup.py test +%{__python3} -m pytest kill %1 %files -n python3-redis %doc CHANGES LICENSE README.rst -%{python3_sitelib}/redis -%{python3_sitelib}/redis-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/%{upstream_name} +%{python3_sitelib}/%{upstream_name}-%{version}-py%{python3_version}.egg-info %changelog +* Sat Jan 9 2021 wutao - 3.4.1-1 +- update to 3.4.1 adapating to pytest + * Wed Aug 05 2020 zhangjiapeng - 2.10.6-7 - Remove python2