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 BB7131581E7 for ; Wed, 24 Apr 2024 15:08:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE97DE29E0; Wed, 24 Apr 2024 15:08:39 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D2D5EE29D5 for ; Wed, 24 Apr 2024 15:08: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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 24BF73431DD for ; Wed, 24 Apr 2024 15:08:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A2556175C for ; Wed, 24 Apr 2024 15:08:36 +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: <1713971307.802a0bca568a18eda1b144e5f20f8d437356f0db.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.26.ebuild X-VCS-Directories: dev-python/hishel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 802a0bca568a18eda1b144e5f20f8d437356f0db X-VCS-Branch: master Date: Wed, 24 Apr 2024 15:08: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: b902dc9e-c5d6-4c1a-8130-e6cd7f27fd90 X-Archives-Hash: 7793a572a55e4beefc3f0612549cde05 commit: 802a0bca568a18eda1b144e5f20f8d437356f0db Author: Michał Górny gentoo org> AuthorDate: Wed Apr 24 14:52:41 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Apr 24 15:08:27 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=802a0bca dev-python/hishel: Bump to 0.0.26 Signed-off-by: Michał Górny gentoo.org> dev-python/hishel/Manifest | 1 + dev-python/hishel/hishel-0.0.26.ebuild | 73 ++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-python/hishel/Manifest b/dev-python/hishel/Manifest index 273ee5c48ac2..e3dc6a0cc938 100644 --- a/dev-python/hishel/Manifest +++ b/dev-python/hishel/Manifest @@ -1 +1,2 @@ DIST hishel-0.0.25.gh.tar.gz 825114 BLAKE2B dd7d7bec47700a1ab07976ba31b951adacf7e917dd7ba09419cc6e3b81f1b6609a1f7f14a6c176b0c151ed255cf099f3da60122717b2be9161bd41b7ba080f36 SHA512 16aec1ea495075b4932e1e9d16b07af060b49bb74faed097343bde99c5d2b656b36762b2f2d67fd46c31b700206eec77ecdfb364a1c2cd19bb67c3055abc9e98 +DIST hishel-0.0.26.gh.tar.gz 828246 BLAKE2B e8273020c3b69edc0a080940d8462d33c4eb6b6bbb6f0325975ef29e15d0f16c57a31406f24ae56ad651722ccf6ff704afcedb917417355f67b7536d80dc0c3f SHA512 1d5d55e2ad2743ac15b258c1246a21975c4e8bf5786e331d55acc6e5cb82c0393b23b7c00a5ea9f6f8070e5e3cf6d5f6d9755315403748259d99e6ce20ccd27f diff --git a/dev-python/hishel/hishel-0.0.26.ebuild b/dev-python/hishel/hishel-0.0.26.ebuild new file mode 100644 index 000000000000..479c64d5d556 --- /dev/null +++ b/dev-python/hishel/hishel-0.0.26.ebuild @@ -0,0 +1,73 @@ +# 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" + +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/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 +}