2020-01-10 11:27:17 +08:00
|
|
|
Name: python-redis
|
2021-01-12 15:00:37 +08:00
|
|
|
Version: 3.4.1
|
|
|
|
|
Release: 1
|
2020-01-10 11:27:17 +08:00
|
|
|
Summary: The Python interface to the Redis key-value store
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/andymccurdy/redis-py
|
2020-08-05 11:53:14 +08:00
|
|
|
Source0: https://github.com/andymccurdy/redis-py/archive/%{version}.tar.gz
|
2020-01-10 11:27:17 +08:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Python interface to the Redis key-value store.
|
|
|
|
|
|
|
|
|
|
%package -n python3-redis
|
|
|
|
|
Summary: The Python3 interface to the Redis key-value store
|
2020-08-05 11:53:14 +08:00
|
|
|
BuildRequires: redis python3-devel python3-setuptools python3-py python3-pytest python3-mock
|
2020-01-10 11:27:17 +08:00
|
|
|
|
|
|
|
|
%description -n python3-redis
|
|
|
|
|
The Python3 interface to the Redis key-value store.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-08-05 11:53:14 +08:00
|
|
|
%autosetup -n redis-py-%{version} -p1
|
2020-01-10 11:27:17 +08:00
|
|
|
|
|
|
|
|
%build
|
2021-01-12 15:00:37 +08:00
|
|
|
%py3_build
|
2020-01-10 11:27:17 +08:00
|
|
|
|
|
|
|
|
%install
|
2021-01-12 15:00:37 +08:00
|
|
|
%py3_install
|
2020-01-10 11:27:17 +08:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
redis-server &
|
2021-01-12 15:00:37 +08:00
|
|
|
%{__python3} -m pytest
|
2020-01-10 11:27:17 +08:00
|
|
|
kill %1
|
|
|
|
|
|
|
|
|
|
%files -n python3-redis
|
|
|
|
|
%doc CHANGES LICENSE README.rst
|
|
|
|
|
%{python3_sitelib}/redis
|
2020-08-05 11:53:14 +08:00
|
|
|
%{python3_sitelib}/redis-%{version}-py%{python3_version}.egg-info
|
2020-01-10 11:27:17 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2021-01-12 15:00:37 +08:00
|
|
|
* Tue Jan 12 2021 wutao <wutao61@huawei.com> - 3.4.1-1
|
|
|
|
|
- upgrade to 3.4.1 adapting to pytest
|
|
|
|
|
|
2020-08-05 11:53:14 +08:00
|
|
|
* Wed Aug 05 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 2.10.6-7
|
|
|
|
|
- Remove python2
|
|
|
|
|
|
2020-01-10 11:27:17 +08:00
|
|
|
* Mon Jan 6 2020 qinjian <qinjian18@huawei.com> - 2.10.6-6
|
|
|
|
|
- Package init
|