From 7204f23a2dc569c723c03e8684184409775503446349e7d4aca9fa1d32deef76 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 10 May 2023 07:25:28 +0000 Subject: [PATCH] =?UTF-8?q?-=20WORK=20IN=20PROGRESS,=20TESTS=20DON?= =?UTF-8?q?=E2=80=99T=20PASS!=20-=20Update=20to=201.0.1:=20(CONGRATULATION?= =?UTF-8?q?S!)=20=20=20-=20Ignore=20Cache-Control:=20must-revalidate=20and?= =?UTF-8?q?=20no-cache=20when=20=20=20=20=20`cache=5Fcontrol=3DFalse`=20?= =?UTF-8?q?=20=20-=20Lots=20of=20miscellaneous=20performance=20improvement?= =?UTF-8?q?s=20=20=20-=20Fast=20automatic=20cache=20cleanup=20with=20TTL?= =?UTF-8?q?=20integration=20for=20=20=20=20=20MongoDB,=20DynamoDB=20and=20?= =?UTF-8?q?Redis=20=20=20-=20Improved=20NoSQL/document=20database=20suppor?= =?UTF-8?q?t:=20human-readable=20and=20=20=20=20=20indexable=20response=20?= =?UTF-8?q?data=20in=20MongoDB=20and=20DynamoDB=20=20=20-=20Complete=20sup?= =?UTF-8?q?port=20for=20Cache-Control=20headers=20(including=20its=20=20?= =?UTF-8?q?=20=20=20extensions)=20=20=20-=20Complete=20type=20hinting=20an?= =?UTF-8?q?d=20more=20details=20from=20cached=20responses=20=20=20-=20Reda?= =?UTF-8?q?ct=20common=20authentication=20headers=20and=20parameters=20fro?= =?UTF-8?q?m=20the=20=20=20=20=20cache=20by=20default=20=20=20-=20Improved?= =?UTF-8?q?=20session=20settings=20interface,=20and=20more=20settings=20fo?= =?UTF-8?q?r=20=20=20=20=20refreshing,=20revalidation,=20and=20offline=20c?= =?UTF-8?q?ache=20usage=20-=20Remaining=20list=20of=20changes=20all=20the?= =?UTF-8?q?=20way=20to=200.6.3=20is=20too=20long,=20=20=20HISTORY.md=20is?= =?UTF-8?q?=20packaged.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-cache?expand=0&rev=15 --- python-requests-cache.changes | 22 ++++++++++++++++++++++ python-requests-cache.spec | 29 +++++++++++++++++++---------- requests-cache-0.6.3.tar.gz | 3 --- requests-cache-1.0.1.tar.gz | 3 +++ 4 files changed, 44 insertions(+), 13 deletions(-) delete mode 100644 requests-cache-0.6.3.tar.gz create mode 100644 requests-cache-1.0.1.tar.gz diff --git a/python-requests-cache.changes b/python-requests-cache.changes index 26215de..b426846 100644 --- a/python-requests-cache.changes +++ b/python-requests-cache.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Thu May 4 20:20:19 UTC 2023 - Matej Cepl + +- WORK IN PROGRESS, TESTS DON’T PASS! +- Update to 1.0.1: (CONGRATULATIONS!) + - Ignore Cache-Control: must-revalidate and no-cache when + `cache_control=False` + - Lots of miscellaneous performance improvements + - Fast automatic cache cleanup with TTL integration for + MongoDB, DynamoDB and Redis + - Improved NoSQL/document database support: human-readable and + indexable response data in MongoDB and DynamoDB + - Complete support for Cache-Control headers (including its + extensions) + - Complete type hinting and more details from cached responses + - Redact common authentication headers and parameters from the + cache by default + - Improved session settings interface, and more settings for + refreshing, revalidation, and offline cache usage +- Remaining list of changes all the way to 0.6.3 is too long, + HISTORY.md is packaged. + ------------------------------------------------------------------- Sat Apr 24 11:30:00 UTC 2021 - John Vandenberg diff --git a/python-requests-cache.spec b/python-requests-cache.spec index c49b41c..1f380ff 100644 --- a/python-requests-cache.spec +++ b/python-requests-cache.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-cache # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-requests-cache -Version: 0.6.3 +Version: 1.0.1 Release: 0 Summary: Persistent cache for requests library License: BSD-2-Clause Group: Development/Languages/Python -URL: https://github.com/reclosedev/requests-cache -Source: https://files.pythonhosted.org/packages/source/r/requests-cache/requests-cache-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +URL: https://github.com/requests-cache/requests-cache +Source: https://github.com/requests-cache/requests-cache/archive/refs/tags/v%{version}.tar.gz#/requests-cache-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} BuildRequires: fdupes +BuildRequires: psmisc BuildRequires: python-rpm-macros Requires: python-itsdangerous Requires: python-requests >= 2.0.0 @@ -36,15 +37,21 @@ Suggests: python-boto3 Suggests: python-mongodb BuildArch: noarch # SECTION test requirements +BuildRequires: %{python_module cattrs} BuildRequires: %{python_module gunicorn} BuildRequires: %{python_module httpbin} BuildRequires: %{python_module itsdangerous} +BuildRequires: %{python_module platformdirs} +BuildRequires: %{python_module pymongo} BuildRequires: %{python_module pytest} BuildRequires: %{python_module redis} BuildRequires: %{python_module requests >= 2.0.0} BuildRequires: %{python_module requests-mock} -BuildRequires: %{python_module url-normalize >= 1.4} +BuildRequires: %{python_module responses} +BuildRequires: %{python_module rich} +BuildRequires: %{python_module tenacity} BuildRequires: %{python_module timeout-decorator} +BuildRequires: %{python_module url-normalize >= 1.4} BuildRequires: redis # /SECTION %python_subpackages @@ -66,10 +73,10 @@ take a look at `CacheControl `_. %setup -q -n requests-cache-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -77,10 +84,12 @@ gunicorn -b 127.0.0.1:8080 httpbin:app -k gevent & %{_sbindir}/redis-server & export HTTPBIN_URL=http://localhost:8080/ %pytest -k 'not (dynamodb or gridfs or mongodb)' +killall -w redis-server %files %{python_files} %license LICENSE %doc README.md HISTORY.md docs/*.rst -%{python_sitelib}/* +%{python_sitelib}/requests_cache +%{python_sitelib}/requests_cache-%{version}*-info %changelog diff --git a/requests-cache-0.6.3.tar.gz b/requests-cache-0.6.3.tar.gz deleted file mode 100644 index bd66ec9..0000000 --- a/requests-cache-0.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b9b5555b3b2ecda74a9aa5abd98174bc7332de2e1d32f9f8f056583b01d6e99 -size 56933 diff --git a/requests-cache-1.0.1.tar.gz b/requests-cache-1.0.1.tar.gz new file mode 100644 index 0000000..a2324ad --- /dev/null +++ b/requests-cache-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c64a69d5be513cb5c9a21e0ca3d067d0581d8041d6cab2c2f1ba0325606b16f6 +size 2914175