dev-python/hishel: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-10-20 06:52:35 +02:00
parent 26d70c16c8
commit eea19241d1
3 changed files with 0 additions and 151 deletions

View File

@@ -1,3 +1 @@
DIST hishel-0.1.3.gh.tar.gz 877174 BLAKE2B 296337921b1b7091b3fd8c4ec45203c7dc6138659d4affcd26a84cedf408cd39c835bf24acee5766deb59c4589d81fb4a9b7fc2f38ae5e328175f2a886617502 SHA512 5807cb1ddd819e3903f038b330cde7abb12101a46782c5117cc97b4cd53e752d8ed0e69ac9d0142fe1314b2ce56f1173aac23989f96e78596bbc3b6696a4f713
DIST hishel-0.1.4.gh.tar.gz 1079026 BLAKE2B c058ddeb0fd8552cf6f2cba5d74a8d259f3008caf0ab259ca98d897c98fa92d3a1a31de2b292217178b1743393da04056e304997546d7a14395bab5b23f36f2e SHA512 213f9a51e3ed079c7558449cd90691988ad7defddaf7eb0b94a70bebe26f1a9f3d63119666124e7fd414b593a77041deb14b8bee13e4ece87fc36b30d2cf0b1e
DIST hishel-0.1.5.gh.tar.gz 1065622 BLAKE2B 926801f579a57cc2b45cb6cd5326459493452d34b32a2725b906307dcc4575b1297b35ffc626e51acc5805216731552d58c672dedb0541f2c771f153daee960d SHA512 b1f850895b147da616ace381d98ac9b6a15386d7e79d64a57a4e87f9bd0b42009a6ffa15fe1f8e46c57f8bc664c3af97d46e5adb81211e30fae87dab898f7734

View File

@@ -1,76 +0,0 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{11..14} )
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-0.28[${PYTHON_USEDEP}]
"
BDEPEND="
${RDEPEND}
dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}]
test? (
dev-db/redis
dev-python/boto3[${PYTHON_USEDEP}]
dev-python/redis[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( anyio )
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
}

View File

@@ -1,73 +0,0 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{11..14} )
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/anyio-4.9.0[${PYTHON_USEDEP}]
>=dev-python/anysqlite-0.0.5[${PYTHON_USEDEP}]
>=dev-python/httpx-0.28[${PYTHON_USEDEP}]
>=dev-python/msgpack-1.1.2[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-1.14.1[${PYTHON_USEDEP}]
"
BDEPEND="
${RDEPEND}
dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}]
test? (
dev-db/redis
>=dev-python/boto3-1.15.3[${PYTHON_USEDEP}]
>=dev-python/inline-snapshot-0.28.0[${PYTHON_USEDEP}]
>=dev-python/redis-6.2.0[${PYTHON_USEDEP}]
>=dev-python/time-machine-2.19.0[${PYTHON_USEDEP}]
>=dev-python/trio-0.30.0[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( anyio )
distutils_enable_tests pytest
src_test() {
local EPYTEST_DESELECT=(
# Internet
tests/beta/test_async_httpx.py
tests/beta/test_requests.py
tests/beta/test_sync_httpx.py
)
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
}