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:
Tomáš Chvátal 2019-03-25 09:50:55 +00:00 committed by Git OBS Bridge
parent 9784b1b62f
commit 355a847339
3 changed files with 26 additions and 13 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:cef77effdf51b43178f6a2d3b787e3734f98ade253fa3187f3bb7315aaa42ff7 oid sha256:d3876bbd614968e0d82c95734b380fca648661416fb14dc1a50514256e521089
size 14383 size 37981

View File

@ -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> Thu Feb 28 09:10:36 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -24,31 +24,32 @@ Summary: httplib2 caching for requests
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/ionrock/cachecontrol 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: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-msgpack-python Requires: python-msgpack
Requires: python-requests Requires: python-requests
Suggests: 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
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} BuildRequires: %{python_module requests}
# /SECTION # /SECTION
%python_subpackages %python_subpackages
%description %description
CacheControl is a port of the caching algorithms in httplib2_ for use with CacheControl is a port of the caching algorithms in httplib2 for use with
requests_ session object. 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.
%prep %prep
%setup -q -n CacheControl-%{version} %setup -q -n cachecontrol-%{version}
%build %build
%python_build %python_build
@ -57,6 +58,10 @@ terms of caching.
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %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} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.rst %doc README.rst