summaryrefslogtreecommitdiff
path: root/dev-python/fakeredis
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-20 13:16:21 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-20 13:16:21 +0100
commit332b9eb4903f99b0e65722058ce481fdc21b93d3 (patch)
treefef4ca14ec13f6bc1b3f532a6b2c19f7db4f3921 /dev-python/fakeredis
parent7d1fc8f13082082c2539f20beadcf37089543b8e (diff)
gentoo auto-resync : 20:06:2023 - 13:16:21
Diffstat (limited to 'dev-python/fakeredis')
-rw-r--r--dev-python/fakeredis/Manifest2
-rw-r--r--dev-python/fakeredis/fakeredis-2.15.0.ebuild78
2 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 37cfd5b77f43..4a5d239ca640 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -2,8 +2,10 @@ DIST fakeredis-2.12.1.tar.gz 97486 BLAKE2B 5207d9b946eb5720083b045e29b960cc2eb3a
DIST fakeredis-2.13.0.tar.gz 98084 BLAKE2B c147332f2575be7f63aef48199920480d550efbadeee9de255b17cb9c7d6791a059ee3d4bdc500ecf44dcc22de6fdd11d170daf3e19de8e910833b1de12232c6 SHA512 30335e456f7ac2498fc175f9fd154a766064a05e6eb996df9d533412525a3d4279c9359ac5e43a2b9ec9bb1d653639aa10d4e1765a4e4c1bc84f764fa1efdb42
DIST fakeredis-2.14.0.tar.gz 101919 BLAKE2B 7582b3986bc7102a02a69a321e539dc15d425d918397e896eed9d544816697c55e938511ae69201eae3a5c1e814afe7f0c472d48a249be976178a7c0279472ae SHA512 a63b46420d9ca2348b0ed0f4ef2c0227a4dbc46efef2fae5beae2513cc77732be830669910f14d59ecb2f1fa3b698e29855658239fea4ff458c4ba62fd9fa4cb
DIST fakeredis-2.14.1.tar.gz 101789 BLAKE2B 2e38319aa8bb23c9cd2196d8dbcf489fead785bffa3b464b7e420f28b247c911ea9f3775328f8fec7c26b1a77e32d6a21acf627fe7b603f311b0f3820fa06b54 SHA512 71b7f034ad5ccdd569052a82d2e15ec21db4b5a26bc5c660f76bb88c0b7aaa252234e899644dfd63086aaf8a9400ea13acc6439fdca08f84c8392949815f33d2
+DIST fakeredis-2.15.0.tar.gz 108160 BLAKE2B aaf135ffc395d6304c2f95b0339610f506382e865039f647a9af3fd9e3fa8cd9b9f6ea6557670fd61e949136f35de10b0fad63a1813d59f5b3697dd200195960 SHA512 59bc74a328b85cebcf0ae61d70e4ce26f3cdde3b82de6746f6b33229a6185d542db1e2ddd7c8ea600db69a6c630dbf81998ba108982da33487fe5ad2068abb29
EBUILD fakeredis-2.12.1.ebuild 1899 BLAKE2B f7aa1f65d8fa405ea9eb062f735fa186207a6ddb22f2f9cdfc72722330d494b80f161c2347d061475bbf1bf8582908c1ee4d412fe61bd694eb7279751b5a49c7 SHA512 a3f128057a020123604be6a9e875fd93782c261da078f2ea5f6fa24ea99a2d0f03ff8e3f6cf14b4593d4a38cf0ced7725f77de711812682653c9293c80648058
EBUILD fakeredis-2.13.0.ebuild 1904 BLAKE2B c079698481dd05ac14e11e8631def05b8183099bcc7f5f93aa8380345b300ba72e9e6de7cd5e8e57b07b99089717977cbd6a2f37615e4656166b9e8dcb9a03b0 SHA512 6336e5b7e333f519bd8589c663c7a83cbf016dfb58594114b49424b69a1a0d50bf26c75bdb18b16c7d850158773e745d76cce2560b9cb71c93ab91987ba06141
EBUILD fakeredis-2.14.0.ebuild 1944 BLAKE2B 189d0a8f66ced41ec140f397d7855949218bc4a95c897b4b266c8885599c4647eb13a811b010da5a935bee7f6b45c1ae28a822a5225015875b0692397af74289 SHA512 83a3b8611104f145fb12768478ab7c80ec92e8e9b863bab92b69bf06c900af00cf58ca6c62a500371207bb80dededaf33ce2d2749112241b8724dbe5bbc98708
EBUILD fakeredis-2.14.1.ebuild 1944 BLAKE2B 189d0a8f66ced41ec140f397d7855949218bc4a95c897b4b266c8885599c4647eb13a811b010da5a935bee7f6b45c1ae28a822a5225015875b0692397af74289 SHA512 83a3b8611104f145fb12768478ab7c80ec92e8e9b863bab92b69bf06c900af00cf58ca6c62a500371207bb80dededaf33ce2d2749112241b8724dbe5bbc98708
+EBUILD fakeredis-2.15.0.ebuild 1944 BLAKE2B 189d0a8f66ced41ec140f397d7855949218bc4a95c897b4b266c8885599c4647eb13a811b010da5a935bee7f6b45c1ae28a822a5225015875b0692397af74289 SHA512 83a3b8611104f145fb12768478ab7c80ec92e8e9b863bab92b69bf06c900af00cf58ca6c62a500371207bb80dededaf33ce2d2749112241b8724dbe5bbc98708
MISC metadata.xml 373 BLAKE2B 1de33db59658e6190cd0346be58208cae6c9143a52f49dc289e68aaa0d860b5bd68dfb54f2e0b005f60a67f5caa430e2ce94fc69e64bd27e1bbebb07ad29e602 SHA512 24bfcf4919363fef45c182b6de66221e580ee0e9e99ce46e91b767655dc0b6f8a9fa6c3512ba84d1040698c43a0b6a853ad8d63c1ee5fbc00a1d192defb24db5
diff --git a/dev-python/fakeredis/fakeredis-2.15.0.ebuild b/dev-python/fakeredis/fakeredis-2.15.0.ebuild
new file mode 100644
index 000000000000..10e805e1986c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.15.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+ https://github.com/cunla/fakeredis-py/
+ https://pypi.org/project/fakeredis/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+ dev-python/packaging[${PYTHON_USEDEP}]
+ >=dev-python/redis-4.2[${PYTHON_USEDEP}]
+ <dev-python/sortedcontainers-3[${PYTHON_USEDEP}]
+ >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-db/redis
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # also lupa
+ test/test_aioredis2.py::test_failed_script_error
+ # TODO
+ "test/test_fakeredis.py::test_set_get_nx[StrictRedis]"
+ "test/test_fakeredis.py::test_lpop_count[StrictRedis]"
+ "test/test_fakeredis.py::test_rpop_count[StrictRedis]"
+ "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]"
+ "test/test_mixins/test_pubsub_commands.py::test_pubsub_channels[StrictRedis]"
+ test/test_mixins/test_set_commands.py::test_smismember_wrong_type
+ )
+ local EPYTEST_IGNORE=(
+ # these tests fail a lot...
+ test/test_hypothesis.py
+ )
+ 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
+
+ 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
+ EOF
+
+ # Run the tests
+ distutils-r1_src_test
+
+ # Clean up afterwards
+ kill "$(<"${redis_pid}")" || die
+}