diff --git a/CacheControl-0.12.5.tar.gz b/CacheControl-0.12.5.tar.gz index 6f9ec9a..49abd73 100644 --- a/CacheControl-0.12.5.tar.gz +++ b/CacheControl-0.12.5.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cef77effdf51b43178f6a2d3b787e3734f98ade253fa3187f3bb7315aaa42ff7 -size 14383 +oid sha256:d3876bbd614968e0d82c95734b380fca648661416fb14dc1a50514256e521089 +size 37981 diff --git a/python-CacheControl.changes b/python-CacheControl.changes index 5ab234d..7f50d14 100644 --- a/python-CacheControl.changes +++ b/python-CacheControl.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Mar 25 09:46:31 UTC 2019 - John Vandenberg + +- 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 diff --git a/python-CacheControl.spec b/python-CacheControl.spec index 30e36cf..cab624d 100644 --- a/python-CacheControl.spec +++ b/python-CacheControl.spec @@ -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