dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-12-30 22:26:17 +01:00
parent 20d12f205d
commit 008669c531
2 changed files with 0 additions and 77 deletions

View File

@@ -1,2 +1 @@
DIST fakeredis-1.6.1.gh.tar.gz 70171 BLAKE2B f10ac8aaec73871153ac7557a40984e6752b7e3720c1890380bda4aad828003403b6207c5e4f4ace18814e6ad33355acca08ff53cc33cb43acb5d9955ea6e5fc SHA512 1a8718d277d15a887901ed29691af83a2aea57605edf8cf2dbdc00c397a62ea8c1ed21440adadcda431a8ae8f33c85b549c5458a958b1fb74996e54ab612cd13
DIST fakeredis-1.7.0.gh.tar.gz 71108 BLAKE2B 64b4c8aa2891ac6afd7789e5a8dce4d1a0ccd6a5083b410fd051d871d4ea9748e9d687eb27bbaeea646747f4bf170089d3ef711d6db0d6a88d8b7e755d165b6d SHA512 a8c67929e63196fea45b85097aaf6bf7402679510e471a8d13bdc0f7320e983107416d3e515fa85b1d6a6217fb82dbda7b4425c3c80ac54a1ac50eee875b0fbd

View File

@@ -1,76 +0,0 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( pypy3 python3_{8..10} )
inherit distutils-r1 optfeature
DESCRIPTION="Fake implementation of redis API for testing purposes"
HOMEPAGE="
https://github.com/jamesls/fakeredis/
https://pypi.org/project/fakeredis/"
SRC_URI="
https://github.com/jamesls/fakeredis/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~sparc x86"
RDEPEND="
dev-python/redis-py[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/sortedcontainers[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-db/redis
dev-python/aioredis[${PYTHON_USEDEP}]
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
EPYTEST_DESELECT=(
test/test_aioredis2.py::test_blocking_unblock
test/test_aioredis2.py::test_pubsub
"test/test_aioredis2.py::test_repr[fake]"
test/test_hypothesis.py::TestJoint::test
test/test_hypothesis.py::TestFuzz::test
)
python_test() {
local args=(
# tests requiring lupa (lua support)
-k 'not test_eval and not test_lua and not test_script'
)
epytest "${args[@]}"
}
src_test() {
local redis_pid="${T}"/redis.pid
local redis_port=6379
local redis_test_config="
daemonize yes
pidfile ${redis_pid}
port ${redis_port}
bind 127.0.0.1
"
einfo "Spawning Redis"
einfo "NOTE: Port ${redis_port} must be free"
"${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die
# Run the tests
distutils-r1_src_test
# Clean up afterwards
kill "$(<"${redis_pid}")" || die
}
pkg_postinst() {
optfeature "Mock aioredis" dev-python/aioredis
}