From nobody Mon Jul 31 16:45:24 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RF3zB3qKfz4pGYW; Mon, 31 Jul 2023 16:45:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RF3yF4zHnz3G2p; Mon, 31 Jul 2023 16:45:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690821925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q9XSHvd0rZ1LdpNELSkzlddkrbL7/E7tJi3hAwJtNYg=; b=OAr6zD6LG6vKrfm3MMcxlMUXnKXvpzVk9xc7vUDkwXTqxOblwAeDXu/mV9c5B1dZmVYhMf oMya3IGd4g4jLheex5HRxQbBV+afncwG8svlnspFKcYOePPeLoinnH5pIt2f2KGyRk5DYo GHwnugBs7oKZVgo7J7ckMS2EDBMsSBEbCOPrpkfVCCeTlZAfGnyhu/ar6b+zhtDvus/q+U rfgWiBMGn4lzySXBO3xEi2Gyykl/uGQoKCB4uZIU++lJbnhCfyMqa0KBUne062ydhWGIIG MbNRy5vbFk+dyZ476HcnuSeBy/K3HO/nhDCswePOmaX/w78m6ahPuTL+QC1EEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690821925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q9XSHvd0rZ1LdpNELSkzlddkrbL7/E7tJi3hAwJtNYg=; b=tQevBNtDckjn6znr8ex7N72SvZyuiYfbxJF8hi/c/8Qt+MnfJdGibnFAGi1UQ8rHpNKeqS Mcc7CW3SobtVkxyXIS4aKeSTQvY5Fb3OR/w3DvEpsSVAg3KOpN/pUHRFA6sWDl1/IygKLy P+t2h9AolRW5EWxQJByisVf/1UOgKQX+FGrO6I8frA01oqi8BueFIuxE7T/JPnSaILRTVN I+mYfnLxVAgr9PLH+QsvnIbOndQlCAwA92UoajxocQrLtYgLh0bQAozb+lrM0fkQNf3GyY IcPCl7zvwwYZjc20zNuf79hbiUq56NIlWgC7aPa9/YsiBwA+jFvnlNqHSGIwXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690821925; a=rsa-sha256; cv=none; b=f2PWaRQ4R3cTIyodL5NTVyS0PFulQ7lVQfofux+stxwKyD/CR7y8CyQYTiciBsqCS9Qemh lI8VAlb/nJVfuNN0FxwOuQImQfdeUrYbKStbNjnL58AML9mi1lRbmQcJ1UmOQb9OOOWbOd ZS3TsSkXR4IJ3bXzTco54NWdr8qZ+nJp8GL2Y2aIGs6fCNaWG70gph5P3S2d4GdzHYIhJY wx7ZFHsiB2VdwKMUV118KYN9zkKZheRruAUbYPemsLYuh18w8YSV2lA9CZeJcb14Xz6f0V OUjBZDTd5jrNui8CmN1PjMK4bvia5Rk1HvygHyiJkLILU/taIInj+0YvDmePSw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RF3yD6bjTz13P3; Mon, 31 Jul 2023 16:45:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36VGjOLw078854; Mon, 31 Jul 2023 16:45:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36VGjOaJ078853; Mon, 31 Jul 2023 16:45:24 GMT (envelope-from git) Date: Mon, 31 Jul 2023 16:45:24 GMT Message-Id: <202307311645.36VGjOaJ078853@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: e17e236d1b23 - main - www/py-requests-cache0: Add py-requests-cache0 0.9.8 (copied from py-requests-cache) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e17e236d1b23fc0785e4c1a34b08eefe2576ff44 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=e17e236d1b23fc0785e4c1a34b08eefe2576ff44 commit e17e236d1b23fc0785e4c1a34b08eefe2576ff44 Author: Po-Chuan Hsieh AuthorDate: 2023-07-31 16:27:30 +0000 Commit: Po-Chuan Hsieh 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 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