dev-python/pyrate-limiter: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-03-23 05:20:16 +01:00
parent e5c89db342
commit 04b34b8a79
2 changed files with 0 additions and 76 deletions

View File

@@ -1,3 +1,2 @@
DIST pyrate_limiter-3.9.0.tar.gz 289308 BLAKE2B 46046dd69ea7d74cdd29e6194fc43154d58119a950fbf9e81b71809e92099caff446268acc99ee1d9bf9b8457ffccc26f042259de452df2e8fac5c67098678ef SHA512 a9910349aade28b9adf6cace538931e838f367330d8717838f3eed48f56a52baf9eafa955094f8cd858c2cdab740dfcd1c2fd0e3ab98c6b56a9b0233a1e4470e
DIST pyrate_limiter-4.0.2.tar.gz 301304 BLAKE2B 5a5d983513ec9e94098cec7f065d550b233a5b7f5296680a1af5b07f83f45a11b07d695451cfb8b636f20918c221d3d5a777e006be3640a6245c0de93a69c5be SHA512 c99a7a36c771376ee9ba9f02427452ef2d53ec53682fd494d21e35beb2b7f91e91f99dc384548bced8752ecede40041ebd1a678c28700c4aa3b12ddf9c75e538
DIST pyrate_limiter-4.0.2.tar.gz.provenance 9565 BLAKE2B a4adc53f55f5a5be12df5b621195738b9f48a182829aedc32bcca466bc0a8b7747bba6ccf39dd8c4a244cec061db2f8d7433812b978d93f1f04fb0357278da97 SHA512 6b18c26dec90f4540f6f233e59b316a85fec0b3989d3f899cc7472cc1682b95987c468e001516dbdcd9c82552c8697ba5d88855f74a8c3b5e370c7fac4345392

View File

@@ -1,75 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( pypy3_11 python3_{11..13} )
inherit distutils-r1 pypi
DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
HOMEPAGE="
https://github.com/vutran1710/PyrateLimiter/
https://pypi.org/project/pyrate-limiter/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/filelock[${PYTHON_USEDEP}]
dev-python/redis[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-db/redis
dev-python/pyyaml[${PYTHON_USEDEP}]
)
"
EPYTEST_DESELECT=(
# Optional dependency redis-py-cluster not packaged
"tests/test_02.py::test_redis_cluster"
)
EPYTEST_PLUGINS=( pytest-{asyncio,rerunfailures} )
EPYTEST_RERUNS=5
: "${EPYTEST_TIMEOUT:=60}"
EPYTEST_XDIST=1
distutils_enable_sphinx docs \
dev-python/sphinx-autodoc-typehints \
dev-python/sphinx-copybutton \
dev-python/furo \
dev-python/myst-parser \
dev-python/sphinxcontrib-apidoc
distutils_enable_tests pytest
src_test() {
local redis_pid="${T}"/redis.pid
local redis_port=6379
# Spawn Redis itself for testing purposes
einfo "Spawning Redis"
einfo "NOTE: Port ${redis_port} must be free"
"${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server"
daemonize yes
pidfile ${redis_pid}
port ${redis_port}
bind 127.0.0.1 ::1
${extra_conf}
EOF
# Run the tests
distutils-r1_src_test
# Clean up afterwards
kill "$(<"${redis_pid}")" || die
}
python_test() {
# postgres tests require psycopg-pool
epytest -k "not postgres"
}