From nobody Mon Jun 06 11:28:52 2022 X-Original-To: dev-commits-ports-main@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 10E601BD9A9A; Mon, 6 Jun 2022 11:28:53 +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 4LGrpr6TXVz4sCK; Mon, 6 Jun 2022 11:28:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654514932; 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=vGGHWbLZoHnetPloosPJ8s4HZURClicJEV1rHihJJZU=; b=fu5zvcXjdqJZVajWgLBmbBv6f6eRpTHnorXvD4hGyFNCafmOG5Zn6b0mNqN1aDwYzykWon cm+MKZ3ZfjXL55A87/kSZ3EWP61rvBvXMz7Wtv5x350nQzKbD6aghStY6Lel+nfmh0umhv SpUnV1eLFaSWorRreI6JvcBXro5Rb/N2AogpOhbGx8o+UZDit7MgrcT4MW/BdWxxxtnJuC EEikM2nZKTuz5mMDNbn64X9cJLjRf1WAC6qm5YlIw6KXC3uxZHLXTm314xK805XhFGCBTW p8CvOkXkwSzU8ZUEL+nMKyEw9vDKBmZJnKsQzN2wa7H1QAc32fZhHil3AcDQfw== 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 9E2492502F; Mon, 6 Jun 2022 11:28:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 256BSqrN027608; Mon, 6 Jun 2022 11:28:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 256BSqew027607; Mon, 6 Jun 2022 11:28:52 GMT (envelope-from git) Date: Mon, 6 Jun 2022 11:28:52 GMT Message-Id: <202206061128.256BSqew027607@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 2dc64c4a2353 - main - www/py-requests-cache93: New Port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2dc64c4a2353580d8ea3f9ab181f642ae6832e17 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654514932; 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=vGGHWbLZoHnetPloosPJ8s4HZURClicJEV1rHihJJZU=; b=jIFzfp9zSaQDV7PnDw5NbeoYtMATbm75m60iqrf+npBrjbBwdcckeic3IovazjuohMnzYz /Ha4yf5vHrDexcIo1PkgIP1uahK4bZNF2dH4HF3kBtTxqIyXmRmG61b8Y8Sy4IspL52DmC 37AT/iez/3KVuoAPdtJb1MCAKL2/tyaFCM+nmcUSLC+NJp8vQMzrzUEmpTfRQ0x/da1gdP Xg3hXhHwyRxWjnZ3Cvf9bnkn+HSTU8ovxJw+xCbY7AWl6yy0CCi4pOXkyLyQuEy24QZmWq V+hY62MNwwWYUebdnUMEoGc+adfiHZJMw3Zo7sWXlmbvFglqaApZcSAQbnkIWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654514932; a=rsa-sha256; cv=none; b=tXiM9fUIe3I/AeKanGiknA7X46E/AFZ/lhFZCLksJEnl2RcuP+MnauS7HXO2cKN1WIhLri iSKHTuJpNj/qIo0DANPJJ6LmOxAYoKJUzPLjyb/r7fNYShKZz5X5CJuESTI5VDw7QzEDsQ UeN0w+6XXwedziQ9eWynHZjIlNWJ/Vuz+WOTTw8V5lI1lv1Ua0tX3lMZQOrgiFRv3subXo 0Z/3cnmRr04Gmtyj915CDrm3dIF8wsqlx+kGIzlCHrw7Ny0iXh+ZUXLcTCuTzKY1ACDhSb oP2ivY6NMyb6Amq8F1Xag52BCVwblV5u31t3RR3UfPOuPLx+Eeypkach6LKjxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=2dc64c4a2353580d8ea3f9ab181f642ae6832e17 commit 2dc64c4a2353580d8ea3f9ab181f642ae6832e17 Author: Muhammad Moinur Rahman AuthorDate: 2022-06-06 11:22:40 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2022-06-06 11:28:44 +0000 www/py-requests-cache93: New Port This is 0.9.3 branch of www/py-requests-cache which is required for www/py-tvdb_api 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 WWW: https://github.com/reclosedev/requests-cache --- www/Makefile | 1 + www/py-requests-cache93/Makefile | 29 +++++++++++++++++++++++++++++ www/py-requests-cache93/distinfo | 3 +++ www/py-requests-cache93/pkg-descr | 19 +++++++++++++++++++ 4 files changed, 52 insertions(+) diff --git a/www/Makefile b/www/Makefile index 32b809de1847..fcd5261224db 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1742,6 +1742,7 @@ SUBDIR += py-requests SUBDIR += py-requests-aws4auth SUBDIR += py-requests-cache + SUBDIR += py-requests-cache93 SUBDIR += py-requests-file SUBDIR += py-requests-futures SUBDIR += py-requests-mock diff --git a/www/py-requests-cache93/Makefile b/www/py-requests-cache93/Makefile new file mode 100644 index 000000000000..33f06ea80c69 --- /dev/null +++ b/www/py-requests-cache93/Makefile @@ -0,0 +1,29 @@ +PORTNAME= requests-cache +PORTVERSION= 0.9.3 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 93 + +MAINTAINER= bofh@FreeBSD.org +COMMENT= Transparent persistent cache for the requests library (0.9.3 branch) + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +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} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v + +.include diff --git a/www/py-requests-cache93/distinfo b/www/py-requests-cache93/distinfo new file mode 100644 index 000000000000..feba47ef324b --- /dev/null +++ b/www/py-requests-cache93/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1654497752 +SHA256 (requests-cache-0.9.3.tar.gz) = b32f8afba2439e1b3e12cba511c8f579271eff827f063210d62f9efa5bed6564 +SIZE (requests-cache-0.9.3.tar.gz) = 1506512 diff --git a/www/py-requests-cache93/pkg-descr b/www/py-requests-cache93/pkg-descr new file mode 100644 index 000000000000..cbffa1b55be5 --- /dev/null +++ b/www/py-requests-cache93/pkg-descr @@ -0,0 +1,19 @@ +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 + +WWW: https://github.com/reclosedev/requests-cache