Ai
1 Star 0 Fork 27

cuibaobao/python-redis

forked from src-openEuler/python-redis
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-redis.spec 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
tubalu 提交于 2020-01-10 11:27 +08:00 . package init
Name: python-redis
Version: 2.10.6
Release: 6
Summary: The 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/2.10.6.tar.gz
BuildArch: noarch
BuildRequires: python2-devel python2-setuptools python2-py python2-pytest redis python2-mock jemalloc
%description
The Python interface to the Redis key-value store.
%package -n python2-redis
Summary: The Python2 interface to the Redis key-value store
%{?python_provide:%python_provide python2-redis}
%description -n python2-redis
The Python2 interface to the Redis key-value store.
%package -n python3-redis
Summary: The Python3 interface to the Redis key-value store
BuildRequires: python3-devel python3-setuptools python3-py python3-pytest python3-mock
%description -n python3-redis
The Python3 interface to the Redis key-value store.
%prep
%autosetup -n redis-py-2.10.6 -p1
rm tests/test_commands.py*
rm -rf %{py3dir}
cp -a . %{py3dir}
%build
cd %{py3dir}
%{__python3} setup.py build
cd -
%{__python2} setup.py build
%install
cd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
cd -
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
%check
redis-server &
cd %{py3dir}
%{__python3} setup.py test
cd -
%{__python2} setup.py test
kill %1
%files -n python2-redis
%doc CHANGES LICENSE README.rst
%{python2_sitelib}/redis
%{python2_sitelib}/redis-2.10.6-py%{python2_version}.egg-info
%files -n python3-redis
%doc CHANGES LICENSE README.rst
%{python3_sitelib}/redis
%{python3_sitelib}/redis-2.10.6-py%{python3_version}.egg-info
%changelog
* Mon Jan 6 2020 qinjian <qinjian18@huawei.com> - 2.10.6-6
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cuibb1/python-redis.git
git@gitee.com:cuibb1/python-redis.git
cuibb1
python-redis
python-redis
master

搜索帮助