Accepting request 935720 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/935720 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-CacheControl?expand=0&rev=9
This commit is contained in:
commit
9ff6c31418
3
CacheControl-0.12.10.tar.gz
Normal file
3
CacheControl-0.12.10.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fc8bc1ecc67ac2946b79a6a79da57c8ad510517787afd3db997ca0d432e56e3d
|
||||||
|
size 39944
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2ec120838f445bff473cd8b8206ddae3650679142976927179743fabb876f3e3
|
|
||||||
size 38346
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 4 21:10:51 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to v0.12.10
|
||||||
|
* Dropped support for Python 2.7, 3.4, 3.5.
|
||||||
|
* Reduced memory usage when caching large files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 27 09:36:33 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
Wed May 27 09:36:33 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-CacheControl
|
# spec file for package python-CacheControl
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,9 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
|
%define skip_python2 1
|
||||||
Name: python-CacheControl
|
Name: python-CacheControl
|
||||||
Version: 0.12.6
|
Version: 0.12.10
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Caching library for Python requests
|
Summary: Caching library for Python requests
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@ -28,22 +29,21 @@ Source: https://github.com/ionrock/cachecontrol/archive/v%{version}.tar.
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-msgpack
|
Requires: python-msgpack >= 0.5.2
|
||||||
Requires: python-requests
|
Requires: python-requests
|
||||||
|
Provides: python-cachecontrol = %{version}-%{release}
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
Recommends: python-lockfile >= 0.9
|
Recommends: python-lockfile >= 0.9
|
||||||
Suggests: python-redis >= 2.10.5
|
Suggests: python-redis >= 2.10.5
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
## cherrypy is python3 only from 18.x series
|
BuildRequires: %{python_module CherryPy}
|
||||||
BuildRequires: python3-CherryPy
|
BuildRequires: %{python_module lockfile >= 0.9}
|
||||||
BuildRequires: python3-lockfile >= 0.9
|
BuildRequires: %{python_module msgpack >= 0.5.2}
|
||||||
BuildRequires: python3-mock
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: python3-msgpack
|
BuildRequires: %{python_module redis >= 2.10.5}
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: %{python_module requests}
|
||||||
BuildRequires: python3-redis >= 2.10.5
|
|
||||||
BuildRequires: python3-requests
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -53,6 +53,7 @@ requests session object.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n cachecontrol-%{version}
|
%setup -q -n cachecontrol-%{version}
|
||||||
|
sed -i -e 's/^from mock/from unittest.mock/' -e 's/^import mock/from unittest import mock/' tests/*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -64,7 +65,7 @@ requests session object.
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
# test_file_cache_recognizes_consumed_file_handle uses httpbin.org directly
|
# test_file_cache_recognizes_consumed_file_handle uses httpbin.org directly
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_bin_suffix} -v -k 'not test_file_cache_recognizes_consumed_file_handle'
|
%pytest -v -k 'not test_file_cache_recognizes_consumed_file_handle'
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative doesitcache
|
%python_install_alternative doesitcache
|
||||||
@ -76,6 +77,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_bin_suffix} -v -k 'n
|
|||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%python_alternative %{_bindir}/doesitcache
|
%python_alternative %{_bindir}/doesitcache
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/cachecontrol
|
||||||
|
%{python_sitelib}/CacheControl-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user