diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-26 11:27:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-26 11:27:54 +0100 |
commit | 25e2c97a4a6f12a367115508fc86d34fe76a6f5e (patch) | |
tree | 68acc191d796190f572dc374002717fec321e616 /dev-python/fakeredis | |
parent | 1aa38370b2506ce90ad64cd4e18968d6612ebea5 (diff) |
gentoo auto-resync : 26:09:2023 - 11:27:54
Diffstat (limited to 'dev-python/fakeredis')
-rw-r--r-- | dev-python/fakeredis/Manifest | 2 | ||||
-rw-r--r-- | dev-python/fakeredis/fakeredis-2.19.0.ebuild | 83 |
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest index 4cc63de78c5c..a337a9960fc5 100644 --- a/dev-python/fakeredis/Manifest +++ b/dev-python/fakeredis/Manifest @@ -1,5 +1,7 @@ DIST fakeredis-2.18.0.tar.gz 111601 BLAKE2B 56a7d2e113fa0d2d98f95b4e8d5b7462a311e2e505a19cd5d3067650a0b950ad272b86aae42b748e5854c7f24287fac03f8c61865c05612697324e9f328dfbe9 SHA512 2d67866bbac8f8a12a6414cfae0a8ba925b769c0cb420bfe74ca233de40792f369678752a0d71ce4c0c145f03944fb071ecb234ee40f3f52005587db1929134e DIST fakeredis-2.18.1.tar.gz 113919 BLAKE2B da6fa335a755c5f9675fc89ecf714af37c3e56c93332d6a8003130c435fe1b5abfa426851f293ada1109f1aec439c2daa70d0bec8681077d28ffae62c34cb29f SHA512 78ad0e7b25519de60ad11a24c6fcd2ffc938014ec9c040cbea9d2155f3670fe18c65cf3387bc21b856e7caba1df5ef1e79a6ef77ab7201c1eb68949f775002c8 +DIST fakeredis-2.19.0.tar.gz 117030 BLAKE2B 05976b1011bb3933b275755498cf7b893afc93cbbb0bfcce67d01692f1ebc4bee1b6cddd406eaca4d46f595cde2805f43e767aef1ca491ccfc4afcf7b983b444 SHA512 1800933b86369c7b857e7609e2a6af8d469c713a23bfd792fc8df2695e8aabcb2cd1fa6138f7eb908fbecc9c6e2c242f7da47864067498c5e180956b578985aa EBUILD fakeredis-2.18.0.ebuild 1936 BLAKE2B 52420a8751cd0dfef8e72b327ef46fcfd4c2d7573c59b49d1b7dce891b93491c63fccd3f56feec9d781762bc587a79d378dd309541ef2d84a03c3819b507a425 SHA512 59fd320c46eeb78cc495fd55b57cc893b5aa7a9478c0bf70b73d9d3d0d399b97b1b39526c42f45cfa378702ffa409d332cf4324cb05f58bbff082289e7a214c2 EBUILD fakeredis-2.18.1.ebuild 2045 BLAKE2B dd95b063ef62361cdcba3aeb8154ac37bffdaade6e70439c8d068bccfdeb4bde1a48f0b44069f03541ef5a32c9242bd47ee0d627757d59ebc74f16b0e6cbcb30 SHA512 56f19555c0f2ef7aa7a96309c302f67a665078303cdce35481aa22ef093ab83e1dff729c5d2c2ce4984310819c11bfad3f429aba4106df9162ae171091c554f3 +EBUILD fakeredis-2.19.0.ebuild 2131 BLAKE2B 80f6a3cab42d700a92dc5415b4f91fffdc5ba60043f8ae8b10d381c22a860aab42840749332c5a0a15ccb3b63cdcace952af108d762b086b71a580dfc9d94099 SHA512 f30767e1defe173be89edc3ab7b16c9fc3f74eb9245eb7d6df07b6abe1b3889d3ebfa633ee67bed80a7ff88428eb9d32569712959bce7c80a7dfd1f11e0c9cc9 MISC metadata.xml 373 BLAKE2B 1de33db59658e6190cd0346be58208cae6c9143a52f49dc289e68aaa0d860b5bd68dfb54f2e0b005f60a67f5caa430e2ce94fc69e64bd27e1bbebb07ad29e602 SHA512 24bfcf4919363fef45c182b6de66221e580ee0e9e99ce46e91b767655dc0b6f8a9fa6c3512ba84d1040698c43a0b6a853ad8d63c1ee5fbc00a1d192defb24db5 diff --git a/dev-python/fakeredis/fakeredis-2.19.0.ebuild b/dev-python/fakeredis/fakeredis-2.19.0.ebuild new file mode 100644 index 000000000000..be7b925f5e88 --- /dev/null +++ b/dev-python/fakeredis/fakeredis-2.19.0.ebuild @@ -0,0 +1,83 @@ +# 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[${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 + # new redis-server? + "test/test_mixins/test_pubsub_commands.py::test_pubsub_shardnumsub[StrictRedis]" + # json ext + test/test_json/test_json.py + test/test_json/test_json_arr_commands.py + ) + 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 +} |