git: 80923c7c2312 - main - www/py-requests-cache: Update to 0.9.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 16 Apr 2022 04:23:18 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=80923c7c2312127a68c181a2340c46ae1b240781

commit 80923c7c2312127a68c181a2340c46ae1b240781
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-16 03:59:11 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-16 04:19:29 +0000

    www/py-requests-cache: Update to 0.9.3
    
    - Update pkg-descr
    
    Changes:        https://github.com/reclosedev/requests-cache/releases
                    https://github.com/reclosedev/requests-cache/blob/master/HISTORY.md
---
 www/py-requests-cache/Makefile  | 20 +++++++++++---------
 www/py-requests-cache/distinfo  |  6 +++---
 www/py-requests-cache/pkg-descr | 21 +++++++++++++++------
 3 files changed, 29 insertions(+), 18 deletions(-)

diff --git a/www/py-requests-cache/Makefile b/www/py-requests-cache/Makefile
index e952dfa181fa..c8e23bf16b2e 100644
--- a/www/py-requests-cache/Makefile
+++ b/www/py-requests-cache/Makefile
@@ -1,28 +1,30 @@
 # Created by: Kubilay Kocak <koobs@FreeBSD.org>
 
 PORTNAME=	requests-cache
-PORTVERSION=	0.4.13
+PORTVERSION=	0.9.3
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
-COMMENT=	Persistent cache for requests library
+COMMENT=	Transparent persistent cache for the requests library
 
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=1.1.0:www/py-requests@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=2.8:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.4<2.0.0:devel/py-appdirs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}attrs>=21.2<22.0:devel/py-attrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cattrs>=1.8<2.0:devel/py-cattrs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.22<3.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}url-normalize>=1.4<2.0:net/py-url-normalize@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.5,1<2.0.0,1:net/py-urllib3@${PY_FLAVOR}
 
-# Python 2.6-3.5(+) 20171026
-USES=		python:3.6+
-USE_PYTHON=	autoplist distutils
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
 do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
+	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
 
 .include <bsd.port.mk>
diff --git a/www/py-requests-cache/distinfo b/www/py-requests-cache/distinfo
index 815752946214..15d77428db9d 100644
--- a/www/py-requests-cache/distinfo
+++ b/www/py-requests-cache/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1509013259
-SHA256 (requests-cache-0.4.13.tar.gz) = fe561ca119879bbcfb51f03a35e35b425e18f338248e59fd5cf2166c77f457a2
-SIZE (requests-cache-0.4.13.tar.gz) = 29342
+TIMESTAMP = 1649423860
+SHA256 (requests-cache-0.9.3.tar.gz) = b32f8afba2439e1b3e12cba511c8f579271eff827f063210d62f9efa5bed6564
+SIZE (requests-cache-0.9.3.tar.gz) = 1506512
diff --git a/www/py-requests-cache/pkg-descr b/www/py-requests-cache/pkg-descr
index af8f37b2adb8..cbffa1b55be5 100644
--- a/www/py-requests-cache/pkg-descr
+++ b/www/py-requests-cache/pkg-descr
@@ -1,10 +1,19 @@
-Requests-cache is a transparent persistent cache for requests (version
->= 1.1.0) library.
+requests-cache is a transparent, persistent cache that provides an easy way to
+get better performance with the python requests library.
 
 Features:
-
-  * Transparent caching
-  * Persistence (with support for SQLite, MongoDB or Redis)
-  * Cached object expiration
+- Ease of use: Keep using the requests library you're already familiar with. Add
+  caching with a drop-in replacement for requests.Session, or install globally
+  to add caching to all requests functions.
+- Performance: Get sub-millisecond response times for cached responses. When
+  they expire, you still save time with conditional requests.
+- Persistence: Works with several storage backends including SQLite, Redis,
+  MongoDB, and DynamoDB; or save responses as plain JSON files, YAML, and more
+- Customization: Works out of the box with zero config, but with a robust set of
+  features for configuring and extending the library to suit your needs
+- Expiration: Keep your cache fresh using Cache-Control, eagerly cache
+  everything for long-term storage, use URL patterns for selective caching, or
+  any combination of strategies
+- Compatibility: Can be combined with other popular libraries based on requests
 
 WWW: https://github.com/reclosedev/requests-cache