From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 72497158041 for ; Mon, 8 Apr 2024 22:30:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92877E2A16; Mon, 8 Apr 2024 22:30:39 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A213E2A15 for ; Mon, 8 Apr 2024 22:30:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A8DF343337 for ; Mon, 8 Apr 2024 22:30:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AB7916A2 for ; Mon, 8 Apr 2024 22:30:36 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1712615431.c5ed3f73bef2e4b3288653642deba1a5d58ae55e.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hishel/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/hishel/Manifest dev-python/hishel/hishel-0.0.25.ebuild dev-python/hishel/metadata.xml X-VCS-Directories: dev-python/hishel/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: c5ed3f73bef2e4b3288653642deba1a5d58ae55e X-VCS-Branch: master Date: Mon, 8 Apr 2024 22:30:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 38bc3e90-4be6-4892-b56e-aa6ea40f4463 X-Archives-Hash: 9bca5469df391fc7e41677c31eb0dfc6 commit: c5ed3f73bef2e4b3288653642deba1a5d58ae55e Author: Patrick McLean gentoo org> AuthorDate: Mon Apr 8 21:08:14 2024 +0000 Commit: Patrick McLean gentoo org> CommitDate: Mon Apr 8 22:30:31 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ed3f73 dev-python/hishel: new package, add 0.0.25 Signed-off-by: Patrick McLean gentoo.org> dev-python/hishel/Manifest | 1 + dev-python/hishel/hishel-0.0.25.ebuild | 55 ++++++++++++++++++++++++++++++++++ dev-python/hishel/metadata.xml | 12 ++++++++ 3 files changed, 68 insertions(+) diff --git a/dev-python/hishel/Manifest b/dev-python/hishel/Manifest new file mode 100644 index 000000000000..273ee5c48ac2 --- /dev/null +++ b/dev-python/hishel/Manifest @@ -0,0 +1 @@ +DIST hishel-0.0.25.gh.tar.gz 825114 BLAKE2B dd7d7bec47700a1ab07976ba31b951adacf7e917dd7ba09419cc6e3b81f1b6609a1f7f14a6c176b0c151ed255cf099f3da60122717b2be9161bd41b7ba080f36 SHA512 16aec1ea495075b4932e1e9d16b07af060b49bb74faed097343bde99c5d2b656b36762b2f2d67fd46c31b700206eec77ecdfb364a1c2cd19bb67c3055abc9e98 diff --git a/dev-python/hishel/hishel-0.0.25.ebuild b/dev-python/hishel/hishel-0.0.25.ebuild new file mode 100644 index 000000000000..5d674e566749 --- /dev/null +++ b/dev-python/hishel/hishel-0.0.25.ebuild @@ -0,0 +1,55 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..12} ) +inherit distutils-r1 + +DESCRIPTION="An elegant HTTP Cache implementation for HTTPX and HTTP Core" +HOMEPAGE=" + https://github.com/karpetrosyan/hishel + https://pypi.org/project/hishel/ +" +SRC_URI="https://github.com/karpetrosyan/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + test? ( + dev-python/anyio[${PYTHON_USEDEP}] + dev-python/boto3[${PYTHON_USEDEP}] + dev-python/moto[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # tests that need anysqlite + "tests/_async/test_storages.py::test_sqlitestorage[asyncio]" + "tests/_async/test_storages.py::test_sqlitestorage[trio]" + + # tests that need a running redis instance + "tests/_async/test_storages.py::test_redisstorage[asyncio]" + "tests/_async/test_storages.py::test_redisstorage_expired[asyncio]" + "tests/_async/test_storages.py::test_sqlite_expired[asyncio]" + "tests/_sync/test_storages.py::test_redisstorage[asyncio]" + "tests/_sync/test_storages.py::test_redisstorage_expired[asyncio]" + "tests/_sync/test_storages.py::test_redisstorage[trio]" + "tests/_sync/test_storages.py::test_redisstorage_expired[trio]" +) + +python_prepare_all() { + sed -e 's:mock_s3:mock_aws:g' \ + -e '/import anysqlite/ d' \ + -i tests/_async/test_storages.py \ + tests/_sync/test_storages.py || die + + distutils-r1_python_prepare_all +} diff --git a/dev-python/hishel/metadata.xml b/dev-python/hishel/metadata.xml new file mode 100644 index 000000000000..5cf037972bfe --- /dev/null +++ b/dev-python/hishel/metadata.xml @@ -0,0 +1,12 @@ + + + + + chutzpah@gentoo.org + Patrick McLean + + + hishel + karpetrosyan/hishel + +