From nobody Sun Mar 31 18:55:59 2024 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 4V73JJ03Bwz5GBDv; Sun, 31 Mar 2024 18:56:00 +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 4V73JH66Z0z47k5; Sun, 31 Mar 2024 18:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711911359; 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=CNGs3HbxqU1+6EsVS8Amm8ZkUxi0qfRARw5GWFR/gdU=; b=IeIHbtzvvG4IDtlnW2+dPYvdi9E68H2D4D8l+DtgyLK5irFORz7SYGGH3NxDXwuW/jCYhC RJfLJEh0PrCIp2ZeZl42cYSpGPUEqFIjMOXr3j9lFtjtOYHEKegjM5xFO18GOM6a1w/L3e zKwPyAkIWyhUIvgauNOARCKNrC1U1hc5GIElj9c/GukWHWDxxmjce9o4S7SsXwck3np8q0 tDu2nqz1QEUehPgvZE9QtAQ0/dhP8yYoxQWvbHatI4HDSjrxIsKmKCNHW4SiV2iYJ5OvzQ VzxUSpcfgxqYVhz0bHsno3uwLuku0CuyGhIcYCW/++PkzYu3WI0WsFXJUMUnnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711911359; a=rsa-sha256; cv=none; b=cVQL5uCp5ZoRkTHcM80DjhjypKjEa37fCDk2WcY+AH01TFkvg0teGPTU1xEW8cFuf1NYyZ t1mFxm/wM4HWYMH7B0Zz0Zv2PO3kQlHlstZ0hhnFRWP8+ueybd0Klyq7KB0ONKR8NzG3/D r3jLdlW/NNi5t9Z9jGxtZwxHpIbttN6u6B7zjIdgHcEQ+jv8XZYWTNS4cMiZj9Z2ylyUm6 M3oqc1h46YTlN4EGD9ikla0I//oIg6Sb5Fi311pn9j5QsK/drYYgnCaQkj+aXxBKNCBfrg qz3J9GNr6qgSyPdVFAVzbLKlH7Q6U8hkqF+nBU8FJy2V9KRRUxMEJwyEh50wOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711911359; 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=CNGs3HbxqU1+6EsVS8Amm8ZkUxi0qfRARw5GWFR/gdU=; b=vUnfEZ15cR6mioJiDEeCL0fe2iGM9HHGchphEhN6/tTXNwu8FWpgRh7ylFui5mP1/e1SaM Atir6qDMkOlAgfhTHvtuhpIT2DZRgw8whqTzLPx8l4R8bJZFHAmOYld/2WXubFpCMN72dX qSh6sDAzGbGfyhNCQHKbv9IZucTZVLZckLItB45xmdR+qfCqZ+Wb2NP9NV5fm4jX1so+hY CNfVL30z2Rp9qxcBN3OAYRMa1FUFlC6J0OGvyFaVMmzJ8uFa7Sn7cIWOGiettcaxvNuyef 2qt4yCpRzuP+11XTGeS9W/V0ifNYFTdyhAEqib2NeYgCU1gQ4M1fGCU9jkrICA== 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 4V73JH5klmzqQT; Sun, 31 Mar 2024 18:55:59 +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 42VItxXJ043779; Sun, 31 Mar 2024 18:55:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42VItxvu043776; Sun, 31 Mar 2024 18:55:59 GMT (envelope-from git) Date: Sun, 31 Mar 2024 18:55:59 GMT Message-Id: <202403311855.42VItxvu043776@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: 31e33834dc07 - main - devel/py-hishel: Add py-hishel 0.0.25 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: 31e33834dc077101cd34ad455df685ad345c4fb2 Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=31e33834dc077101cd34ad455df685ad345c4fb2 commit 31e33834dc077101cd34ad455df685ad345c4fb2 Author: Po-Chuan Hsieh AuthorDate: 2024-03-31 18:43:15 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-03-31 18:43:15 +0000 devel/py-hishel: Add py-hishel 0.0.25 Hishel is a library that implements HTTP Caching for HTTPX and HTTP Core libraries in accordance with RFC 9111, the most recent caching specification. Features: - Persistence: Responses are cached in the persistent memory for later use. - Compatibility: It is completely compatible with your existing transports or connection pools, whether they are default, custom, or provided by third-party libraries. - Easy to use: You continue to use httpx while also enabling web cache. - Smart: Attempts to clearly implement RFC 9111, understands Vary, Etag, Last-Modified, Cache-Control, and Expires headers, and handles response re-validation automatically. - Configurable: You have complete control over how the responses are stored and serialized. - From the package: - Built-in support for File system, Redis, SQLite, and AWS S3 backends. - Built-in support for JSON, YAML, and pickle serializers. - Very fast: Your requests will be even faster if there are no IO operations. --- devel/Makefile | 1 + devel/py-hishel/Makefile | 25 +++++++++++++++++++++++++ devel/py-hishel/distinfo | 3 +++ devel/py-hishel/pkg-descr | 18 ++++++++++++++++++ 4 files changed, 47 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 80c6a2f0d7d9..32e2039ab419 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4835,6 +4835,7 @@ SUBDIR += py-hglib SUBDIR += py-hgtools SUBDIR += py-hidraw + SUBDIR += py-hishel SUBDIR += py-holidays SUBDIR += py-hologram SUBDIR += py-homebase diff --git a/devel/py-hishel/Makefile b/devel/py-hishel/Makefile new file mode 100644 index 000000000000..52d2f2d15b12 --- /dev/null +++ b/devel/py-hishel/Makefile @@ -0,0 +1,25 @@ +PORTNAME= hishel +PORTVERSION= 0.0.25 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Persistent cache implementation for httpx and httpcore +WWW= https://hishel.com/ \ + https://github.com/karpetrosyan/hishel + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.22.0:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.8.0:devel/py-typing-extensions@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-hishel/distinfo b/devel/py-hishel/distinfo new file mode 100644 index 000000000000..4025f572e90d --- /dev/null +++ b/devel/py-hishel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1711860455 +SHA256 (hishel-0.0.25.tar.gz) = ddb22ee32c656e3c75cd05efefd1165c5fbd1c3f023edffda684f5125625700b +SIZE (hishel-0.0.25.tar.gz) = 28285 diff --git a/devel/py-hishel/pkg-descr b/devel/py-hishel/pkg-descr new file mode 100644 index 000000000000..ceb0a2557ac4 --- /dev/null +++ b/devel/py-hishel/pkg-descr @@ -0,0 +1,18 @@ +Hishel is a library that implements HTTP Caching for HTTPX and HTTP Core +libraries in accordance with RFC 9111, the most recent caching specification. + +Features: +- Persistence: Responses are cached in the persistent memory for later use. +- Compatibility: It is completely compatible with your existing transports or + connection pools, whether they are default, custom, or provided by third-party + libraries. +- Easy to use: You continue to use httpx while also enabling web cache. +- Smart: Attempts to clearly implement RFC 9111, understands Vary, Etag, + Last-Modified, Cache-Control, and Expires headers, and handles response + re-validation automatically. +- Configurable: You have complete control over how the responses are stored and + serialized. +- From the package: + - Built-in support for File system, Redis, SQLite, and AWS S3 backends. + - Built-in support for JSON, YAML, and pickle serializers. +- Very fast: Your requests will be even faster if there are no IO operations.