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 005301581C1 for ; Sat, 13 Jul 2024 04:46:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94714E2A01; Sat, 13 Jul 2024 04:46:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 701CEE2A01 for ; Sat, 13 Jul 2024 04:46:04 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 88A3C340B57 for ; Sat, 13 Jul 2024 04:46:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BCC9D1E23 for ; Sat, 13 Jul 2024 04:46:00 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1720845889.c4aefb2914ff2cb0be98ca3f1c317e9fd1d69bae.mgorny@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.30.ebuild X-VCS-Directories: dev-python/hishel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c4aefb2914ff2cb0be98ca3f1c317e9fd1d69bae X-VCS-Branch: master Date: Sat, 13 Jul 2024 04:46:00 +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: 256840ca-1eb0-4233-9f17-3354c4a3cdb7 X-Archives-Hash: 773fe5cbd89ba31747c357c221f6bc43 commit: c4aefb2914ff2cb0be98ca3f1c317e9fd1d69bae Author: Michał Górny gentoo org> AuthorDate: Sat Jul 13 04:17:00 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Jul 13 04:44:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4aefb29 dev-python/hishel: Bump to 0.0.30 Signed-off-by: Michał Górny gentoo.org> dev-python/hishel/Manifest | 1 + dev-python/hishel/hishel-0.0.30.ebuild | 74 ++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/dev-python/hishel/Manifest b/dev-python/hishel/Manifest index 2eafa5faf58a..c3adb1866199 100644 --- a/dev-python/hishel/Manifest +++ b/dev-python/hishel/Manifest @@ -1 +1,2 @@ DIST hishel-0.0.29.gh.tar.gz 828680 BLAKE2B 2869f53e04e92d5c6ccaeb3234a299a075db8429b3b8f77ac9671764b65a4a7d360451e934651789caf2e654b3e5b18819b741b52abe89867157599b921d5a40 SHA512 a16b2c198ea93c2445e0f572e5432c1f44b12ed0e301e52ed46c2c849a5a324457f88ca50c5e98283ceb9aaddf1e1ea4a11644cf61dd0ca4a25f956950c6da23 +DIST hishel-0.0.30.gh.tar.gz 832978 BLAKE2B 932150b3464dcbc4fc2ff1361bafa6b2ea3fef496b0c89117c18b62122d07b0d71db66762e3eb87edb03f84eb4af0273f1792131e110291924bb29299051741a SHA512 f55f04badfe9ea161e20d8eca631cc02f9b1195ddaf3ba75b5e1a0ef143337a13438181ede9c853f30f7a24d3b6e59cffdc044860fc564d18392a59bd603c5c9 diff --git a/dev-python/hishel/hishel-0.0.30.ebuild b/dev-python/hishel/hishel-0.0.30.ebuild new file mode 100644 index 000000000000..046e93ae7033 --- /dev/null +++ b/dev-python/hishel/hishel-0.0.30.ebuild @@ -0,0 +1,74 @@ +# 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..13} ) +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 ~arm64" + +RDEPEND=" + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] +" + +BDEPEND=" + ${RDEPEND} + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + test? ( + dev-db/redis + dev-python/anyio[${PYTHON_USEDEP}] + dev-python/boto3[${PYTHON_USEDEP}] + dev-python/moto[${PYTHON_USEDEP}] + dev-python/redis[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +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 +} + +src_test() { + local EPYTEST_DESELECT=( + # tests that need anysqlite + tests/_async/test_storages.py::test_sqlitestorage + tests/_async/test_storages.py::test_sqlite_expired + tests/_async/test_storages.py::test_sqlite_ttl_after_hits + ) + + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + einfo "Starting Redis" + "${EPREFIX}"/usr/sbin/redis-server - <<- EOF + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 ::1 + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +}