update version to 4.5.5
This commit is contained in:
parent
84c5865839
commit
3761ebc613
@ -1,11 +1,12 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-redis
|
Name: python-redis
|
||||||
Version: 3.5.3
|
Version: 4.5.5
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Python client for Redis key-value store
|
Summary: Python client for Redis key-value store
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/andymccurdy/redis-py
|
URL: https://github.com/redis/redis-py
|
||||||
Source0: https://files.pythonhosted.org/packages/b3/17/1e567ff78c83854e16b98694411fe6e08c3426af866ad11397cddceb80d3/redis-3.5.3.tar.gz
|
Source0: https://github.com/redis/redis-py/archive/v%{version}/redis-%{version}.tar.gz
|
||||||
|
Source1: redis.conf
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
The Python interface to the Redis key-value store.
|
The Python interface to the Redis key-value store.
|
||||||
@ -15,8 +16,10 @@ Summary: Python client for Redis key-value store
|
|||||||
Provides: python-redis
|
Provides: python-redis
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-async-timeout
|
||||||
BuildRequires: python3-py
|
BuildRequires: python3-py
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-pytest-asyncio
|
||||||
BuildRequires: python3-mock
|
BuildRequires: python3-mock
|
||||||
BuildRequires: redis
|
BuildRequires: redis
|
||||||
%description -n python3-redis
|
%description -n python3-redis
|
||||||
@ -29,7 +32,7 @@ Provides: python3-redis-doc
|
|||||||
The Python interface to the Redis key-value store.
|
The Python interface to the Redis key-value store.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n redis-3.5.3
|
%autosetup -n redis-py-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -64,8 +67,21 @@ mv %{buildroot}/filelist.lst .
|
|||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%check
|
%check
|
||||||
redis-server &
|
mkdir -p %{_builddir}/redis-var/
|
||||||
%{__python3} -m pytest
|
cp %{SOURCE1} %{_builddir}/redis-var/
|
||||||
|
sed -i "s#^dir .*#dir %{_builddir}/redis-var#g" %{_builddir}/redis-var/redis.conf
|
||||||
|
sed -i "s#^logfile .*#logfile %{_builddir}/redis-var/redis.log#g" %{_builddir}/redis-var/redis.conf
|
||||||
|
redis-server %{_builddir}/redis-var/redis.conf &
|
||||||
|
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
|
||||||
|
PATH="%{buildroot}%{_bindir}:$PATH" \
|
||||||
|
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
|
||||||
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
|
||||||
|
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} \
|
||||||
|
/usr/bin/pytest -m 'onlynoncluster and not ssl and not redismod' \
|
||||||
|
--ignore "tests/test_credentials.py" \
|
||||||
|
--ignore "tests/test_asyncio/test_credentials.py" \
|
||||||
|
--ignore "tests/test_asyncio/test_cwe_404.py"
|
||||||
kill %1
|
kill %1
|
||||||
|
|
||||||
%files -n python3-redis -f filelist.lst
|
%files -n python3-redis -f filelist.lst
|
||||||
@ -76,6 +92,9 @@ kill %1
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 6 2023 Dongxing Wang <dxwangk@isoftstone.com> - 4.5.5-1
|
||||||
|
- upgrade version to 4.5.5
|
||||||
|
|
||||||
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 3.5.3-1
|
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 3.5.3-1
|
||||||
- Update version to 3.5.3
|
- Update version to 3.5.3
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
version_control: github
|
version_control: github
|
||||||
src_repo: andymccurdy/redis-py
|
src_repo: redis/redis-py
|
||||||
tag_prefix: ^v
|
tag_prefix: ^v
|
||||||
seperator: .
|
separator: .
|
||||||
|
|||||||
Binary file not shown.
BIN
redis-4.5.5.tar.gz
Normal file
BIN
redis-4.5.5.tar.gz
Normal file
Binary file not shown.
1317
redis.conf
Normal file
1317
redis.conf
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user