From fb7c221776ce0bda5eb40ef32cb74daa98aed0d7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 9 Apr 2024 18:31:35 +0100 Subject: gentoo auto-resync : 09:04:2024 - 18:31:35 --- dev-python/hishel/Manifest | 2 +- dev-python/hishel/hishel-0.0.25-r1.ebuild | 61 +++++++++++++++++++++++++++++++ dev-python/hishel/hishel-0.0.25.ebuild | 55 ---------------------------- 3 files changed, 62 insertions(+), 56 deletions(-) create mode 100644 dev-python/hishel/hishel-0.0.25-r1.ebuild delete mode 100644 dev-python/hishel/hishel-0.0.25.ebuild (limited to 'dev-python/hishel') diff --git a/dev-python/hishel/Manifest b/dev-python/hishel/Manifest index f7e741b821f0..ecbe4d64d634 100644 --- a/dev-python/hishel/Manifest +++ b/dev-python/hishel/Manifest @@ -1,3 +1,3 @@ DIST hishel-0.0.25.gh.tar.gz 825114 BLAKE2B dd7d7bec47700a1ab07976ba31b951adacf7e917dd7ba09419cc6e3b81f1b6609a1f7f14a6c176b0c151ed255cf099f3da60122717b2be9161bd41b7ba080f36 SHA512 16aec1ea495075b4932e1e9d16b07af060b49bb74faed097343bde99c5d2b656b36762b2f2d67fd46c31b700206eec77ecdfb364a1c2cd19bb67c3055abc9e98 -EBUILD hishel-0.0.25.ebuild 1611 BLAKE2B efc386f50eca4161cc3c6da7bcb7e3171bbaae9eb83d0ca48e9918fc5b0b9c07963547c00c21b98f67c286b8e1a76ac6cea419abfe8817cbf08020d8977bab20 SHA512 0bc674f0e7ffab7d6c464ca23e1d80c26e7a337f969d4f763c6fa4dfa82454f08934f96c5285c1e09983a3b26f2cad0299aa1ef83051f346aa47594540cff0b4 +EBUILD hishel-0.0.25-r1.ebuild 1720 BLAKE2B 418142e364c802db5ef8348cc39017f45aff35e8acbac2a1b57c96ee2d873d740fbdfcd539b78e0b9e0eaa04100fda30331adec46befa8e88b6788b8a3a09c0b SHA512 8fb39d0f967504c1443417dd7f3ac55627fee958fb54e26bc8b8d7718c107721a71dc5ffd7f4c354e6a8404ed188943c488a397d5985b51fc4e2391a406fa10d MISC metadata.xml 378 BLAKE2B 24bb3b6d47931488021a625ac5f4eca9575efaebabc4af29fcd42ea8468a0a8da077d88b98c6f348c7528d7b338fbf553475894fe0726f11ca48c6c5d4720f61 SHA512 ae67451815773cffe43a0e16ae42020f1c29fb83ad711633666b065be586a08e4da5ebcee8e35d7f0c0084c018713760a1f20b4b9a7f2a5d43691589be357b42 diff --git a/dev-python/hishel/hishel-0.0.25-r1.ebuild b/dev-python/hishel/hishel-0.0.25-r1.ebuild new file mode 100644 index 000000000000..99f6858c366c --- /dev/null +++ b/dev-python/hishel/hishel-0.0.25-r1.ebuild @@ -0,0 +1,61 @@ +# 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-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/hishel-0.0.25.ebuild b/dev-python/hishel/hishel-0.0.25.ebuild deleted file mode 100644 index 5d674e566749..000000000000 --- a/dev-python/hishel/hishel-0.0.25.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# 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 -} -- cgit v1.2.3