commit 3a70ea5c43e2f628bba39240ec8f89e5a23181868922d38f963536f449460c45 Author: Thomas Bechtold Date: Fri Apr 7 07:39:18 2017 +0000 Accepting request 486118 from home:alarrosa:branches:devel:languages:python:singlespec New package python-requests-cache using singlespec OBS-URL: https://build.opensuse.org/request/show/486118 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-cache?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-requests-cache.changes b/python-requests-cache.changes new file mode 100644 index 0000000..549b11c --- /dev/null +++ b/python-requests-cache.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Mar 28 17:27:40 UTC 2017 - alarrosa@suse.com + +- Initial release + diff --git a/python-requests-cache.spec b/python-requests-cache.spec new file mode 100644 index 0000000..61a1fd5 --- /dev/null +++ b/python-requests-cache.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-requests-cache +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} + +Name: python-requests-cache +Version: 0.4.13 +Release: 0 +License: BSD-2-Clause +Summary: Persistent cache for requests library +Url: https://github.com/reclosedev/requests-cache +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/r/requests-cache/requests-cache-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module requests >= 1.1.0} +BuildRequires: python-rpm-macros +Requires: python-requests >= 1.1.0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%python_subpackages + +%description +Requests-cache is a transparent persistent cache for requests_ (version >= 1.1.0) library. + +It can be useful when you are creating some simple data scraper with constantly +changing parsing logic or data format, and don't want to redownload pages or +write complex error handling and persistence. + +Requests-cache ignores all cache headers, it just caches the data for the +time you specify. + +If you need library which knows how to use HTTP headers and status codes, +take a look at `httpcache `_ and +`CacheControl `_. + +%prep +%setup -q -n requests-cache-%{version} + +%build +%{python_build} + +%install +%{python_install} + +%check +%python_exec setup.py test + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.rst LICENSE +%{python_sitelib}/* + +%changelog diff --git a/requests-cache-0.4.13.tar.gz b/requests-cache-0.4.13.tar.gz new file mode 100644 index 0000000..dc0e788 --- /dev/null +++ b/requests-cache-0.4.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe561ca119879bbcfb51f03a35e35b425e18f338248e59fd5cf2166c77f457a2 +size 29342