1
0

Accepting request 691698 from devel:languages:python

- Run tests only under py3 as CherryPy is available only there

- 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/691698
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-CacheControl?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2019-04-05 10:05:27 +00:00 committed by Git OBS Bridge
commit cc7acbac7c
3 changed files with 33 additions and 14 deletions

View File

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

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Apr 5 07:14:44 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Run tests only under py3 as CherryPy is available only there
-------------------------------------------------------------------
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>

View File

@ -24,31 +24,33 @@ 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 requests}
## cherrypy is python3 only from 18.x series
BuildRequires: python3-CherryPy
BuildRequires: python3-lockfile >= 0.9
BuildRequires: python3-mock
BuildRequires: python3-msgpack
BuildRequires: python3-pytest
BuildRequires: python3-redis >= 2.10.5
BuildRequires: python3-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 +59,10 @@ terms of caching.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# These two failures are possibly bugs needing investigation
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_bin_suffix} -v -k 'not test_file_cache_recognizes_consumed_file_handle and not test_etags_get_example'
%files %{python_files}
%license LICENSE.txt
%doc README.rst