Date: Mon, 31 Jul 2023 16:45:24 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: e17e236d1b23 - main - www/py-requests-cache0: Add py-requests-cache0 0.9.8 (copied from py-requests-cache) Message-ID: <202307311645.36VGjOaJ078853@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e17e236d1b23fc0785e4c1a34b08eefe2576ff44 commit e17e236d1b23fc0785e4c1a34b08eefe2576ff44 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-07-31 16:27:30 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-07-31 16:39:46 +0000 www/py-requests-cache0: Add py-requests-cache0 0.9.8 (copied from py-requests-cache) - Update WWW - Add PORTSCOUT --- www/Makefile | 1 + www/py-requests-cache0/Makefile | 35 +++++++++++++++++++++++++++++++++++ www/py-requests-cache0/distinfo | 3 +++ www/py-requests-cache0/pkg-descr | 17 +++++++++++++++++ 4 files changed, 56 insertions(+) diff --git a/www/Makefile b/www/Makefile index c1c3ddc548cb..3dc15ff74230 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1748,6 +1748,7 @@ SUBDIR += py-requests SUBDIR += py-requests-aws4auth SUBDIR += py-requests-cache + SUBDIR += py-requests-cache0 SUBDIR += py-requests-cache93 SUBDIR += py-requests-file SUBDIR += py-requests-futures diff --git a/www/py-requests-cache0/Makefile b/www/py-requests-cache0/Makefile new file mode 100644 index 000000000000..a3df94805bca --- /dev/null +++ b/www/py-requests-cache0/Makefile @@ -0,0 +1,35 @@ +PORTNAME= requests-cache +PORTVERSION= 0.9.8 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= requests_cache-${PORTVERSION} +PKGNAMESUFFIX= 0 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Persistent cache for python requests +WWW= https://requests-cache.readthedocs.io/en/stable/ \ + https://github.com/requests-cache/requests-cache + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.4:devel/py-appdirs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}attrs>=21.2:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cattrs>=22.2:devel/py-cattrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.22:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}url-normalize>=1.4:net/py-url-normalize@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.5,1:net/py-urllib3@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +PORTSCOUT= limit:^0\. + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v + +.include <bsd.port.mk> diff --git a/www/py-requests-cache0/distinfo b/www/py-requests-cache0/distinfo new file mode 100644 index 000000000000..cf4d1c1c4305 --- /dev/null +++ b/www/py-requests-cache0/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1688166360 +SHA256 (requests_cache-0.9.8.tar.gz) = eaed4eb5fd5c392ba5e7cfa000d4ab96b1d32c1a1620f37aa558c43741ac362b +SIZE (requests_cache-0.9.8.tar.gz) = 1508006 diff --git a/www/py-requests-cache0/pkg-descr b/www/py-requests-cache0/pkg-descr new file mode 100644 index 000000000000..269efab59819 --- /dev/null +++ b/www/py-requests-cache0/pkg-descr @@ -0,0 +1,17 @@ +requests-cache is a transparent, persistent cache that provides an easy way to +get better performance with the python requests library. + +Features: +- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307311645.36VGjOaJ078853>