forked from pool/python-CacheControl
Accepting request 688168 from home:jayvdb:branches:devel:languages:python
- Activate test suite, with two tests currently failing - Trim description, removing irrelevant information about httplib2 - Recommend lockfile, as a lightweight dependency needed for FileCache, which is a primary use of CacheControl. OBS-URL: https://build.opensuse.org/request/show/688168 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CacheControl?expand=0&rev=8
This commit is contained in:
parent
9784b1b62f
commit
355a847339
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cef77effdf51b43178f6a2d3b787e3734f98ade253fa3187f3bb7315aaa42ff7
|
||||
size 14383
|
||||
oid sha256:d3876bbd614968e0d82c95734b380fca648661416fb14dc1a50514256e521089
|
||||
size 37981
|
||||
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 25 09:46:31 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Activate test suite, with two tests currently failing
|
||||
- Trim description, removing irrelevant information about httplib2
|
||||
- Recommend lockfile, as a lightweight dependency needed for FileCache,
|
||||
which is a primary use of CacheControl.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 28 09:10:36 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@ -24,31 +24,32 @@ Summary: httplib2 caching for requests
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/ionrock/cachecontrol
|
||||
Source: https://files.pythonhosted.org/packages/source/C/CacheControl/CacheControl-%{version}.tar.gz
|
||||
Source: https://github.com/ionrock/cachecontrol/archive/v0.12.5.tar.gz#/CacheControl-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-msgpack-python
|
||||
Requires: python-msgpack
|
||||
Requires: python-requests
|
||||
Suggests: python-lockfile >= 0.9
|
||||
Recommends: python-lockfile >= 0.9
|
||||
Suggests: python-redis >= 2.10.5
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module msgpack-python}
|
||||
BuildRequires: %{python_module CherryPy}
|
||||
BuildRequires: %{python_module lockfile >= 0.9}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module msgpack}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module redis >= 2.10.5}
|
||||
BuildRequires: %{python_module requests}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
CacheControl is a port of the caching algorithms in httplib2_ for use with
|
||||
requests_ session object.
|
||||
|
||||
It was written because httplib2's better support for caching is often
|
||||
mitigated by its lack of threadsafety. The same is true of requests in
|
||||
terms of caching.
|
||||
CacheControl is a port of the caching algorithms in httplib2 for use with
|
||||
requests session object.
|
||||
|
||||
%prep
|
||||
%setup -q -n CacheControl-%{version}
|
||||
%setup -q -n cachecontrol-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@ -57,6 +58,10 @@ terms of caching.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# These two failures are possibly bugs needing investigation
|
||||
%python_exec -m pytest -k 'not test_file_cache_recognizes_consumed_file_handle and not test_etags_get_example'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
|
Loading…
Reference in New Issue
Block a user