[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-05-19 Thread Michał Górny
commit: f336b7dc58751e5c70dc5ec5bd339253cfff1533
Author: Michał Górny  gentoo  org>
AuthorDate: Sun May 19 05:20:57 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun May 19 06:02:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f336b7dc

dev-python/fakeredis: Bump to 2.23.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.23.2.ebuild | 89 
 2 files changed, 90 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index bd277ead80e3..7e67f79a0354 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-2.22.0.tar.gz 130074 BLAKE2B 
28ccc177c8f2d47515ff91834901b8fdf9559b83b1e7665101b5f17e57d65a3c820af6be21251257f35a7db858c22fac3395cfb550b724e020e96778ad380008
 SHA512 
a533f26c2a4289b1b4d398ee426f44c93f01a4aac0dc841854bf94674d7e0738fde38ea896280d4e83bf16041dba505db13e3fa3837a912dc872b1d36c05cc6e
 DIST fakeredis-2.23.0.tar.gz 133649 BLAKE2B 
4dcfb0b52f18101311cd6513fa236ecc6100d12fdfceb9eef12e40ea4fc2a8148dd93e2ad9a68cf5347a3048a95136b7fcbedab2ea5348fa789462b9fee6f920
 SHA512 
8c3b4ad153232101203811d2891985474fe17a86693217cb58e694ded3c309d101a6bef52e1b544bbc489a0c355792bdbdbed220dca00d0f50afb2fb1c6438ce
 DIST fakeredis-2.23.1.tar.gz 132829 BLAKE2B 
05bc696f22cd3280728cf96614ac68fa9243242934c2d25e09fc20a569295adea6b75efb890cc172b1a0c75b9d96e9a1b30c9c04a01bfca508609b3a6eaad5c5
 SHA512 
5b8d256460d5930896ee1d8b3259decfdee12d0699da852cf1d6ce2c00d70cb404840808c5385ebae8d4ba7accd744f7f969bee4fc73320f55fc34558dee1294
+DIST fakeredis-2.23.2.tar.gz 132956 BLAKE2B 
48053663d6260d1153b57893795a97b8e72e21cad57907b006bb8be605cce56c474b1a6bb32d455f034da52bcf391d56139ed0c0bdff7f3c367cc0c365ebca40
 SHA512 
0994f7c7e955a8cc7b1046f62d37841ea592022f21c34cf1f7d3bb335ba88bda5abf08fa002b4b7c9f0b09a6837a38b1b49cec44a3185e16ab4d4711ad4f95d4

diff --git a/dev-python/fakeredis/fakeredis-2.23.2.ebuild 
b/dev-python/fakeredis/fakeredis-2.23.2.ebuild
new file mode 100644
index ..5bf1b6f5ea36
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.23.2.ebuild
@@ -0,0 +1,89 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+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-2[${PYTHON_USEDEP}]
+   $(python_gen_cond_dep '
+   dev-python/typing-extensions[${PYTHON_USEDEP}]
+   ' 3.10)
+"
+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
+   # tdigest ext?
+   
'test/test_mixins/test_server_commands.py::test_command[FakeStrictRedis]'
+   )
+   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'
+   )
+   # Note: this package is not xdist-friendly
+   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}
+   

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-05-18 Thread Michał Górny
commit: 8cefecaf95742bf3e6f4993fdd986236af9c05ba
Author: Michał Górny  gentoo  org>
AuthorDate: Sat May 18 16:01:30 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat May 18 16:10:45 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cefecaf

dev-python/fakeredis: Enable py3.13

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/fakeredis-2.23.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.23.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.23.1.ebuild
index fe8a86c29b94..5bf1b6f5ea36 100644
--- a/dev-python/fakeredis/fakeredis-2.23.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.23.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{10..12} )
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
 
 inherit distutils-r1 pypi
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-05-12 Thread Michał Górny
commit: 980b5282a1dd2c7b56ceebf1f02289822b89182a
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May 13 01:04:18 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May 13 02:12:06 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=980b5282

dev-python/fakeredis: Bump to 2.23.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.23.1.ebuild | 89 
 2 files changed, 90 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 1f695fecfd2d..bd277ead80e3 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-2.22.0.tar.gz 130074 BLAKE2B 
28ccc177c8f2d47515ff91834901b8fdf9559b83b1e7665101b5f17e57d65a3c820af6be21251257f35a7db858c22fac3395cfb550b724e020e96778ad380008
 SHA512 
a533f26c2a4289b1b4d398ee426f44c93f01a4aac0dc841854bf94674d7e0738fde38ea896280d4e83bf16041dba505db13e3fa3837a912dc872b1d36c05cc6e
 DIST fakeredis-2.23.0.tar.gz 133649 BLAKE2B 
4dcfb0b52f18101311cd6513fa236ecc6100d12fdfceb9eef12e40ea4fc2a8148dd93e2ad9a68cf5347a3048a95136b7fcbedab2ea5348fa789462b9fee6f920
 SHA512 
8c3b4ad153232101203811d2891985474fe17a86693217cb58e694ded3c309d101a6bef52e1b544bbc489a0c355792bdbdbed220dca00d0f50afb2fb1c6438ce
+DIST fakeredis-2.23.1.tar.gz 132829 BLAKE2B 
05bc696f22cd3280728cf96614ac68fa9243242934c2d25e09fc20a569295adea6b75efb890cc172b1a0c75b9d96e9a1b30c9c04a01bfca508609b3a6eaad5c5
 SHA512 
5b8d256460d5930896ee1d8b3259decfdee12d0699da852cf1d6ce2c00d70cb404840808c5385ebae8d4ba7accd744f7f969bee4fc73320f55fc34558dee1294

diff --git a/dev-python/fakeredis/fakeredis-2.23.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.23.1.ebuild
new file mode 100644
index ..fe8a86c29b94
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.23.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 2020-2024 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-2[${PYTHON_USEDEP}]
+   $(python_gen_cond_dep '
+   dev-python/typing-extensions[${PYTHON_USEDEP}]
+   ' 3.10)
+"
+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
+   # tdigest ext?
+   
'test/test_mixins/test_server_commands.py::test_command[FakeStrictRedis]'
+   )
+   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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-05-07 Thread Michał Górny
commit: 17e3e951ba3a7eede6a2148c3a7b1b7b6e910134
Author: Michał Górny  gentoo  org>
AuthorDate: Tue May  7 17:14:56 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue May  7 17:45:32 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17e3e951

dev-python/fakeredis: Bump to 2.23.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.23.0.ebuild | 89 
 2 files changed, 90 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 29ee83fb352e..1f695fecfd2d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-2.22.0.tar.gz 130074 BLAKE2B 
28ccc177c8f2d47515ff91834901b8fdf9559b83b1e7665101b5f17e57d65a3c820af6be21251257f35a7db858c22fac3395cfb550b724e020e96778ad380008
 SHA512 
a533f26c2a4289b1b4d398ee426f44c93f01a4aac0dc841854bf94674d7e0738fde38ea896280d4e83bf16041dba505db13e3fa3837a912dc872b1d36c05cc6e
+DIST fakeredis-2.23.0.tar.gz 133649 BLAKE2B 
4dcfb0b52f18101311cd6513fa236ecc6100d12fdfceb9eef12e40ea4fc2a8148dd93e2ad9a68cf5347a3048a95136b7fcbedab2ea5348fa789462b9fee6f920
 SHA512 
8c3b4ad153232101203811d2891985474fe17a86693217cb58e694ded3c309d101a6bef52e1b544bbc489a0c355792bdbdbed220dca00d0f50afb2fb1c6438ce

diff --git a/dev-python/fakeredis/fakeredis-2.23.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.23.0.ebuild
new file mode 100644
index ..fe8a86c29b94
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.23.0.ebuild
@@ -0,0 +1,89 @@
+# Copyright 2020-2024 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-2[${PYTHON_USEDEP}]
+   $(python_gen_cond_dep '
+   dev-python/typing-extensions[${PYTHON_USEDEP}]
+   ' 3.10)
+"
+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
+   # tdigest ext?
+   
'test/test_mixins/test_server_commands.py::test_command[FakeStrictRedis]'
+   )
+   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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-05-04 Thread Michał Górny
commit: 1422f32b57bf7b55c705501e3df604af47b11909
Author: Michał Górny  gentoo  org>
AuthorDate: Sat May  4 08:57:56 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat May  4 11:31:53 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1422f32b

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 -
 dev-python/fakeredis/fakeredis-2.21.3.ebuild | 84 
 2 files changed, 85 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 6b253b4700b4..29ee83fb352e 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1 @@
-DIST fakeredis-2.21.3.tar.gz 129013 BLAKE2B 
9c56fadc1090cc886fe08b53404c21b1659f4f9c9f5c3c168f02a7ac71e7e660924aec8ad82dbc18d8c2c11245b4548e71ec68d5e83a0a9fd4e5503b85be0cc0
 SHA512 
aade7596729b7100ef58a2a87cbd011fd4e60970c0c310ca70748e03b787fd3e0ef6d5c54739e91c839f9451a12ec029d441e3cfb4ed3238425b2cce526d8030
 DIST fakeredis-2.22.0.tar.gz 130074 BLAKE2B 
28ccc177c8f2d47515ff91834901b8fdf9559b83b1e7665101b5f17e57d65a3c820af6be21251257f35a7db858c22fac3395cfb550b724e020e96778ad380008
 SHA512 
a533f26c2a4289b1b4d398ee426f44c93f01a4aac0dc841854bf94674d7e0738fde38ea896280d4e83bf16041dba505db13e3fa3837a912dc872b1d36c05cc6e

diff --git a/dev-python/fakeredis/fakeredis-2.21.3.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.3.ebuild
deleted file mode 100644
index d0865eabf695..
--- a/dev-python/fakeredis/fakeredis-2.21.3.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 2020-2024 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-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'
-   )
-   # Note: this package is not xdist-friendly
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-05-04 Thread Arthur Zamarin
commit: e32aea29c89084e8af8d09cb61a04f97e77144b6
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat May  4 07:51:24 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat May  4 07:51:24 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e32aea29

dev-python/fakeredis: Stabilize 2.22.0 ALLARCHES, #931163

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-2.22.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.22.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.22.0.ebuild
index 916767f1330c..d0865eabf695 100644
--- a/dev-python/fakeredis/fakeredis-2.22.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.22.0.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-04-19 Thread Michał Górny
commit: 39f747e9fa3b2df5c439c69e69b890de3316df4a
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Apr 20 05:14:15 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Apr 20 05:40:43 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39f747e9

dev-python/fakeredis: Bump to 2.22.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.22.0.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 4d773610816d..6b253b4700b4 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-2.21.3.tar.gz 129013 BLAKE2B 
9c56fadc1090cc886fe08b53404c21b1659f4f9c9f5c3c168f02a7ac71e7e660924aec8ad82dbc18d8c2c11245b4548e71ec68d5e83a0a9fd4e5503b85be0cc0
 SHA512 
aade7596729b7100ef58a2a87cbd011fd4e60970c0c310ca70748e03b787fd3e0ef6d5c54739e91c839f9451a12ec029d441e3cfb4ed3238425b2cce526d8030
+DIST fakeredis-2.22.0.tar.gz 130074 BLAKE2B 
28ccc177c8f2d47515ff91834901b8fdf9559b83b1e7665101b5f17e57d65a3c820af6be21251257f35a7db858c22fac3395cfb550b724e020e96778ad380008
 SHA512 
a533f26c2a4289b1b4d398ee426f44c93f01a4aac0dc841854bf94674d7e0738fde38ea896280d4e83bf16041dba505db13e3fa3837a912dc872b1d36c05cc6e

diff --git a/dev-python/fakeredis/fakeredis-2.22.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.22.0.ebuild
new file mode 100644
index ..916767f1330c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.22.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2020-2024 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-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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-03-30 Thread Michał Górny
commit: 3c7ec114a23e41036e3f8bb9be9f450e35df2323
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Mar 30 14:34:03 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Mar 30 14:34:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c7ec114

dev-python/fakeredis: Stabilize 2.21.3 ALLARCHES, #928177

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/fakeredis-2.21.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.21.3.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.3.ebuild
index 916767f1330c..d0865eabf695 100644
--- a/dev-python/fakeredis/fakeredis-2.21.3.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.21.3.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-03-12 Thread Michał Górny
commit: 44c985c21df546d89f4c3679175a3570d1afcc9c
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Mar 12 16:10:45 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Mar 12 17:51:39 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44c985c2

dev-python/fakeredis: Bump to 2.21.3

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.21.3.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 92fd3d40ccae..c1e15263907d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-2.21.1.tar.gz 128540 BLAKE2B 
042c7189f4437149f099eb2bed9dc93cfaea3eb582dd40aaad55bca6c6c4f679a108b3e36006e537be469a3879085f75e0f5c0c7272d2131c431a4483e15cefc
 SHA512 
ba51079896ca345805a0b2474922a41b7c1526123ac3ff0904d3448512b75515b6b11d7e8ec8fe7abdde94a9ac281aaf56d7344809c18c28ad081af4a542a57b
 DIST fakeredis-2.21.2.tar.gz 128965 BLAKE2B 
20891c5a34ac5697435a8b05578fc3ffc1a0b008726ed1836929d6e185aff22073382fd0b80d08f4045d85e3d0da9b682900de79b50864ff7682943a634b2970
 SHA512 
0ba5e31e403670e864a5364498e26e818641d0fbba59554b78bd0d82a2d944a730d519184c132bdb367761b830bb3a55b43a957770f833891cccd11d528ff540
+DIST fakeredis-2.21.3.tar.gz 129013 BLAKE2B 
9c56fadc1090cc886fe08b53404c21b1659f4f9c9f5c3c168f02a7ac71e7e660924aec8ad82dbc18d8c2c11245b4548e71ec68d5e83a0a9fd4e5503b85be0cc0
 SHA512 
aade7596729b7100ef58a2a87cbd011fd4e60970c0c310ca70748e03b787fd3e0ef6d5c54739e91c839f9451a12ec029d441e3cfb4ed3238425b2cce526d8030

diff --git a/dev-python/fakeredis/fakeredis-2.21.3.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.3.ebuild
new file mode 100644
index ..916767f1330c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.21.3.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2020-2024 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-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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-03-10 Thread Michał Górny
commit: d05e7e805c65fe9ab588a676fe31ea8c732d83cd
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Mar 11 03:15:19 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Mar 11 03:53:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d05e7e80

dev-python/fakeredis: Bump to 2.21.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.21.2.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 252676a997db..92fd3d40ccae 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-2.21.1.tar.gz 128540 BLAKE2B 
042c7189f4437149f099eb2bed9dc93cfaea3eb582dd40aaad55bca6c6c4f679a108b3e36006e537be469a3879085f75e0f5c0c7272d2131c431a4483e15cefc
 SHA512 
ba51079896ca345805a0b2474922a41b7c1526123ac3ff0904d3448512b75515b6b11d7e8ec8fe7abdde94a9ac281aaf56d7344809c18c28ad081af4a542a57b
+DIST fakeredis-2.21.2.tar.gz 128965 BLAKE2B 
20891c5a34ac5697435a8b05578fc3ffc1a0b008726ed1836929d6e185aff22073382fd0b80d08f4045d85e3d0da9b682900de79b50864ff7682943a634b2970
 SHA512 
0ba5e31e403670e864a5364498e26e818641d0fbba59554b78bd0d82a2d944a730d519184c132bdb367761b830bb3a55b43a957770f833891cccd11d528ff540

diff --git a/dev-python/fakeredis/fakeredis-2.21.2.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.2.ebuild
new file mode 100644
index ..916767f1330c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.21.2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2020-2024 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-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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-03-02 Thread Michał Górny
commit: 8cae5db205ea8329aa886de50486272249e3df1a
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Mar  2 11:39:48 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Mar  2 11:43:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cae5db2

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 -
 dev-python/fakeredis/fakeredis-2.21.0.ebuild | 84 
 2 files changed, 85 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index db43b804db6e..252676a997db 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1 @@
-DIST fakeredis-2.21.0.tar.gz 128492 BLAKE2B 
a7352e1518a23512c8410ab199ecea5beb28b93162d71ea95551a9267441c5487e676372951c950401dcb4003f066e80a03521ab2176059409c487a60a2e
 SHA512 
5ef46fcd16e5347cb6a4ef1f99140385ed0d1809ab584df952e3050e4f115b34b37387efb7d01521d433a32262e0729eef266a98b1d1ff46250b4545052e0a9e
 DIST fakeredis-2.21.1.tar.gz 128540 BLAKE2B 
042c7189f4437149f099eb2bed9dc93cfaea3eb582dd40aaad55bca6c6c4f679a108b3e36006e537be469a3879085f75e0f5c0c7272d2131c431a4483e15cefc
 SHA512 
ba51079896ca345805a0b2474922a41b7c1526123ac3ff0904d3448512b75515b6b11d7e8ec8fe7abdde94a9ac281aaf56d7344809c18c28ad081af4a542a57b

diff --git a/dev-python/fakeredis/fakeredis-2.21.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.0.ebuild
deleted file mode 100644
index d0865eabf695..
--- a/dev-python/fakeredis/fakeredis-2.21.0.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 2020-2024 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-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'
-   )
-   # Note: this package is not xdist-friendly
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-03-02 Thread Arthur Zamarin
commit: bfe3983d10ad20ed3961b0e1f5a1c26ba3b89692
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  2 11:17:59 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  2 11:17:59 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfe3983d

dev-python/fakeredis: Stabilize 2.21.1 ALLARCHES, #925978

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-2.21.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.21.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.1.ebuild
index 916767f1330c..d0865eabf695 100644
--- a/dev-python/fakeredis/fakeredis-2.21.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.21.1.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-02-15 Thread Michał Górny
commit: fbfb02d2ae2d8e0d1120269bf9145ce7bde2b03c
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Feb 16 05:17:12 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Feb 16 05:40:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbfb02d2

dev-python/fakeredis: Bump to 2.21.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.21.1.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index e8a4d576af1f..db43b804db6e 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-2.21.0.tar.gz 128492 BLAKE2B 
a7352e1518a23512c8410ab199ecea5beb28b93162d71ea95551a9267441c5487e676372951c950401dcb4003f066e80a03521ab2176059409c487a60a2e
 SHA512 
5ef46fcd16e5347cb6a4ef1f99140385ed0d1809ab584df952e3050e4f115b34b37387efb7d01521d433a32262e0729eef266a98b1d1ff46250b4545052e0a9e
+DIST fakeredis-2.21.1.tar.gz 128540 BLAKE2B 
042c7189f4437149f099eb2bed9dc93cfaea3eb582dd40aaad55bca6c6c4f679a108b3e36006e537be469a3879085f75e0f5c0c7272d2131c431a4483e15cefc
 SHA512 
ba51079896ca345805a0b2474922a41b7c1526123ac3ff0904d3448512b75515b6b11d7e8ec8fe7abdde94a9ac281aaf56d7344809c18c28ad081af4a542a57b

diff --git a/dev-python/fakeredis/fakeredis-2.21.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.1.ebuild
new file mode 100644
index ..916767f1330c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.21.1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2020-2024 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-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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-02-14 Thread Michał Górny
commit: 89c64f422695c9e3d1bc2ad67c5f4677bf97462e
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Feb 14 12:31:05 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Feb 14 12:31:05 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89c64f42

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 -
 dev-python/fakeredis/fakeredis-2.20.1.ebuild | 84 
 2 files changed, 85 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index c4faaf639543..e8a4d576af1f 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1 @@
-DIST fakeredis-2.20.1.tar.gz 122874 BLAKE2B 
65404806c15c9fb9b1a59f04ef64804fae9034ce53658058edea03fc9ca5b3348129a143d6f86566eebcb3b052316ce120d8d04b6ad52d8c5ede81db6906713e
 SHA512 
7ead4a7b5eed318380471ef421a0c59a33142067a104f5e0530e066b62a12f26011233366619ea068cfa71eaf4c617e89a94d62f1a2cda366783e7614e5aa32e
 DIST fakeredis-2.21.0.tar.gz 128492 BLAKE2B 
a7352e1518a23512c8410ab199ecea5beb28b93162d71ea95551a9267441c5487e676372951c950401dcb4003f066e80a03521ab2176059409c487a60a2e
 SHA512 
5ef46fcd16e5347cb6a4ef1f99140385ed0d1809ab584df952e3050e4f115b34b37387efb7d01521d433a32262e0729eef266a98b1d1ff46250b4545052e0a9e

diff --git a/dev-python/fakeredis/fakeredis-2.20.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.20.1.ebuild
deleted file mode 100644
index d0865eabf695..
--- a/dev-python/fakeredis/fakeredis-2.20.1.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 2020-2024 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-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'
-   )
-   # Note: this package is not xdist-friendly
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-02-14 Thread Michał Górny
commit: df2a852f61efc5bdc033d71b60ccf80084ff6750
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Feb 14 12:25:40 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Feb 14 12:26:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df2a852f

dev-python/fakeredis: Stabilize 2.21.0 ALLARCHES, #924537

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/fakeredis-2.21.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.21.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.0.ebuild
index 916767f1330c..d0865eabf695 100644
--- a/dev-python/fakeredis/fakeredis-2.21.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.21.0.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2024-01-30 Thread Michał Górny
commit: 3539d948d40986ed561fe3ae182325cdc2acd7c7
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Jan 31 06:10:09 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jan 31 06:10:09 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3539d948

dev-python/fakeredis: Bump to 2.21.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.21.0.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 3c425f13f1d7..c4faaf639543 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-2.20.1.tar.gz 122874 BLAKE2B 
65404806c15c9fb9b1a59f04ef64804fae9034ce53658058edea03fc9ca5b3348129a143d6f86566eebcb3b052316ce120d8d04b6ad52d8c5ede81db6906713e
 SHA512 
7ead4a7b5eed318380471ef421a0c59a33142067a104f5e0530e066b62a12f26011233366619ea068cfa71eaf4c617e89a94d62f1a2cda366783e7614e5aa32e
+DIST fakeredis-2.21.0.tar.gz 128492 BLAKE2B 
a7352e1518a23512c8410ab199ecea5beb28b93162d71ea95551a9267441c5487e676372951c950401dcb4003f066e80a03521ab2176059409c487a60a2e
 SHA512 
5ef46fcd16e5347cb6a4ef1f99140385ed0d1809ab584df952e3050e4f115b34b37387efb7d01521d433a32262e0729eef266a98b1d1ff46250b4545052e0a9e

diff --git a/dev-python/fakeredis/fakeredis-2.21.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.21.0.ebuild
new file mode 100644
index ..916767f1330c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.21.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2020-2024 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-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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-12-30 Thread Michał Górny
commit: 445df981820262fcb3b18743cc6ba027a9420206
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Dec 30 14:37:21 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Dec 30 14:40:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=445df981

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 -
 dev-python/fakeredis/fakeredis-2.20.0.ebuild | 84 
 2 files changed, 85 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 073adb9ec77f..3c425f13f1d7 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1 @@
-DIST fakeredis-2.20.0.tar.gz 122679 BLAKE2B 
2fd982761fe6e8bd66d2d93b7140b9b97e20d33e40827ac9ab7d050d6e9814891e8a1f95a4f789bc78a1589fe215b40834876da5a3dd0a0ea6f8f7a3489ba400
 SHA512 
3c71a42df92a92b02c4774cf120c697a5e7f376768923b74561fb4cbe10605b4d57ea826d2b8c4d304ff1e12cf4c84d0fbebc34edd0afa0b0241ff7cb707e5de
 DIST fakeredis-2.20.1.tar.gz 122874 BLAKE2B 
65404806c15c9fb9b1a59f04ef64804fae9034ce53658058edea03fc9ca5b3348129a143d6f86566eebcb3b052316ce120d8d04b6ad52d8c5ede81db6906713e
 SHA512 
7ead4a7b5eed318380471ef421a0c59a33142067a104f5e0530e066b62a12f26011233366619ea068cfa71eaf4c617e89a94d62f1a2cda366783e7614e5aa32e

diff --git a/dev-python/fakeredis/fakeredis-2.20.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.20.0.ebuild
deleted file mode 100644
index 96f1eacde523..
--- a/dev-python/fakeredis/fakeredis-2.20.0.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# 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-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'
-   )
-   # Note: this package is not xdist-friendly
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-12-14 Thread Michał Górny
commit: 2ba0ba71ab310a6838e659085d67ed86339927d3
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Dec 14 13:20:44 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Dec 14 13:58:01 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ba0ba71

dev-python/fakeredis: Bump to 2.20.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.20.1.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 69a01305f1b7..073adb9ec77f 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-2.20.0.tar.gz 122679 BLAKE2B 
2fd982761fe6e8bd66d2d93b7140b9b97e20d33e40827ac9ab7d050d6e9814891e8a1f95a4f789bc78a1589fe215b40834876da5a3dd0a0ea6f8f7a3489ba400
 SHA512 
3c71a42df92a92b02c4774cf120c697a5e7f376768923b74561fb4cbe10605b4d57ea826d2b8c4d304ff1e12cf4c84d0fbebc34edd0afa0b0241ff7cb707e5de
+DIST fakeredis-2.20.1.tar.gz 122874 BLAKE2B 
65404806c15c9fb9b1a59f04ef64804fae9034ce53658058edea03fc9ca5b3348129a143d6f86566eebcb3b052316ce120d8d04b6ad52d8c5ede81db6906713e
 SHA512 
7ead4a7b5eed318380471ef421a0c59a33142067a104f5e0530e066b62a12f26011233366619ea068cfa71eaf4c617e89a94d62f1a2cda366783e7614e5aa32e

diff --git a/dev-python/fakeredis/fakeredis-2.20.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.20.1.ebuild
new file mode 100644
index ..e7ea729b1da1
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.20.1.ebuild
@@ -0,0 +1,84 @@
+# 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-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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-11-22 Thread Michał Górny
commit: 618f949e2deab76601af7d6edeb5196edf9a3c27
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Nov 22 11:58:01 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Nov 22 11:59:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=618f949e

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 -
 dev-python/fakeredis/fakeredis-2.19.0.ebuild | 83 
 2 files changed, 84 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 1b1ed3ebb205..69a01305f1b7 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1 @@
-DIST fakeredis-2.19.0.tar.gz 117030 BLAKE2B 
05976b1011bb3933b275755498cf7b893afc93cbbb0bfcce67d01692f1ebc4bee1b6cddd406eaca4d46f595cde2805f43e767aef1ca491ccfc4afcf7b983b444
 SHA512 
1800933b86369c7b857e7609e2a6af8d469c713a23bfd792fc8df2695e8aabcb2cd1fa6138f7eb908fbecc9c6e2c242f7da47864067498c5e180956b578985aa
 DIST fakeredis-2.20.0.tar.gz 122679 BLAKE2B 
2fd982761fe6e8bd66d2d93b7140b9b97e20d33e40827ac9ab7d050d6e9814891e8a1f95a4f789bc78a1589fe215b40834876da5a3dd0a0ea6f8f7a3489ba400
 SHA512 
3c71a42df92a92b02c4774cf120c697a5e7f376768923b74561fb4cbe10605b4d57ea826d2b8c4d304ff1e12cf4c84d0fbebc34edd0afa0b0241ff7cb707e5de

diff --git a/dev-python/fakeredis/fakeredis-2.19.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.19.0.ebuild
deleted file mode 100644
index 04003ae5a380..
--- a/dev-python/fakeredis/fakeredis-2.19.0.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# 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-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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-11-22 Thread Sam James
commit: 5775f60542a10c9c82c921ea267c43711f148701
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 22 11:05:39 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 22 11:10:11 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5775f605

dev-python/fakeredis: Stabilize 2.20.0 ALLARCHES, #917708

Signed-off-by: Sam James  gentoo.org>

 dev-python/fakeredis/fakeredis-2.20.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.20.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.20.0.ebuild
index e7ea729b1da1..96f1eacde523 100644
--- a/dev-python/fakeredis/fakeredis-2.20.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.20.0.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-10-22 Thread Michał Górny
commit: 8c7046f04fc6e209c5b446db2747b0b410b15276
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Oct 22 06:21:54 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Oct 22 06:55:21 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c7046f0

dev-python/fakeredis: Bump to 2.20.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.20.0.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 374aa6ca0b2d..1b1ed3ebb205 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-2.19.0.tar.gz 117030 BLAKE2B 
05976b1011bb3933b275755498cf7b893afc93cbbb0bfcce67d01692f1ebc4bee1b6cddd406eaca4d46f595cde2805f43e767aef1ca491ccfc4afcf7b983b444
 SHA512 
1800933b86369c7b857e7609e2a6af8d469c713a23bfd792fc8df2695e8aabcb2cd1fa6138f7eb908fbecc9c6e2c242f7da47864067498c5e180956b578985aa
+DIST fakeredis-2.20.0.tar.gz 122679 BLAKE2B 
2fd982761fe6e8bd66d2d93b7140b9b97e20d33e40827ac9ab7d050d6e9814891e8a1f95a4f789bc78a1589fe215b40834876da5a3dd0a0ea6f8f7a3489ba400
 SHA512 
3c71a42df92a92b02c4774cf120c697a5e7f376768923b74561fb4cbe10605b4d57ea826d2b8c4d304ff1e12cf4c84d0fbebc34edd0afa0b0241ff7cb707e5de

diff --git a/dev-python/fakeredis/fakeredis-2.20.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.20.0.ebuild
new file mode 100644
index ..e7ea729b1da1
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.20.0.ebuild
@@ -0,0 +1,84 @@
+# 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-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'
+   )
+   # Note: this package is not xdist-friendly
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-10-14 Thread Michał Górny
commit: 4b669c2773a729867913ef1ae3096a02202dc46c
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Oct 14 18:47:45 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Oct 14 18:47:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b669c27

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  2 -
 dev-python/fakeredis/fakeredis-2.18.0.ebuild | 78 ---
 dev-python/fakeredis/fakeredis-2.18.1.ebuild | 80 
 3 files changed, 160 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index d0a1ba7987a1..374aa6ca0b2d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1 @@
-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

diff --git a/dev-python/fakeredis/fakeredis-2.18.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.18.0.ebuild
deleted file mode 100644
index 4832c918118d..
--- a/dev-python/fakeredis/fakeredis-2.18.0.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# 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-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
-   )
-   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
-}

diff --git a/dev-python/fakeredis/fakeredis-2.18.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.18.1.ebuild
deleted file mode 100644
index b4855051813f..
--- a/dev-python/fakeredis/fakeredis-2.18.1.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# 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/
-   

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-10-14 Thread Arthur Zamarin
commit: fc3174927729ab8c44ba6aba81541b37bed00491
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Oct 14 16:58:48 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Oct 14 16:58:48 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc317492

dev-python/fakeredis: Stabilize 2.19.0 ALLARCHES, #915732

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-2.19.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.19.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.19.0.ebuild
index be7b925f5e88..04003ae5a380 100644
--- a/dev-python/fakeredis/fakeredis-2.19.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.19.0.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-09-25 Thread Michał Górny
commit: 07bf6f13aca2da01544525fabb21f076025b02b4
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Sep 26 03:52:58 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Sep 26 04:42:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07bf6f13

dev-python/fakeredis: Bump to 2.19.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.19.0.ebuild | 83 
 2 files changed, 84 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index bf7a92708593..d0a1ba7987a1 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 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

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 ..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-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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-09-17 Thread Michał Górny
commit: 4a7949122b6c49b9cd47df0b21074955a875ac0f
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Sep 17 11:24:51 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Sep 17 11:24:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a794912

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 -
 dev-python/fakeredis/fakeredis-2.17.0.ebuild | 78 
 2 files changed, 79 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 4f82bee5eed3..bf7a92708593 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,2 @@
-DIST fakeredis-2.17.0.tar.gz 110121 BLAKE2B 
21b8ce15236aa918d519e2d5c045d1664d6edc4d9f1fd10923bde4779c0a4605685519e17b5edfddec83f6b9e9421539cce037e8a787673b12733ef9cb28df00
 SHA512 
31da92e0617a6999bb29261b9efdb1b8ac9f790eb1f4500f71d65b7e2ec700095ac30a55230f3c3efe9cd9c535d04a9138596944e2aa684a1e6e9e7158b5c2be
 DIST fakeredis-2.18.0.tar.gz 111601 BLAKE2B 
56a7d2e113fa0d2d98f95b4e8d5b7462a311e2e505a19cd5d3067650a0b950ad272b86aae42b748e5854c7f24287fac03f8c61865c05612697324e9f328dfbe9
 SHA512 
2d67866bbac8f8a12a6414cfae0a8ba925b769c0cb420bfe74ca233de40792f369678752a0d71ce4c0c145f03944fb071ecb234ee40f3f52005587db1929134e
 DIST fakeredis-2.18.1.tar.gz 113919 BLAKE2B 
da6fa335a755c5f9675fc89ecf714af37c3e56c93332d6a8003130c435fe1b5abfa426851f293ada1109f1aec439c2daa70d0bec8681077d28ffae62c34cb29f
 SHA512 
78ad0e7b25519de60ad11a24c6fcd2ffc938014ec9c040cbea9d2155f3670fe18c65cf3387bc21b856e7caba1df5ef1e79a6ef77ab7201c1eb68949f775002c8

diff --git a/dev-python/fakeredis/fakeredis-2.17.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.17.0.ebuild
deleted file mode 100644
index 4832c918118d..
--- a/dev-python/fakeredis/fakeredis-2.17.0.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# 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-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
-   )
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-09-08 Thread Michał Górny
commit: 791c609bddbca538209e58b2ec083b5e0ba672ac
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Sep  9 03:07:19 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Sep  9 03:22:36 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=791c609b

dev-python/fakeredis: Bump to 2.18.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.18.1.ebuild | 80 
 2 files changed, 81 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index f2e3e4921905..4f82bee5eed3 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-2.17.0.tar.gz 110121 BLAKE2B 
21b8ce15236aa918d519e2d5c045d1664d6edc4d9f1fd10923bde4779c0a4605685519e17b5edfddec83f6b9e9421539cce037e8a787673b12733ef9cb28df00
 SHA512 
31da92e0617a6999bb29261b9efdb1b8ac9f790eb1f4500f71d65b7e2ec700095ac30a55230f3c3efe9cd9c535d04a9138596944e2aa684a1e6e9e7158b5c2be
 DIST fakeredis-2.18.0.tar.gz 111601 BLAKE2B 
56a7d2e113fa0d2d98f95b4e8d5b7462a311e2e505a19cd5d3067650a0b950ad272b86aae42b748e5854c7f24287fac03f8c61865c05612697324e9f328dfbe9
 SHA512 
2d67866bbac8f8a12a6414cfae0a8ba925b769c0cb420bfe74ca233de40792f369678752a0d71ce4c0c145f03944fb071ecb234ee40f3f52005587db1929134e
+DIST fakeredis-2.18.1.tar.gz 113919 BLAKE2B 
da6fa335a755c5f9675fc89ecf714af37c3e56c93332d6a8003130c435fe1b5abfa426851f293ada1109f1aec439c2daa70d0bec8681077d28ffae62c34cb29f
 SHA512 
78ad0e7b25519de60ad11a24c6fcd2ffc938014ec9c040cbea9d2155f3670fe18c65cf3387bc21b856e7caba1df5ef1e79a6ef77ab7201c1eb68949f775002c8

diff --git a/dev-python/fakeredis/fakeredis-2.18.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.18.1.ebuild
new file mode 100644
index ..b4855051813f
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.18.1.ebuild
@@ -0,0 +1,80 @@
+# 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-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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-08-19 Thread Michał Górny
commit: 143d9d143e2bd576e13f9b0ac9ae94c9ceeb35f5
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Aug 19 16:05:42 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Aug 19 16:07:03 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=143d9d14

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 -
 dev-python/fakeredis/fakeredis-2.16.0.ebuild | 78 
 2 files changed, 79 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 16f78a20e0c0..f2e3e4921905 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,2 @@
-DIST fakeredis-2.16.0.tar.gz 108416 BLAKE2B 
0897614e567d59b54a35c18922a33cc79e8d2759614fc13b2dfbbf0e52c802470678cdf497b914762f258e84b50afb178ac1a0604acfdb1520daf3a03ac87a6a
 SHA512 
a9fdf6da74c9fc650df9720b39a8c2ecb609353d1c535433bd8ca3ff4674f112e2bb06a381ad8f994e7daab78cc41b1bf1c75a0e287af0b41387bf15d05fce5d
 DIST fakeredis-2.17.0.tar.gz 110121 BLAKE2B 
21b8ce15236aa918d519e2d5c045d1664d6edc4d9f1fd10923bde4779c0a4605685519e17b5edfddec83f6b9e9421539cce037e8a787673b12733ef9cb28df00
 SHA512 
31da92e0617a6999bb29261b9efdb1b8ac9f790eb1f4500f71d65b7e2ec700095ac30a55230f3c3efe9cd9c535d04a9138596944e2aa684a1e6e9e7158b5c2be
 DIST fakeredis-2.18.0.tar.gz 111601 BLAKE2B 
56a7d2e113fa0d2d98f95b4e8d5b7462a311e2e505a19cd5d3067650a0b950ad272b86aae42b748e5854c7f24287fac03f8c61865c05612697324e9f328dfbe9
 SHA512 
2d67866bbac8f8a12a6414cfae0a8ba925b769c0cb420bfe74ca233de40792f369678752a0d71ce4c0c145f03944fb071ecb234ee40f3f52005587db1929134e

diff --git a/dev-python/fakeredis/fakeredis-2.16.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.16.0.ebuild
deleted file mode 100644
index 4832c918118d..
--- a/dev-python/fakeredis/fakeredis-2.16.0.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# 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-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
-   )
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-08-19 Thread Arthur Zamarin
commit: 9ce69cecc566888ac3f50b73edc2cd5cac47f54c
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Aug 19 16:02:31 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Aug 19 16:02:31 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ce69cec

dev-python/fakeredis: Stabilize 2.17.0 ALLARCHES, #912605

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-2.17.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.17.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.17.0.ebuild
index 12cd5e3de69f..4832c918118d 100644
--- a/dev-python/fakeredis/fakeredis-2.17.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.17.0.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-08-14 Thread Michał Górny
commit: 1e398632b2932fdb6188c73152264a8dd6268994
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Aug 15 01:52:31 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Aug 15 02:39:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e398632

dev-python/fakeredis: Bump to 2.18.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.18.0.ebuild | 78 
 2 files changed, 79 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index d59504782ee1..16f78a20e0c0 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-2.16.0.tar.gz 108416 BLAKE2B 
0897614e567d59b54a35c18922a33cc79e8d2759614fc13b2dfbbf0e52c802470678cdf497b914762f258e84b50afb178ac1a0604acfdb1520daf3a03ac87a6a
 SHA512 
a9fdf6da74c9fc650df9720b39a8c2ecb609353d1c535433bd8ca3ff4674f112e2bb06a381ad8f994e7daab78cc41b1bf1c75a0e287af0b41387bf15d05fce5d
 DIST fakeredis-2.17.0.tar.gz 110121 BLAKE2B 
21b8ce15236aa918d519e2d5c045d1664d6edc4d9f1fd10923bde4779c0a4605685519e17b5edfddec83f6b9e9421539cce037e8a787673b12733ef9cb28df00
 SHA512 
31da92e0617a6999bb29261b9efdb1b8ac9f790eb1f4500f71d65b7e2ec700095ac30a55230f3c3efe9cd9c535d04a9138596944e2aa684a1e6e9e7158b5c2be
+DIST fakeredis-2.18.0.tar.gz 111601 BLAKE2B 
56a7d2e113fa0d2d98f95b4e8d5b7462a311e2e505a19cd5d3067650a0b950ad272b86aae42b748e5854c7f24287fac03f8c61865c05612697324e9f328dfbe9
 SHA512 
2d67866bbac8f8a12a6414cfae0a8ba925b769c0cb420bfe74ca233de40792f369678752a0d71ce4c0c145f03944fb071ecb234ee40f3f52005587db1929134e

diff --git a/dev-python/fakeredis/fakeredis-2.18.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.18.0.ebuild
new file mode 100644
index ..12cd5e3de69f
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.18.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-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
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-07-24 Thread Michał Górny
commit: ed59b97680d0c998e23d7e12650a47ff6fea5606
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Jul 24 11:06:46 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Jul 24 11:06:46 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed59b976

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  2 -
 dev-python/fakeredis/fakeredis-2.14.1.ebuild | 78 
 dev-python/fakeredis/fakeredis-2.15.0.ebuild | 78 
 3 files changed, 158 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 151e0afb2923..d59504782ee1 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,4 +1,2 @@
-DIST fakeredis-2.14.1.tar.gz 101789 BLAKE2B 
2e38319aa8bb23c9cd2196d8dbcf489fead785bffa3b464b7e420f28b247c911ea9f3775328f8fec7c26b1a77e32d6a21acf627fe7b603f311b0f3820fa06b54
 SHA512 
71b7f034ad5ccdd569052a82d2e15ec21db4b5a26bc5c660f76bb88c0b7aaa252234e899644dfd63086aaf8a9400ea13acc6439fdca08f84c8392949815f33d2
-DIST fakeredis-2.15.0.tar.gz 108160 BLAKE2B 
aaf135ffc395d6304c2f95b0339610f506382e865039f647a9af3fd9e3fa8cd9b9f6ea6557670fd61e949136f35de10b0fad63a1813d59f5b3697dd200195960
 SHA512 
59bc74a328b85cebcf0ae61d70e4ce26f3cdde3b82de6746f6b33229a6185d542db1e2ddd7c8ea600db69a6c630dbf81998ba108982da33487fe5ad2068abb29
 DIST fakeredis-2.16.0.tar.gz 108416 BLAKE2B 
0897614e567d59b54a35c18922a33cc79e8d2759614fc13b2dfbbf0e52c802470678cdf497b914762f258e84b50afb178ac1a0604acfdb1520daf3a03ac87a6a
 SHA512 
a9fdf6da74c9fc650df9720b39a8c2ecb609353d1c535433bd8ca3ff4674f112e2bb06a381ad8f994e7daab78cc41b1bf1c75a0e287af0b41387bf15d05fce5d
 DIST fakeredis-2.17.0.tar.gz 110121 BLAKE2B 
21b8ce15236aa918d519e2d5c045d1664d6edc4d9f1fd10923bde4779c0a4605685519e17b5edfddec83f6b9e9421539cce037e8a787673b12733ef9cb28df00
 SHA512 
31da92e0617a6999bb29261b9efdb1b8ac9f790eb1f4500f71d65b7e2ec700095ac30a55230f3c3efe9cd9c535d04a9138596944e2aa684a1e6e9e7158b5c2be

diff --git a/dev-python/fakeredis/fakeredis-2.14.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.14.1.ebuild
deleted file mode 100644
index b6be35ebf828..
--- a/dev-python/fakeredis/fakeredis-2.14.1.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# 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-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
-}

diff --git a/dev-python/fakeredis/fakeredis-2.15.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.15.0.ebuild
deleted file mode 100644
index 10e805e1986c..
--- a/dev-python/fakeredis/fakeredis-2.15.0.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 2020-2023 Gentoo Authors
-# Distributed under 

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-07-19 Thread Michał Górny
commit: a324265ab3f6f7b17f9e521f6bc52240493fb6f3
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Jul 19 06:10:38 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jul 19 06:57:20 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a324265a

dev-python/fakeredis: Bump to 2.17.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.17.0.ebuild | 78 
 2 files changed, 79 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 115090ea2d64..151e0afb2923 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-2.14.1.tar.gz 101789 BLAKE2B 
2e38319aa8bb23c9cd2196d8dbcf489fead785bffa3b464b7e420f28b247c911ea9f3775328f8fec7c26b1a77e32d6a21acf627fe7b603f311b0f3820fa06b54
 SHA512 
71b7f034ad5ccdd569052a82d2e15ec21db4b5a26bc5c660f76bb88c0b7aaa252234e899644dfd63086aaf8a9400ea13acc6439fdca08f84c8392949815f33d2
 DIST fakeredis-2.15.0.tar.gz 108160 BLAKE2B 
aaf135ffc395d6304c2f95b0339610f506382e865039f647a9af3fd9e3fa8cd9b9f6ea6557670fd61e949136f35de10b0fad63a1813d59f5b3697dd200195960
 SHA512 
59bc74a328b85cebcf0ae61d70e4ce26f3cdde3b82de6746f6b33229a6185d542db1e2ddd7c8ea600db69a6c630dbf81998ba108982da33487fe5ad2068abb29
 DIST fakeredis-2.16.0.tar.gz 108416 BLAKE2B 
0897614e567d59b54a35c18922a33cc79e8d2759614fc13b2dfbbf0e52c802470678cdf497b914762f258e84b50afb178ac1a0604acfdb1520daf3a03ac87a6a
 SHA512 
a9fdf6da74c9fc650df9720b39a8c2ecb609353d1c535433bd8ca3ff4674f112e2bb06a381ad8f994e7daab78cc41b1bf1c75a0e287af0b41387bf15d05fce5d
+DIST fakeredis-2.17.0.tar.gz 110121 BLAKE2B 
21b8ce15236aa918d519e2d5c045d1664d6edc4d9f1fd10923bde4779c0a4605685519e17b5edfddec83f6b9e9421539cce037e8a787673b12733ef9cb28df00
 SHA512 
31da92e0617a6999bb29261b9efdb1b8ac9f790eb1f4500f71d65b7e2ec700095ac30a55230f3c3efe9cd9c535d04a9138596944e2aa684a1e6e9e7158b5c2be

diff --git a/dev-python/fakeredis/fakeredis-2.17.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.17.0.ebuild
new file mode 100644
index ..12cd5e3de69f
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.17.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-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
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-07-05 Thread Michał Górny
commit: 3542990b1738c11106113a66b12d5b8493f2d00c
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Jul  5 06:07:34 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jul  5 06:19:05 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3542990b

dev-python/fakeredis: Bump to 2.16.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.16.0.ebuild | 78 
 2 files changed, 79 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 1a961a2e630d..115090ea2d64 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-2.14.1.tar.gz 101789 BLAKE2B 
2e38319aa8bb23c9cd2196d8dbcf489fead785bffa3b464b7e420f28b247c911ea9f3775328f8fec7c26b1a77e32d6a21acf627fe7b603f311b0f3820fa06b54
 SHA512 
71b7f034ad5ccdd569052a82d2e15ec21db4b5a26bc5c660f76bb88c0b7aaa252234e899644dfd63086aaf8a9400ea13acc6439fdca08f84c8392949815f33d2
 DIST fakeredis-2.15.0.tar.gz 108160 BLAKE2B 
aaf135ffc395d6304c2f95b0339610f506382e865039f647a9af3fd9e3fa8cd9b9f6ea6557670fd61e949136f35de10b0fad63a1813d59f5b3697dd200195960
 SHA512 
59bc74a328b85cebcf0ae61d70e4ce26f3cdde3b82de6746f6b33229a6185d542db1e2ddd7c8ea600db69a6c630dbf81998ba108982da33487fe5ad2068abb29
+DIST fakeredis-2.16.0.tar.gz 108416 BLAKE2B 
0897614e567d59b54a35c18922a33cc79e8d2759614fc13b2dfbbf0e52c802470678cdf497b914762f258e84b50afb178ac1a0604acfdb1520daf3a03ac87a6a
 SHA512 
a9fdf6da74c9fc650df9720b39a8c2ecb609353d1c535433bd8ca3ff4674f112e2bb06a381ad8f994e7daab78cc41b1bf1c75a0e287af0b41387bf15d05fce5d

diff --git a/dev-python/fakeredis/fakeredis-2.16.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.16.0.ebuild
new file mode 100644
index ..12cd5e3de69f
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.16.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-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
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-06-27 Thread Michał Górny
commit: 7939a8ba5f9cf2030b34f822752dbd6855b4f727
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Jun 27 11:51:25 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Jun 27 11:51:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7939a8ba

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  3 --
 dev-python/fakeredis/fakeredis-2.12.1.ebuild | 77 ---
 dev-python/fakeredis/fakeredis-2.13.0.ebuild | 77 ---
 dev-python/fakeredis/fakeredis-2.14.0.ebuild | 78 
 4 files changed, 235 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 30f19d74366a..1a961a2e630d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,5 +1,2 @@
-DIST fakeredis-2.12.1.tar.gz 97486 BLAKE2B 
5207d9b946eb5720083b045e29b960cc2eb3ab5ed7b633f00106d0777186cfb02ecc10607d24a67d7b2eded35915e6710a4880f560e49fbca470c487ec0a2b87
 SHA512 
99e4e0bf7a4be9cc9dc96eecfe2fd1f106664bab2eff4f575468933809cf306c36237ebc9d86efdd9c0823e05a08d466f35a7e43359602b47c582ab16d7bb7ef
-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

diff --git a/dev-python/fakeredis/fakeredis-2.12.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.12.1.ebuild
deleted file mode 100644
index 3d5b1f14f9d9..
--- a/dev-python/fakeredis/fakeredis-2.12.1.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# 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_{9..11} )
-
-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/redis-4.2[${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
-   

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-06-26 Thread Jakov Smolić
commit: b7ed6a932b66b2cca11f38857c20a42b6fb25867
Author: Jakov Smolić  gentoo  org>
AuthorDate: Tue Jun 27 05:18:26 2023 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Tue Jun 27 05:18:26 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7ed6a93

dev-python/fakeredis: Stabilize 2.14.1 ALLARCHES, #909224

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-python/fakeredis/fakeredis-2.14.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.14.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.14.1.ebuild
index 10e805e1986c..b6be35ebf828 100644
--- a/dev-python/fakeredis/fakeredis-2.14.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.14.1.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-06-19 Thread Michał Górny
commit: 59c1132842ae7a907e32f6a50912e3ab13f7f052
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Jun 20 05:09:41 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Jun 20 05:38:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59c11328

dev-python/fakeredis: Bump to 2.15.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.15.0.ebuild | 78 
 2 files changed, 79 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index b403bc1cd86b..30f19d74366a 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -2,3 +2,4 @@ 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

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 ..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-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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-06-06 Thread Michał Górny
commit: 224ba4389104740eb3ab19b0b1c1b62e6bea9288
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Jun  7 04:46:34 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Jun  7 05:09:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=224ba438

dev-python/fakeredis: Bump to 2.14.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.14.1.ebuild | 78 
 2 files changed, 79 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 8326485c9a44..b403bc1cd86b 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-2.12.1.tar.gz 97486 BLAKE2B 
5207d9b946eb5720083b045e29b960cc2eb3ab5ed7b633f00106d0777186cfb02ecc10607d24a67d7b2eded35915e6710a4880f560e49fbca470c487ec0a2b87
 SHA512 
99e4e0bf7a4be9cc9dc96eecfe2fd1f106664bab2eff4f575468933809cf306c36237ebc9d86efdd9c0823e05a08d466f35a7e43359602b47c582ab16d7bb7ef
 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

diff --git a/dev-python/fakeredis/fakeredis-2.14.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.14.1.ebuild
new file mode 100644
index ..10e805e1986c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.14.1.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-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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-06-05 Thread Michał Górny
commit: bdb02f0db54a47da0b16e2a0fb988a0b6eae8b17
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Jun  6 04:44:59 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Jun  6 05:43:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdb02f0d

dev-python/fakeredis: Bump to 2.14.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.14.0.ebuild | 78 
 2 files changed, 79 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index a26a49831638..8326485c9a44 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-2.12.1.tar.gz 97486 BLAKE2B 
5207d9b946eb5720083b045e29b960cc2eb3ab5ed7b633f00106d0777186cfb02ecc10607d24a67d7b2eded35915e6710a4880f560e49fbca470c487ec0a2b87
 SHA512 
99e4e0bf7a4be9cc9dc96eecfe2fd1f106664bab2eff4f575468933809cf306c36237ebc9d86efdd9c0823e05a08d466f35a7e43359602b47c582ab16d7bb7ef
 DIST fakeredis-2.13.0.tar.gz 98084 BLAKE2B 
c147332f2575be7f63aef48199920480d550efbadeee9de255b17cb9c7d6791a059ee3d4bdc500ecf44dcc22de6fdd11d170daf3e19de8e910833b1de12232c6
 SHA512 
30335e456f7ac2498fc175f9fd154a766064a05e6eb996df9d533412525a3d4279c9359ac5e43a2b9ec9bb1d653639aa10d4e1765a4e4c1bc84f764fa1efdb42
+DIST fakeredis-2.14.0.tar.gz 101919 BLAKE2B 
7582b3986bc7102a02a69a321e539dc15d425d918397e896eed9d544816697c55e938511ae69201eae3a5c1e814afe7f0c472d48a249be976178a7c0279472ae
 SHA512 
a63b46420d9ca2348b0ed0f4ef2c0227a4dbc46efef2fae5beae2513cc77732be830669910f14d59ecb2f1fa3b698e29855658239fea4ff458c4ba62fd9fa4cb

diff --git a/dev-python/fakeredis/fakeredis-2.14.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.14.0.ebuild
new file mode 100644
index ..10e805e1986c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.14.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-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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-05-31 Thread Michał Górny
commit: f637b2663184222430fd6cf8963625138c917fd0
Author: Michał Górny  gentoo  org>
AuthorDate: Wed May 31 16:01:22 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed May 31 16:05:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f637b266

dev-python/fakeredis: Enable py3.12

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/fakeredis-2.13.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.13.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.13.0.ebuild
index 145808fd6437..55050b194593 100644
--- a/dev-python/fakeredis/fakeredis-2.13.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.13.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{10..11} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
 
 inherit distutils-r1 pypi
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-05-23 Thread Michał Górny
commit: 9c0c130121acfbc99cad06bdd993f243fd780327
Author: Michał Górny  gentoo  org>
AuthorDate: Tue May 23 16:10:24 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue May 23 16:15:36 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c0c1301

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  6 --
 dev-python/fakeredis/fakeredis-2.10.2.ebuild | 84 
 dev-python/fakeredis/fakeredis-2.10.3.ebuild | 77 -
 dev-python/fakeredis/fakeredis-2.11.0.ebuild | 77 -
 dev-python/fakeredis/fakeredis-2.11.1.ebuild | 77 -
 dev-python/fakeredis/fakeredis-2.11.2.ebuild | 77 -
 dev-python/fakeredis/fakeredis-2.12.0.ebuild | 77 -
 7 files changed, 475 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 9afeb8c0269e..a26a49831638 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,8 +1,2 @@
-DIST fakeredis-2.10.3.tar.gz 94025 BLAKE2B 
faf178d53e783c4475513bf9f485b6eaefc63bc45c5ebd95ecfa1aaed982e236877230ea19526d8d12f152f1c429c5003b04abd2cc4f7ed43dbde581b07fbdf1
 SHA512 
694b1b540e8b9b32a5a44e3094b8bab307c5af400335efe9eb034c5ed161c1583d4700c08ef16991a1f03502aeb835d89b327448c3385de548dd39aafdbcc2a8
-DIST fakeredis-2.11.0.tar.gz 94957 BLAKE2B 
0f1e5e226793fbeb86c9d7b894832652dca65c2ed21b0f0c86c228df3124f97aebc1540619fdb484dda93a78f7c7d6e1fbbcd07a24ba0e919ba9fb718074c757
 SHA512 
7669fa06737f47440b85a369ae00429da7ee479dcc0fed3c5a33f700b3ddbe3660bfd1098dcefa4b29896dc552cca950fa8305f1e53b44fd82f8375e15d25031
-DIST fakeredis-2.11.1.tar.gz 94897 BLAKE2B 
18798d30eccfbedd70d13fc4a9883d2ab4b06eb2b4de900ced78202a3ba0680380dbd6989e7c51ce524eff73b4b5177379c941d9bb00015afe32d12b716b4ba0
 SHA512 
1ee9ed1eb2563de702bb76f01546338ccbb477b9546c8e9ff65644efbdb00c2c14cb5f2488d800071c083e0eaa638b41ec492ca618d3a5a0e190212e6e8313a8
-DIST fakeredis-2.11.2.tar.gz 95532 BLAKE2B 
5edda6d3573bd589c8144664dbf115f257b68f59f002d92766b4c9ce1a9adcefe727812835d01d4efa42676056e9c050175c423cca166f1063e4ee1a6784ee94
 SHA512 
a5f0428949f3527fc189ecf4744f2f2310fcb114fdeb718299608defe7dfaeee9720d84debaa1e0e0eeeff11f6426e72452b3e7e772690aa48336996ae5a8716
-DIST fakeredis-2.12.0.tar.gz 95952 BLAKE2B 
87e27851e2c68c07871990e3b1e73c2c614a902a4e086753308f2abcf01cfe08532c1c04136ebb1fa5aa36ff8b36616fefe70ab3b59860d15e89be5af83d1a9d
 SHA512 
a4c1eb27cb846a769ed5fd10966df77064d0598f7b556c36c0ea48cd298c261f222601a0071652ec279b03e04537aac211710edf1597f6d57a48ca3a53e9a7aa
 DIST fakeredis-2.12.1.tar.gz 97486 BLAKE2B 
5207d9b946eb5720083b045e29b960cc2eb3ab5ed7b633f00106d0777186cfb02ecc10607d24a67d7b2eded35915e6710a4880f560e49fbca470c487ec0a2b87
 SHA512 
99e4e0bf7a4be9cc9dc96eecfe2fd1f106664bab2eff4f575468933809cf306c36237ebc9d86efdd9c0823e05a08d466f35a7e43359602b47c582ab16d7bb7ef
 DIST fakeredis-2.13.0.tar.gz 98084 BLAKE2B 
c147332f2575be7f63aef48199920480d550efbadeee9de255b17cb9c7d6791a059ee3d4bdc500ecf44dcc22de6fdd11d170daf3e19de8e910833b1de12232c6
 SHA512 
30335e456f7ac2498fc175f9fd154a766064a05e6eb996df9d533412525a3d4279c9359ac5e43a2b9ec9bb1d653639aa10d4e1765a4e4c1bc84f764fa1efdb42
-DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a

diff --git a/dev-python/fakeredis/fakeredis-2.10.2.ebuild 
b/dev-python/fakeredis/fakeredis-2.10.2.ebuild
deleted file mode 100644
index a0ee8168e038..
--- a/dev-python/fakeredis/fakeredis-2.10.2.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# 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_{9..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-
-RDEPEND="
-   =dev-python/redis-4.2[${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
-   

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-05-23 Thread Arthur Zamarin
commit: 18e9e3aedf0fdfdb216ffe92eaca7fdbf34ee1d5
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue May 23 15:50:39 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue May 23 15:50:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18e9e3ae

dev-python/fakeredis: Stabilize 2.12.1 ALLARCHES, #905727

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-2.12.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.12.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.12.1.ebuild
index 425cda7c342a..3d5b1f14f9d9 100644
--- a/dev-python/fakeredis/fakeredis-2.12.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.12.1.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/redis-4.2[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-05-21 Thread Michał Górny
commit: fe60d1201ee188a38d8db2e8264468e38b15405a
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May 22 03:52:40 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May 22 05:53:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe60d120

dev-python/fakeredis: Bump to 2.13.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.13.0.ebuild | 77 
 2 files changed, 78 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index bb1bc5b54445..9afeb8c0269e 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -4,4 +4,5 @@ DIST fakeredis-2.11.1.tar.gz 94897 BLAKE2B 
18798d30eccfbedd70d13fc4a9883d2ab4b06
 DIST fakeredis-2.11.2.tar.gz 95532 BLAKE2B 
5edda6d3573bd589c8144664dbf115f257b68f59f002d92766b4c9ce1a9adcefe727812835d01d4efa42676056e9c050175c423cca166f1063e4ee1a6784ee94
 SHA512 
a5f0428949f3527fc189ecf4744f2f2310fcb114fdeb718299608defe7dfaeee9720d84debaa1e0e0eeeff11f6426e72452b3e7e772690aa48336996ae5a8716
 DIST fakeredis-2.12.0.tar.gz 95952 BLAKE2B 
87e27851e2c68c07871990e3b1e73c2c614a902a4e086753308f2abcf01cfe08532c1c04136ebb1fa5aa36ff8b36616fefe70ab3b59860d15e89be5af83d1a9d
 SHA512 
a4c1eb27cb846a769ed5fd10966df77064d0598f7b556c36c0ea48cd298c261f222601a0071652ec279b03e04537aac211710edf1597f6d57a48ca3a53e9a7aa
 DIST fakeredis-2.12.1.tar.gz 97486 BLAKE2B 
5207d9b946eb5720083b045e29b960cc2eb3ab5ed7b633f00106d0777186cfb02ecc10607d24a67d7b2eded35915e6710a4880f560e49fbca470c487ec0a2b87
 SHA512 
99e4e0bf7a4be9cc9dc96eecfe2fd1f106664bab2eff4f575468933809cf306c36237ebc9d86efdd9c0823e05a08d466f35a7e43359602b47c582ab16d7bb7ef
+DIST fakeredis-2.13.0.tar.gz 98084 BLAKE2B 
c147332f2575be7f63aef48199920480d550efbadeee9de255b17cb9c7d6791a059ee3d4bdc500ecf44dcc22de6fdd11d170daf3e19de8e910833b1de12232c6
 SHA512 
30335e456f7ac2498fc175f9fd154a766064a05e6eb996df9d533412525a3d4279c9359ac5e43a2b9ec9bb1d653639aa10d4e1765a4e4c1bc84f764fa1efdb42
 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a

diff --git a/dev-python/fakeredis/fakeredis-2.13.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.13.0.ebuild
new file mode 100644
index ..145808fd6437
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.13.0.ebuild
@@ -0,0 +1,77 @@
+# 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..11} )
+
+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/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-05-11 Thread Michał Górny
commit: 5a840640c17c1b10579467b318199166a9800859
Author: Michał Górny  gentoo  org>
AuthorDate: Thu May 11 16:10:15 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu May 11 17:58:06 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a840640

dev-python/fakeredis: Bump to 2.12.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.12.1.ebuild | 77 
 2 files changed, 78 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 17d8846e14c6..bb1bc5b54445 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -3,4 +3,5 @@ DIST fakeredis-2.11.0.tar.gz 94957 BLAKE2B 
0f1e5e226793fbeb86c9d7b894832652dca65
 DIST fakeredis-2.11.1.tar.gz 94897 BLAKE2B 
18798d30eccfbedd70d13fc4a9883d2ab4b06eb2b4de900ced78202a3ba0680380dbd6989e7c51ce524eff73b4b5177379c941d9bb00015afe32d12b716b4ba0
 SHA512 
1ee9ed1eb2563de702bb76f01546338ccbb477b9546c8e9ff65644efbdb00c2c14cb5f2488d800071c083e0eaa638b41ec492ca618d3a5a0e190212e6e8313a8
 DIST fakeredis-2.11.2.tar.gz 95532 BLAKE2B 
5edda6d3573bd589c8144664dbf115f257b68f59f002d92766b4c9ce1a9adcefe727812835d01d4efa42676056e9c050175c423cca166f1063e4ee1a6784ee94
 SHA512 
a5f0428949f3527fc189ecf4744f2f2310fcb114fdeb718299608defe7dfaeee9720d84debaa1e0e0eeeff11f6426e72452b3e7e772690aa48336996ae5a8716
 DIST fakeredis-2.12.0.tar.gz 95952 BLAKE2B 
87e27851e2c68c07871990e3b1e73c2c614a902a4e086753308f2abcf01cfe08532c1c04136ebb1fa5aa36ff8b36616fefe70ab3b59860d15e89be5af83d1a9d
 SHA512 
a4c1eb27cb846a769ed5fd10966df77064d0598f7b556c36c0ea48cd298c261f222601a0071652ec279b03e04537aac211710edf1597f6d57a48ca3a53e9a7aa
+DIST fakeredis-2.12.1.tar.gz 97486 BLAKE2B 
5207d9b946eb5720083b045e29b960cc2eb3ab5ed7b633f00106d0777186cfb02ecc10607d24a67d7b2eded35915e6710a4880f560e49fbca470c487ec0a2b87
 SHA512 
99e4e0bf7a4be9cc9dc96eecfe2fd1f106664bab2eff4f575468933809cf306c36237ebc9d86efdd9c0823e05a08d466f35a7e43359602b47c582ab16d7bb7ef
 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a

diff --git a/dev-python/fakeredis/fakeredis-2.12.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.12.1.ebuild
new file mode 100644
index ..425cda7c342a
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.12.1.ebuild
@@ -0,0 +1,77 @@
+# 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_{9..11} )
+
+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/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-05-07 Thread Michał Górny
commit: 1d5ee11e2bb57c107a93431f028bc9127f14ccce
Author: Michał Górny  gentoo  org>
AuthorDate: Mon May  8 03:38:52 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon May  8 03:55:29 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d5ee11e

dev-python/fakeredis: Bump to 2.12.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.12.0.ebuild | 77 
 2 files changed, 78 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index b73a7f194058..17d8846e14c6 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -2,4 +2,5 @@ DIST fakeredis-2.10.3.tar.gz 94025 BLAKE2B 
faf178d53e783c4475513bf9f485b6eaefc63
 DIST fakeredis-2.11.0.tar.gz 94957 BLAKE2B 
0f1e5e226793fbeb86c9d7b894832652dca65c2ed21b0f0c86c228df3124f97aebc1540619fdb484dda93a78f7c7d6e1fbbcd07a24ba0e919ba9fb718074c757
 SHA512 
7669fa06737f47440b85a369ae00429da7ee479dcc0fed3c5a33f700b3ddbe3660bfd1098dcefa4b29896dc552cca950fa8305f1e53b44fd82f8375e15d25031
 DIST fakeredis-2.11.1.tar.gz 94897 BLAKE2B 
18798d30eccfbedd70d13fc4a9883d2ab4b06eb2b4de900ced78202a3ba0680380dbd6989e7c51ce524eff73b4b5177379c941d9bb00015afe32d12b716b4ba0
 SHA512 
1ee9ed1eb2563de702bb76f01546338ccbb477b9546c8e9ff65644efbdb00c2c14cb5f2488d800071c083e0eaa638b41ec492ca618d3a5a0e190212e6e8313a8
 DIST fakeredis-2.11.2.tar.gz 95532 BLAKE2B 
5edda6d3573bd589c8144664dbf115f257b68f59f002d92766b4c9ce1a9adcefe727812835d01d4efa42676056e9c050175c423cca166f1063e4ee1a6784ee94
 SHA512 
a5f0428949f3527fc189ecf4744f2f2310fcb114fdeb718299608defe7dfaeee9720d84debaa1e0e0eeeff11f6426e72452b3e7e772690aa48336996ae5a8716
+DIST fakeredis-2.12.0.tar.gz 95952 BLAKE2B 
87e27851e2c68c07871990e3b1e73c2c614a902a4e086753308f2abcf01cfe08532c1c04136ebb1fa5aa36ff8b36616fefe70ab3b59860d15e89be5af83d1a9d
 SHA512 
a4c1eb27cb846a769ed5fd10966df77064d0598f7b556c36c0ea48cd298c261f222601a0071652ec279b03e04537aac211710edf1597f6d57a48ca3a53e9a7aa
 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a

diff --git a/dev-python/fakeredis/fakeredis-2.12.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.12.0.ebuild
new file mode 100644
index ..425cda7c342a
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.12.0.ebuild
@@ -0,0 +1,77 @@
+# 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_{9..11} )
+
+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/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-04-29 Thread Michał Górny
commit: 691fe46c0e8ddc55c5416e9fd540273381801ed6
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Apr 30 03:27:58 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Apr 30 03:27:58 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=691fe46c

dev-python/fakeredis: Bump to 2.11.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.11.2.ebuild | 77 
 2 files changed, 78 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 241794df6b9f..b73a7f194058 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,4 +1,5 @@
 DIST fakeredis-2.10.3.tar.gz 94025 BLAKE2B 
faf178d53e783c4475513bf9f485b6eaefc63bc45c5ebd95ecfa1aaed982e236877230ea19526d8d12f152f1c429c5003b04abd2cc4f7ed43dbde581b07fbdf1
 SHA512 
694b1b540e8b9b32a5a44e3094b8bab307c5af400335efe9eb034c5ed161c1583d4700c08ef16991a1f03502aeb835d89b327448c3385de548dd39aafdbcc2a8
 DIST fakeredis-2.11.0.tar.gz 94957 BLAKE2B 
0f1e5e226793fbeb86c9d7b894832652dca65c2ed21b0f0c86c228df3124f97aebc1540619fdb484dda93a78f7c7d6e1fbbcd07a24ba0e919ba9fb718074c757
 SHA512 
7669fa06737f47440b85a369ae00429da7ee479dcc0fed3c5a33f700b3ddbe3660bfd1098dcefa4b29896dc552cca950fa8305f1e53b44fd82f8375e15d25031
 DIST fakeredis-2.11.1.tar.gz 94897 BLAKE2B 
18798d30eccfbedd70d13fc4a9883d2ab4b06eb2b4de900ced78202a3ba0680380dbd6989e7c51ce524eff73b4b5177379c941d9bb00015afe32d12b716b4ba0
 SHA512 
1ee9ed1eb2563de702bb76f01546338ccbb477b9546c8e9ff65644efbdb00c2c14cb5f2488d800071c083e0eaa638b41ec492ca618d3a5a0e190212e6e8313a8
+DIST fakeredis-2.11.2.tar.gz 95532 BLAKE2B 
5edda6d3573bd589c8144664dbf115f257b68f59f002d92766b4c9ce1a9adcefe727812835d01d4efa42676056e9c050175c423cca166f1063e4ee1a6784ee94
 SHA512 
a5f0428949f3527fc189ecf4744f2f2310fcb114fdeb718299608defe7dfaeee9720d84debaa1e0e0eeeff11f6426e72452b3e7e772690aa48336996ae5a8716
 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a

diff --git a/dev-python/fakeredis/fakeredis-2.11.2.ebuild 
b/dev-python/fakeredis/fakeredis-2.11.2.ebuild
new file mode 100644
index ..425cda7c342a
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.11.2.ebuild
@@ -0,0 +1,77 @@
+# 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_{9..11} )
+
+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/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-04-25 Thread Michał Górny
commit: acd509d61429f8632170e63811e2f1f0d7189d78
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Apr 26 04:42:49 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Apr 26 05:36:34 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acd509d6

dev-python/fakeredis: Bump to 2.11.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.11.1.ebuild | 77 
 2 files changed, 78 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 30517cf3c9d7..241794df6b9f 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-2.10.3.tar.gz 94025 BLAKE2B 
faf178d53e783c4475513bf9f485b6eaefc63bc45c5ebd95ecfa1aaed982e236877230ea19526d8d12f152f1c429c5003b04abd2cc4f7ed43dbde581b07fbdf1
 SHA512 
694b1b540e8b9b32a5a44e3094b8bab307c5af400335efe9eb034c5ed161c1583d4700c08ef16991a1f03502aeb835d89b327448c3385de548dd39aafdbcc2a8
 DIST fakeredis-2.11.0.tar.gz 94957 BLAKE2B 
0f1e5e226793fbeb86c9d7b894832652dca65c2ed21b0f0c86c228df3124f97aebc1540619fdb484dda93a78f7c7d6e1fbbcd07a24ba0e919ba9fb718074c757
 SHA512 
7669fa06737f47440b85a369ae00429da7ee479dcc0fed3c5a33f700b3ddbe3660bfd1098dcefa4b29896dc552cca950fa8305f1e53b44fd82f8375e15d25031
+DIST fakeredis-2.11.1.tar.gz 94897 BLAKE2B 
18798d30eccfbedd70d13fc4a9883d2ab4b06eb2b4de900ced78202a3ba0680380dbd6989e7c51ce524eff73b4b5177379c941d9bb00015afe32d12b716b4ba0
 SHA512 
1ee9ed1eb2563de702bb76f01546338ccbb477b9546c8e9ff65644efbdb00c2c14cb5f2488d800071c083e0eaa638b41ec492ca618d3a5a0e190212e6e8313a8
 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a

diff --git a/dev-python/fakeredis/fakeredis-2.11.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.11.1.ebuild
new file mode 100644
index ..425cda7c342a
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.11.1.ebuild
@@ -0,0 +1,77 @@
+# 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_{9..11} )
+
+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/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-04-23 Thread Michał Górny
commit: 0250fb7ff1fe29fc8b0b1557df1b38f36ebfd395
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Apr 23 18:26:22 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Apr 23 19:30:04 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0250fb7f

dev-python/fakeredis: Bump to 2.11.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.11.0.ebuild | 77 
 2 files changed, 78 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index ec3481aeb318..30517cf3c9d7 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-2.10.3.tar.gz 94025 BLAKE2B 
faf178d53e783c4475513bf9f485b6eaefc63bc45c5ebd95ecfa1aaed982e236877230ea19526d8d12f152f1c429c5003b04abd2cc4f7ed43dbde581b07fbdf1
 SHA512 
694b1b540e8b9b32a5a44e3094b8bab307c5af400335efe9eb034c5ed161c1583d4700c08ef16991a1f03502aeb835d89b327448c3385de548dd39aafdbcc2a8
+DIST fakeredis-2.11.0.tar.gz 94957 BLAKE2B 
0f1e5e226793fbeb86c9d7b894832652dca65c2ed21b0f0c86c228df3124f97aebc1540619fdb484dda93a78f7c7d6e1fbbcd07a24ba0e919ba9fb718074c757
 SHA512 
7669fa06737f47440b85a369ae00429da7ee479dcc0fed3c5a33f700b3ddbe3660bfd1098dcefa4b29896dc552cca950fa8305f1e53b44fd82f8375e15d25031
 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a

diff --git a/dev-python/fakeredis/fakeredis-2.11.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.11.0.ebuild
new file mode 100644
index ..425cda7c342a
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.11.0.ebuild
@@ -0,0 +1,77 @@
+# 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_{9..11} )
+
+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/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-04-05 Thread Michał Górny
commit: 276ed85f7208be9d8bce4a7bc4188221781a04b7
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Apr  5 09:07:02 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Apr  5 09:14:14 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=276ed85f

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  3 -
 dev-python/fakeredis/fakeredis-2.10.0.ebuild | 84 
 dev-python/fakeredis/fakeredis-2.10.1.ebuild | 84 
 dev-python/fakeredis/fakeredis-2.9.2.ebuild  | 83 ---
 4 files changed, 254 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 3ca33d3bfb0e..ec3481aeb318 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,5 +1,2 @@
 DIST fakeredis-2.10.3.tar.gz 94025 BLAKE2B 
faf178d53e783c4475513bf9f485b6eaefc63bc45c5ebd95ecfa1aaed982e236877230ea19526d8d12f152f1c429c5003b04abd2cc4f7ed43dbde581b07fbdf1
 SHA512 
694b1b540e8b9b32a5a44e3094b8bab307c5af400335efe9eb034c5ed161c1583d4700c08ef16991a1f03502aeb835d89b327448c3385de548dd39aafdbcc2a8
-DIST fakeredis-py-2.10.0.gh.tar.gz 160050 BLAKE2B 
9c97abe80ca683cd068e3e8616b068c166f08f1b1eb360b76c57da4b9d68396a5dd6fb4152e92dcd73a1407c50e259db54ba5edd61bc2dca774672de84fcf2d3
 SHA512 
31df18ead5e2937a7a98297f4dc08790371968dd1fa6d9dfa54eb35ab27c2a4a88e2186c252c8a630e0e70fa04e67eccb68e687f9383b6770313cf8b79f6b3bc
-DIST fakeredis-py-2.10.1.gh.tar.gz 159626 BLAKE2B 
41d28b57c369273d96a985d6b47c8b162d1fc94c508daae12048e139c9d7bb9c44b39c95eb77cfb06d24cd1b44ccaa65f3d32f4976bfdda72e319d5da1cd69c4
 SHA512 
5659f5e3a638916bfe9ad88fff45b266488aa6d4e0b503f8594308ecfb8e97b1f588b658cb01a5dbe5fc06e64a1bbb6eafaa28aed0b8761b5e15638615ea
 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a
-DIST fakeredis-py-2.9.2.gh.tar.gz 165549 BLAKE2B 
351e07976ed6a4d11429c83aefe3a0e2d4397a97fdb2904ab65ac4d2717d129f5ac018f071b8670012aabe127d87350f3285f6f86369bb4b7eadbd61da5774f7
 SHA512 
6e9ab0851f74ade2325aad88b86212b4052ca53a7510034cd888ef4080eec4129b226ab8c166ab09fa6e3d3b2c3c70fce8adafdb4081a4d3501fd4d9d5e04b84

diff --git a/dev-python/fakeredis/fakeredis-2.10.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.10.0.ebuild
deleted file mode 100644
index c382b83985f0..
--- a/dev-python/fakeredis/fakeredis-2.10.0.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# 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_{9..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
-
-RDEPEND="
-   =dev-python/redis-4.2[${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 

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-04-05 Thread Arthur Zamarin
commit: 3a6fd1a3da16643a2f697f6046dff3487404baac
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Apr  5 08:32:04 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Apr  5 08:32:04 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a6fd1a3

dev-python/fakeredis: Stabilize 2.10.2 ALLARCHES, #903816

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-2.10.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.10.2.ebuild 
b/dev-python/fakeredis/fakeredis-2.10.2.ebuild
index c382b83985f0..a0ee8168e038 100644
--- a/dev-python/fakeredis/fakeredis-2.10.2.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.10.2.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="


[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-04-03 Thread Michał Górny
commit: fd67dbb34c1933a7e607e990be23224eb676daff
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Apr  4 04:25:24 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Apr  4 04:48:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd67dbb3

dev-python/fakeredis: Bump to 2.10.3

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.10.3.ebuild | 77 
 2 files changed, 78 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 082c6732d649..3ca33d3bfb0e 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
+DIST fakeredis-2.10.3.tar.gz 94025 BLAKE2B 
faf178d53e783c4475513bf9f485b6eaefc63bc45c5ebd95ecfa1aaed982e236877230ea19526d8d12f152f1c429c5003b04abd2cc4f7ed43dbde581b07fbdf1
 SHA512 
694b1b540e8b9b32a5a44e3094b8bab307c5af400335efe9eb034c5ed161c1583d4700c08ef16991a1f03502aeb835d89b327448c3385de548dd39aafdbcc2a8
 DIST fakeredis-py-2.10.0.gh.tar.gz 160050 BLAKE2B 
9c97abe80ca683cd068e3e8616b068c166f08f1b1eb360b76c57da4b9d68396a5dd6fb4152e92dcd73a1407c50e259db54ba5edd61bc2dca774672de84fcf2d3
 SHA512 
31df18ead5e2937a7a98297f4dc08790371968dd1fa6d9dfa54eb35ab27c2a4a88e2186c252c8a630e0e70fa04e67eccb68e687f9383b6770313cf8b79f6b3bc
 DIST fakeredis-py-2.10.1.gh.tar.gz 159626 BLAKE2B 
41d28b57c369273d96a985d6b47c8b162d1fc94c508daae12048e139c9d7bb9c44b39c95eb77cfb06d24cd1b44ccaa65f3d32f4976bfdda72e319d5da1cd69c4
 SHA512 
5659f5e3a638916bfe9ad88fff45b266488aa6d4e0b503f8594308ecfb8e97b1f588b658cb01a5dbe5fc06e64a1bbb6eafaa28aed0b8761b5e15638615ea
 DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a

diff --git a/dev-python/fakeredis/fakeredis-2.10.3.ebuild 
b/dev-python/fakeredis/fakeredis-2.10.3.ebuild
new file mode 100644
index ..425cda7c342a
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.10.3.ebuild
@@ -0,0 +1,77 @@
+# 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_{9..11} )
+
+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/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-03-22 Thread Michał Górny
commit: d3a54f735a1097ced54d505657bddacf92e98ec5
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Mar 22 05:52:10 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Mar 22 06:05:35 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3a54f73

dev-python/fakeredis: Bump to 2.10.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.10.2.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 83f2961e7935..082c6732d649 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-py-2.10.0.gh.tar.gz 160050 BLAKE2B 
9c97abe80ca683cd068e3e8616b068c166f08f1b1eb360b76c57da4b9d68396a5dd6fb4152e92dcd73a1407c50e259db54ba5edd61bc2dca774672de84fcf2d3
 SHA512 
31df18ead5e2937a7a98297f4dc08790371968dd1fa6d9dfa54eb35ab27c2a4a88e2186c252c8a630e0e70fa04e67eccb68e687f9383b6770313cf8b79f6b3bc
 DIST fakeredis-py-2.10.1.gh.tar.gz 159626 BLAKE2B 
41d28b57c369273d96a985d6b47c8b162d1fc94c508daae12048e139c9d7bb9c44b39c95eb77cfb06d24cd1b44ccaa65f3d32f4976bfdda72e319d5da1cd69c4
 SHA512 
5659f5e3a638916bfe9ad88fff45b266488aa6d4e0b503f8594308ecfb8e97b1f588b658cb01a5dbe5fc06e64a1bbb6eafaa28aed0b8761b5e15638615ea
+DIST fakeredis-py-2.10.2.gh.tar.gz 159702 BLAKE2B 
ec385c01af9e32705435148c1c61d74c14d7b22a60b6a3466f1831f557bfe997af6ee96429cfdba00a1328db3cabe1579d65411e7c2b9972e5421963cd66815b
 SHA512 
2a3a87dcbe136465ff0465585562a5b8b0bc73504f491d3ec9c6e959b6cffaa3edbaa1c2e5199138f7a49dfdec3c3da6a2ae338228a8fe21c670a82c062c544a
 DIST fakeredis-py-2.9.2.gh.tar.gz 165549 BLAKE2B 
351e07976ed6a4d11429c83aefe3a0e2d4397a97fdb2904ab65ac4d2717d129f5ac018f071b8670012aabe127d87350f3285f6f86369bb4b7eadbd61da5774f7
 SHA512 
6e9ab0851f74ade2325aad88b86212b4052ca53a7510034cd888ef4080eec4129b226ab8c166ab09fa6e3d3b2c3c70fce8adafdb4081a4d3501fd4d9d5e04b84

diff --git a/dev-python/fakeredis/fakeredis-2.10.2.ebuild 
b/dev-python/fakeredis/fakeredis-2.10.2.ebuild
new file mode 100644
index ..c382b83985f0
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.10.2.ebuild
@@ -0,0 +1,84 @@
+# 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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   =dev-python/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-03-15 Thread Michał Górny
commit: 7373e6825424d983aafe0dbe1699e94d3da72210
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Mar 16 03:09:13 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Mar 16 03:09:13 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7373e682

dev-python/fakeredis: Bump to 2.10.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.10.1.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 94cce147fa3d..83f2961e7935 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-2.10.0.gh.tar.gz 160050 BLAKE2B 
9c97abe80ca683cd068e3e8616b068c166f08f1b1eb360b76c57da4b9d68396a5dd6fb4152e92dcd73a1407c50e259db54ba5edd61bc2dca774672de84fcf2d3
 SHA512 
31df18ead5e2937a7a98297f4dc08790371968dd1fa6d9dfa54eb35ab27c2a4a88e2186c252c8a630e0e70fa04e67eccb68e687f9383b6770313cf8b79f6b3bc
+DIST fakeredis-py-2.10.1.gh.tar.gz 159626 BLAKE2B 
41d28b57c369273d96a985d6b47c8b162d1fc94c508daae12048e139c9d7bb9c44b39c95eb77cfb06d24cd1b44ccaa65f3d32f4976bfdda72e319d5da1cd69c4
 SHA512 
5659f5e3a638916bfe9ad88fff45b266488aa6d4e0b503f8594308ecfb8e97b1f588b658cb01a5dbe5fc06e64a1bbb6eafaa28aed0b8761b5e15638615ea
 DIST fakeredis-py-2.9.2.gh.tar.gz 165549 BLAKE2B 
351e07976ed6a4d11429c83aefe3a0e2d4397a97fdb2904ab65ac4d2717d129f5ac018f071b8670012aabe127d87350f3285f6f86369bb4b7eadbd61da5774f7
 SHA512 
6e9ab0851f74ade2325aad88b86212b4052ca53a7510034cd888ef4080eec4129b226ab8c166ab09fa6e3d3b2c3c70fce8adafdb4081a4d3501fd4d9d5e04b84

diff --git a/dev-python/fakeredis/fakeredis-2.10.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.10.1.ebuild
new file mode 100644
index ..c382b83985f0
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.10.1.ebuild
@@ -0,0 +1,84 @@
+# 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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   =dev-python/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-03-11 Thread Michał Górny
commit: 8d5e7acaf753b93c25962dff7e866d654d039563
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Mar 11 16:10:52 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Mar 11 16:17:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d5e7aca

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  3 -
 dev-python/fakeredis/fakeredis-2.6.0.ebuild | 88 -
 dev-python/fakeredis/fakeredis-2.9.0.ebuild | 83 ---
 dev-python/fakeredis/fakeredis-2.9.1.ebuild | 83 ---
 4 files changed, 257 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 125350e0a3fa..94cce147fa3d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,5 +1,2 @@
 DIST fakeredis-py-2.10.0.gh.tar.gz 160050 BLAKE2B 
9c97abe80ca683cd068e3e8616b068c166f08f1b1eb360b76c57da4b9d68396a5dd6fb4152e92dcd73a1407c50e259db54ba5edd61bc2dca774672de84fcf2d3
 SHA512 
31df18ead5e2937a7a98297f4dc08790371968dd1fa6d9dfa54eb35ab27c2a4a88e2186c252c8a630e0e70fa04e67eccb68e687f9383b6770313cf8b79f6b3bc
-DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
-DIST fakeredis-py-2.9.0.gh.tar.gz 165442 BLAKE2B 
e71780b273f1847454d0e6e89f3f97a9d4a81d86345857fced39413521202f299b90c8a218f12b15d79a3bb7c865d7b0280798920cfd93120a553511b3a343ff
 SHA512 
2ddf2570e7f00647834f8f07a3fef6ec68d630ff93ddd5375dcc47a14a5a7bf430dbc4a1abfb38fa2b5e18f1aa1f4ef5413b39c4bb3ed9d167aa1729edfa9870
-DIST fakeredis-py-2.9.1.gh.tar.gz 165449 BLAKE2B 
6d0b6937a460d5fd27270df5e2d88c332f4ab42e97430fc7efd5777e35051fd44f6ab01b013637ee17bccada199e126075e2efd5fa7e3fd0112739e0e14f3c31
 SHA512 
bf18454ec2ab62e49b4b3f93d494d7648b1b82d9ec3720e7418767dc4acdfc89e86df8ec1b9814ac69fb4b6fa13d25f2ed3a62f82f479d6614a994904f97f249
 DIST fakeredis-py-2.9.2.gh.tar.gz 165549 BLAKE2B 
351e07976ed6a4d11429c83aefe3a0e2d4397a97fdb2904ab65ac4d2717d129f5ac018f071b8670012aabe127d87350f3285f6f86369bb4b7eadbd61da5774f7
 SHA512 
6e9ab0851f74ade2325aad88b86212b4052ca53a7510034cd888ef4080eec4129b226ab8c166ab09fa6e3d3b2c3c70fce8adafdb4081a4d3501fd4d9d5e04b84

diff --git a/dev-python/fakeredis/fakeredis-2.6.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.6.0.ebuild
deleted file mode 100644
index 3e6baad1f89d..
--- a/dev-python/fakeredis/fakeredis-2.6.0.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# 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_{9..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-
-RDEPEND="
-   >=dev-python/redis-4.2[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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"
-  

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-03-11 Thread Sam James
commit: f044cdf06926149165a07d46ca26fe4569ceb6a0
Author: Sam James  gentoo  org>
AuthorDate: Sat Mar 11 15:59:57 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar 11 16:00:18 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f044cdf0

dev-python/fakeredis: Stabilize 2.9.2 ALLARCHES, #900855

Signed-off-by: Sam James  gentoo.org>

 dev-python/fakeredis/fakeredis-2.9.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.9.2.ebuild 
b/dev-python/fakeredis/fakeredis-2.9.2.ebuild
index 11e604ae7bad..ee988f98e4f7 100644
--- a/dev-python/fakeredis/fakeredis-2.9.2.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.9.2.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="


[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-03-04 Thread Michał Górny
commit: 137d79838b55b0096f1afe49ffe7f9c95cc1acfc
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Mar  4 17:51:52 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Mar  4 18:16:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=137d7983

dev-python/fakeredis: Bump to 2.10.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-2.10.0.ebuild | 84 
 2 files changed, 85 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 9ae06a7acfc1..125350e0a3fa 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
+DIST fakeredis-py-2.10.0.gh.tar.gz 160050 BLAKE2B 
9c97abe80ca683cd068e3e8616b068c166f08f1b1eb360b76c57da4b9d68396a5dd6fb4152e92dcd73a1407c50e259db54ba5edd61bc2dca774672de84fcf2d3
 SHA512 
31df18ead5e2937a7a98297f4dc08790371968dd1fa6d9dfa54eb35ab27c2a4a88e2186c252c8a630e0e70fa04e67eccb68e687f9383b6770313cf8b79f6b3bc
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
 DIST fakeredis-py-2.9.0.gh.tar.gz 165442 BLAKE2B 
e71780b273f1847454d0e6e89f3f97a9d4a81d86345857fced39413521202f299b90c8a218f12b15d79a3bb7c865d7b0280798920cfd93120a553511b3a343ff
 SHA512 
2ddf2570e7f00647834f8f07a3fef6ec68d630ff93ddd5375dcc47a14a5a7bf430dbc4a1abfb38fa2b5e18f1aa1f4ef5413b39c4bb3ed9d167aa1729edfa9870
 DIST fakeredis-py-2.9.1.gh.tar.gz 165449 BLAKE2B 
6d0b6937a460d5fd27270df5e2d88c332f4ab42e97430fc7efd5777e35051fd44f6ab01b013637ee17bccada199e126075e2efd5fa7e3fd0112739e0e14f3c31
 SHA512 
bf18454ec2ab62e49b4b3f93d494d7648b1b82d9ec3720e7418767dc4acdfc89e86df8ec1b9814ac69fb4b6fa13d25f2ed3a62f82f479d6614a994904f97f249

diff --git a/dev-python/fakeredis/fakeredis-2.10.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.10.0.ebuild
new file mode 100644
index ..c382b83985f0
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.10.0.ebuild
@@ -0,0 +1,84 @@
+# 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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   =dev-python/redis-4.2[${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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-20 Thread Michał Górny
commit: b345b32c9aa0befa219b00c3a31c6cc48e5ebe39
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Feb 21 06:24:15 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Feb 21 07:37:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b345b32c

dev-python/fakeredis: Bump to 2.9.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.9.2.ebuild | 83 +
 2 files changed, 84 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 13104fc3e1f7..9ae06a7acfc1 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
 DIST fakeredis-py-2.9.0.gh.tar.gz 165442 BLAKE2B 
e71780b273f1847454d0e6e89f3f97a9d4a81d86345857fced39413521202f299b90c8a218f12b15d79a3bb7c865d7b0280798920cfd93120a553511b3a343ff
 SHA512 
2ddf2570e7f00647834f8f07a3fef6ec68d630ff93ddd5375dcc47a14a5a7bf430dbc4a1abfb38fa2b5e18f1aa1f4ef5413b39c4bb3ed9d167aa1729edfa9870
 DIST fakeredis-py-2.9.1.gh.tar.gz 165449 BLAKE2B 
6d0b6937a460d5fd27270df5e2d88c332f4ab42e97430fc7efd5777e35051fd44f6ab01b013637ee17bccada199e126075e2efd5fa7e3fd0112739e0e14f3c31
 SHA512 
bf18454ec2ab62e49b4b3f93d494d7648b1b82d9ec3720e7418767dc4acdfc89e86df8ec1b9814ac69fb4b6fa13d25f2ed3a62f82f479d6614a994904f97f249
+DIST fakeredis-py-2.9.2.gh.tar.gz 165549 BLAKE2B 
351e07976ed6a4d11429c83aefe3a0e2d4397a97fdb2904ab65ac4d2717d129f5ac018f071b8670012aabe127d87350f3285f6f86369bb4b7eadbd61da5774f7
 SHA512 
6e9ab0851f74ade2325aad88b86212b4052ca53a7510034cd888ef4080eec4129b226ab8c166ab09fa6e3d3b2c3c70fce8adafdb4081a4d3501fd4d9d5e04b84

diff --git a/dev-python/fakeredis/fakeredis-2.9.2.ebuild 
b/dev-python/fakeredis/fakeredis-2.9.2.ebuild
new file mode 100644
index ..11e604ae7bad
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.9.2.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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   =dev-python/redis-4.2[${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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-20 Thread Michał Górny
commit: 84081b95d12c6468e82526362c299cccf79a21c7
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Feb 20 14:54:31 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Feb 20 15:22:08 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84081b95

dev-python/fakeredis: Bump to 2.9.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.9.1.ebuild | 83 +
 2 files changed, 84 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index d98c71f92844..13104fc3e1f7 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
 DIST fakeredis-py-2.9.0.gh.tar.gz 165442 BLAKE2B 
e71780b273f1847454d0e6e89f3f97a9d4a81d86345857fced39413521202f299b90c8a218f12b15d79a3bb7c865d7b0280798920cfd93120a553511b3a343ff
 SHA512 
2ddf2570e7f00647834f8f07a3fef6ec68d630ff93ddd5375dcc47a14a5a7bf430dbc4a1abfb38fa2b5e18f1aa1f4ef5413b39c4bb3ed9d167aa1729edfa9870
+DIST fakeredis-py-2.9.1.gh.tar.gz 165449 BLAKE2B 
6d0b6937a460d5fd27270df5e2d88c332f4ab42e97430fc7efd5777e35051fd44f6ab01b013637ee17bccada199e126075e2efd5fa7e3fd0112739e0e14f3c31
 SHA512 
bf18454ec2ab62e49b4b3f93d494d7648b1b82d9ec3720e7418767dc4acdfc89e86df8ec1b9814ac69fb4b6fa13d25f2ed3a62f82f479d6614a994904f97f249

diff --git a/dev-python/fakeredis/fakeredis-2.9.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.9.1.ebuild
new file mode 100644
index ..11e604ae7bad
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.9.1.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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   =dev-python/redis-4.2[${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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-15 Thread Michał Górny
commit: 69ed0f59f5ae3a707c1980ee834631f89fa4c597
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Feb 15 19:50:07 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Feb 15 19:50:07 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69ed0f59

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  2 -
 dev-python/fakeredis/fakeredis-2.4.0.ebuild | 88 -
 dev-python/fakeredis/fakeredis-2.8.0.ebuild | 83 ---
 3 files changed, 173 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index d62bc66fe1c0..d98c71f92844 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,4 +1,2 @@
-DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
-DIST fakeredis-py-2.8.0.gh.tar.gz 163863 BLAKE2B 
ccfb685e57e011afe22906751d3b48c8405ab71ce8b27a36c9168418dfcb4c3761d4162bc9f587396c04bbe4878675921bdfd43effa62ffc0ce6133d7aaf
 SHA512 
51199af0b3abada364664df8d0a091a7f200daf2c180f45488414672962338db8055488629f45d4a0046c48bcf711927c184726efe6cda4c4765fe9763447551
 DIST fakeredis-py-2.9.0.gh.tar.gz 165442 BLAKE2B 
e71780b273f1847454d0e6e89f3f97a9d4a81d86345857fced39413521202f299b90c8a218f12b15d79a3bb7c865d7b0280798920cfd93120a553511b3a343ff
 SHA512 
2ddf2570e7f00647834f8f07a3fef6ec68d630ff93ddd5375dcc47a14a5a7bf430dbc4a1abfb38fa2b5e18f1aa1f4ef5413b39c4bb3ed9d167aa1729edfa9870

diff --git a/dev-python/fakeredis/fakeredis-2.4.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.4.0.ebuild
deleted file mode 100644
index 3e6baad1f89d..
--- a/dev-python/fakeredis/fakeredis-2.4.0.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# 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_{9..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-
-RDEPEND="
-   >=dev-python/redis-4.2[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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
-}

diff --git a/dev-python/fakeredis/fakeredis-2.8.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.8.0.ebuild
deleted file mode 

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-15 Thread Arthur Zamarin
commit: c2bbea70c3a746ccc20f7698fb9d10d8c14c68ed
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Feb 15 19:20:38 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Feb 15 19:20:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2bbea70

dev-python/fakeredis: Stabilize 2.6.0 ALLARCHES, #894500

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-2.6.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.6.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.6.0.ebuild
index 1d470272a507..3e6baad1f89d 100644
--- a/dev-python/fakeredis/fakeredis-2.6.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.6.0.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/redis-4.2[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-14 Thread Michał Górny
commit: b6b48b6e1dd802c7894247f45687fef2eabbf3fd
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Feb 15 07:17:04 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Feb 15 07:25:30 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6b48b6e

dev-python/fakeredis: Bump to 2.9.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.9.0.ebuild | 83 +
 2 files changed, 84 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index b561f8a58cd0..d62bc66fe1c0 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
 DIST fakeredis-py-2.8.0.gh.tar.gz 163863 BLAKE2B 
ccfb685e57e011afe22906751d3b48c8405ab71ce8b27a36c9168418dfcb4c3761d4162bc9f587396c04bbe4878675921bdfd43effa62ffc0ce6133d7aaf
 SHA512 
51199af0b3abada364664df8d0a091a7f200daf2c180f45488414672962338db8055488629f45d4a0046c48bcf711927c184726efe6cda4c4765fe9763447551
+DIST fakeredis-py-2.9.0.gh.tar.gz 165442 BLAKE2B 
e71780b273f1847454d0e6e89f3f97a9d4a81d86345857fced39413521202f299b90c8a218f12b15d79a3bb7c865d7b0280798920cfd93120a553511b3a343ff
 SHA512 
2ddf2570e7f00647834f8f07a3fef6ec68d630ff93ddd5375dcc47a14a5a7bf430dbc4a1abfb38fa2b5e18f1aa1f4ef5413b39c4bb3ed9d167aa1729edfa9870

diff --git a/dev-python/fakeredis/fakeredis-2.9.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.9.0.ebuild
new file mode 100644
index ..11e604ae7bad
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.9.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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   =dev-python/redis-4.2[${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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-14 Thread Michał Górny
commit: 2c207111a22d06776d943d69c3e0ecfc2b83f8db
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Feb 15 07:14:45 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Feb 15 07:16:25 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c207111

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  3 -
 dev-python/fakeredis/fakeredis-2.5.0.ebuild | 88 -
 dev-python/fakeredis/fakeredis-2.7.0.ebuild | 88 -
 dev-python/fakeredis/fakeredis-2.7.1.ebuild | 88 -
 4 files changed, 267 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index f20c73ac4de6..b561f8a58cd0 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,6 +1,3 @@
 DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a
-DIST fakeredis-py-2.5.0.gh.tar.gz 139911 BLAKE2B 
4e9c616b0066012e1ed681d06e73390fb670969c15fa57689244147a0175dbb14ff1c312066ffdc6eb2c647f884c351a98eebfb2c1ba0e6c1bbe1e6c3553808a
 SHA512 
aff5a8679763d4cf1717f790c7c384aa8e5056e5f175c306626f3a1671fe27aa3caf24368831033c9cf5bffa2e3e6be1104b183f3912eadf34fd6f37ea0c63e8
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
-DIST fakeredis-py-2.7.0.gh.tar.gz 162784 BLAKE2B 
acb218c375785ad4b8419f08f9c328f33f97eedb0f13ae09b760b6c87849b3f8a4b9210fe6aea59d763b27909bff8297a009757a1f5fd9b58c1936e6705e0833
 SHA512 
fc11f3b59971ae50f59e9d1684827a8f4d1127813f7d55641b43b1edbb1e4c75c76aa0734ad55c98cca404c7e343a02f72644f05aceb72849ef6f18dc2418890
-DIST fakeredis-py-2.7.1.gh.tar.gz 162831 BLAKE2B 
dec29c4b2f5e2c4f9492af00f7b6758ab18dba48ab92e382c78fa105a8bd6230cffc583876a203213d5e205c8cea5b0680518a48e74b7014b189e3b8f3ad3a65
 SHA512 
31a51feaaba208f4029e7c2030785f5c2fa670996d42ccde8f9e98f13d820fbaccfc17fa535589ec750625cdb0b13c40e57bf901f4bb73bae9054554698fcabf
 DIST fakeredis-py-2.8.0.gh.tar.gz 163863 BLAKE2B 
ccfb685e57e011afe22906751d3b48c8405ab71ce8b27a36c9168418dfcb4c3761d4162bc9f587396c04bbe4878675921bdfd43effa62ffc0ce6133d7aaf
 SHA512 
51199af0b3abada364664df8d0a091a7f200daf2c180f45488414672962338db8055488629f45d4a0046c48bcf711927c184726efe6cda4c4765fe9763447551

diff --git a/dev-python/fakeredis/fakeredis-2.5.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.5.0.ebuild
deleted file mode 100644
index 1d470272a507..
--- a/dev-python/fakeredis/fakeredis-2.5.0.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# 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_{9..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
-
-RDEPEND="
-   >=dev-python/redis-4.2[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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 

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-11 Thread Michał Górny
commit: 5302566a0770ad610a87fbf409e600d495d94158
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Feb 11 18:51:36 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Feb 11 19:11:48 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5302566a

dev-python/fakeredis: Bump to 2.8.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.8.0.ebuild | 83 +
 2 files changed, 84 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 738ea8eb2106..f20c73ac4de6 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -3,3 +3,4 @@ DIST fakeredis-py-2.5.0.gh.tar.gz 139911 BLAKE2B 
4e9c616b0066012e1ed681d06e73390
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
 DIST fakeredis-py-2.7.0.gh.tar.gz 162784 BLAKE2B 
acb218c375785ad4b8419f08f9c328f33f97eedb0f13ae09b760b6c87849b3f8a4b9210fe6aea59d763b27909bff8297a009757a1f5fd9b58c1936e6705e0833
 SHA512 
fc11f3b59971ae50f59e9d1684827a8f4d1127813f7d55641b43b1edbb1e4c75c76aa0734ad55c98cca404c7e343a02f72644f05aceb72849ef6f18dc2418890
 DIST fakeredis-py-2.7.1.gh.tar.gz 162831 BLAKE2B 
dec29c4b2f5e2c4f9492af00f7b6758ab18dba48ab92e382c78fa105a8bd6230cffc583876a203213d5e205c8cea5b0680518a48e74b7014b189e3b8f3ad3a65
 SHA512 
31a51feaaba208f4029e7c2030785f5c2fa670996d42ccde8f9e98f13d820fbaccfc17fa535589ec750625cdb0b13c40e57bf901f4bb73bae9054554698fcabf
+DIST fakeredis-py-2.8.0.gh.tar.gz 163863 BLAKE2B 
ccfb685e57e011afe22906751d3b48c8405ab71ce8b27a36c9168418dfcb4c3761d4162bc9f587396c04bbe4878675921bdfd43effa62ffc0ce6133d7aaf
 SHA512 
51199af0b3abada364664df8d0a091a7f200daf2c180f45488414672962338db8055488629f45d4a0046c48bcf711927c184726efe6cda4c4765fe9763447551

diff --git a/dev-python/fakeredis/fakeredis-2.8.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.8.0.ebuild
new file mode 100644
index ..11e604ae7bad
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.8.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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   =dev-python/redis-4.2[${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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-05 Thread Michał Górny
commit: 857bd33920246b3bf314e370ed2d8acc2635849d
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Feb  5 16:23:49 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Feb  5 17:06:58 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=857bd339

dev-python/fakeredis: Bump to 2.7.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.7.1.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index c706d38bea03..738ea8eb2106 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -2,3 +2,4 @@ DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb21
 DIST fakeredis-py-2.5.0.gh.tar.gz 139911 BLAKE2B 
4e9c616b0066012e1ed681d06e73390fb670969c15fa57689244147a0175dbb14ff1c312066ffdc6eb2c647f884c351a98eebfb2c1ba0e6c1bbe1e6c3553808a
 SHA512 
aff5a8679763d4cf1717f790c7c384aa8e5056e5f175c306626f3a1671fe27aa3caf24368831033c9cf5bffa2e3e6be1104b183f3912eadf34fd6f37ea0c63e8
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
 DIST fakeredis-py-2.7.0.gh.tar.gz 162784 BLAKE2B 
acb218c375785ad4b8419f08f9c328f33f97eedb0f13ae09b760b6c87849b3f8a4b9210fe6aea59d763b27909bff8297a009757a1f5fd9b58c1936e6705e0833
 SHA512 
fc11f3b59971ae50f59e9d1684827a8f4d1127813f7d55641b43b1edbb1e4c75c76aa0734ad55c98cca404c7e343a02f72644f05aceb72849ef6f18dc2418890
+DIST fakeredis-py-2.7.1.gh.tar.gz 162831 BLAKE2B 
dec29c4b2f5e2c4f9492af00f7b6758ab18dba48ab92e382c78fa105a8bd6230cffc583876a203213d5e205c8cea5b0680518a48e74b7014b189e3b8f3ad3a65
 SHA512 
31a51feaaba208f4029e7c2030785f5c2fa670996d42ccde8f9e98f13d820fbaccfc17fa535589ec750625cdb0b13c40e57bf901f4bb73bae9054554698fcabf

diff --git a/dev-python/fakeredis/fakeredis-2.7.1.ebuild 
b/dev-python/fakeredis/fakeredis-2.7.1.ebuild
new file mode 100644
index ..4186af5980d2
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.7.1.ebuild
@@ -0,0 +1,88 @@
+# 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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-02-03 Thread Michał Górny
commit: 20f56568d05917e1d2fd080806444959217cf0cc
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Feb  4 04:14:57 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Feb  4 04:39:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20f56568

dev-python/fakeredis: Bump to 2.7.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.7.0.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index c77fa416f141..c706d38bea03 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a
 DIST fakeredis-py-2.5.0.gh.tar.gz 139911 BLAKE2B 
4e9c616b0066012e1ed681d06e73390fb670969c15fa57689244147a0175dbb14ff1c312066ffdc6eb2c647f884c351a98eebfb2c1ba0e6c1bbe1e6c3553808a
 SHA512 
aff5a8679763d4cf1717f790c7c384aa8e5056e5f175c306626f3a1671fe27aa3caf24368831033c9cf5bffa2e3e6be1104b183f3912eadf34fd6f37ea0c63e8
 DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720
+DIST fakeredis-py-2.7.0.gh.tar.gz 162784 BLAKE2B 
acb218c375785ad4b8419f08f9c328f33f97eedb0f13ae09b760b6c87849b3f8a4b9210fe6aea59d763b27909bff8297a009757a1f5fd9b58c1936e6705e0833
 SHA512 
fc11f3b59971ae50f59e9d1684827a8f4d1127813f7d55641b43b1edbb1e4c75c76aa0734ad55c98cca404c7e343a02f72644f05aceb72849ef6f18dc2418890

diff --git a/dev-python/fakeredis/fakeredis-2.7.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.7.0.ebuild
new file mode 100644
index ..4186af5980d2
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.7.0.ebuild
@@ -0,0 +1,88 @@
+# 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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-01-27 Thread Michał Górny
commit: 6635241dd3672908d5f72fcbbe0cbf99b45f5a42
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Jan 28 06:30:49 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Jan 28 07:04:18 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6635241d

dev-python/fakeredis: Bump to 2.6.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.6.0.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 7eeba549552e..c77fa416f141 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a
 DIST fakeredis-py-2.5.0.gh.tar.gz 139911 BLAKE2B 
4e9c616b0066012e1ed681d06e73390fb670969c15fa57689244147a0175dbb14ff1c312066ffdc6eb2c647f884c351a98eebfb2c1ba0e6c1bbe1e6c3553808a
 SHA512 
aff5a8679763d4cf1717f790c7c384aa8e5056e5f175c306626f3a1671fe27aa3caf24368831033c9cf5bffa2e3e6be1104b183f3912eadf34fd6f37ea0c63e8
+DIST fakeredis-py-2.6.0.gh.tar.gz 151925 BLAKE2B 
60538efa5de93436177aa019908f02affb9df9b2aaf1349e933da6f066f98aaa255bbdb3297645ad1dc3b67a57a61bb8081e476f451799b512719f5779c1218d
 SHA512 
19a23be7a182f962e66686f3c4ec3a5b9fbc847d97e48f19fde11ae268f4a70de567ff2ca302a9fe0e7080de2215698cf5b2ff2febda5eef6748f3ec8d601720

diff --git a/dev-python/fakeredis/fakeredis-2.6.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.6.0.ebuild
new file mode 100644
index ..4186af5980d2
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.6.0.ebuild
@@ -0,0 +1,88 @@
+# 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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-01-26 Thread Michał Górny
commit: b643a865b1e602aa0c6ef25da2aa9a7637f8f5cd
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Jan 26 19:09:15 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Jan 26 19:09:15 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b643a865

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 -
 dev-python/fakeredis/fakeredis-2.2.0.ebuild | 87 -
 2 files changed, 88 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index a3b3320e95bc..7eeba549552e 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,2 @@
-DIST fakeredis-py-2.2.0.gh.tar.gz 128817 BLAKE2B 
8666427966e6a93cd33f521fbc38ecb9bb99e1c1a23506437d48bc6113f272aa89a465dc794b5130ef6dfa584f75f159fce0e3b6a50e5cb89b3bfe43ebcd89cd
 SHA512 
857033a6362a6088cec715571d74a9aa1eb3eb8356ed904b10831540ce5be62d798a211d52fb3d8effab253e50fdb3f2a530d39bd722d8be357426f53fb41fe7
 DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a
 DIST fakeredis-py-2.5.0.gh.tar.gz 139911 BLAKE2B 
4e9c616b0066012e1ed681d06e73390fb670969c15fa57689244147a0175dbb14ff1c312066ffdc6eb2c647f884c351a98eebfb2c1ba0e6c1bbe1e6c3553808a
 SHA512 
aff5a8679763d4cf1717f790c7c384aa8e5056e5f175c306626f3a1671fe27aa3caf24368831033c9cf5bffa2e3e6be1104b183f3912eadf34fd6f37ea0c63e8

diff --git a/dev-python/fakeredis/fakeredis-2.2.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.2.0.ebuild
deleted file mode 100644
index 6e28a6be536a..
--- a/dev-python/fakeredis/fakeredis-2.2.0.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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_{9..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-
-RDEPEND="
-   >=dev-python/redis-py-4.2[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-01-26 Thread Arthur Zamarin
commit: 308435fdc39c4908567d055ba2097b4fd298d4c2
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Thu Jan 26 18:41:54 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Jan 26 18:41:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=308435fd

dev-python/fakeredis: Stabilize 2.4.0 ALLARCHES, #892099

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-2.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-2.4.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.4.0.ebuild
index 4186af5980d2..407a0ae4ef68 100644
--- a/dev-python/fakeredis/fakeredis-2.4.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-2.4.0.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/redis-py-4.2[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2023-01-22 Thread Michał Górny
commit: a8da9ffd24b34efbbea072b5d6f4399f53e0e196
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Jan 23 07:01:26 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Jan 23 07:34:32 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8da9ffd

dev-python/fakeredis: Bump to 2.5.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.5.0.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 0551cfd38368..a3b3320e95bc 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-2.2.0.gh.tar.gz 128817 BLAKE2B 
8666427966e6a93cd33f521fbc38ecb9bb99e1c1a23506437d48bc6113f272aa89a465dc794b5130ef6dfa584f75f159fce0e3b6a50e5cb89b3bfe43ebcd89cd
 SHA512 
857033a6362a6088cec715571d74a9aa1eb3eb8356ed904b10831540ce5be62d798a211d52fb3d8effab253e50fdb3f2a530d39bd722d8be357426f53fb41fe7
 DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a
+DIST fakeredis-py-2.5.0.gh.tar.gz 139911 BLAKE2B 
4e9c616b0066012e1ed681d06e73390fb670969c15fa57689244147a0175dbb14ff1c312066ffdc6eb2c647f884c351a98eebfb2c1ba0e6c1bbe1e6c3553808a
 SHA512 
aff5a8679763d4cf1717f790c7c384aa8e5056e5f175c306626f3a1671fe27aa3caf24368831033c9cf5bffa2e3e6be1104b183f3912eadf34fd6f37ea0c63e8

diff --git a/dev-python/fakeredis/fakeredis-2.5.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.5.0.ebuild
new file mode 100644
index ..4186af5980d2
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.5.0.ebuild
@@ -0,0 +1,88 @@
+# 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_{9..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-12-25 Thread Michał Górny
commit: 1a734a18ac72a35563150d4698eb53b94d3fd2c6
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Dec 25 17:30:13 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Dec 25 17:32:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a734a18

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  4 --
 dev-python/fakeredis/fakeredis-1.10.1.ebuild | 87 ---
 dev-python/fakeredis/fakeredis-2.0.0.ebuild  | 87 ---
 dev-python/fakeredis/fakeredis-2.1.0.ebuild  | 87 ---
 dev-python/fakeredis/fakeredis-2.3.0.ebuild  | 88 
 5 files changed, 353 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 1f7715a66e85..0551cfd38368 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,6 +1,2 @@
-DIST fakeredis-py-1.10.1.gh.tar.gz 91420 BLAKE2B 
a88711b5d167aafcf6a74dc538b809a0410c60bff95c82fe81c1236b743d9fc0cacbc9057bcd5df20ed87b22c12b2e9346342e0991556caa51f4e88038fabcb5
 SHA512 
2a139dde02c00e516959173fbfe5ecae26d20ee56158de9ae7bc57360dabc58e4e919f11ba7979079019d981af8a2cbd17a1d8ac795003e26a7cbcbedd5588a8
-DIST fakeredis-py-2.0.0.gh.tar.gz 112218 BLAKE2B 
9bbbf76e6fe00a42d25c1688654906a71b93e65a20f3eca2b7d9fd13eedd48251e832e550b37dc82dcf5e65c686c408b291ba60d04c707df7d7d7f396f00190a
 SHA512 
e291782f27cdfa11520eef3b0bbd0d68ec7479a4630ad1e5a38d8d1d28109049fee0288e104e74f72caf9b04db553cc24f22843bd170d8bdb5efc47b8e9f5d6e
-DIST fakeredis-py-2.1.0.gh.tar.gz 128595 BLAKE2B 
f0b2e8ed9ec4156702f4e65e683f40cf79e1fde12ac70b16388ba65e9e49c8f4c92ade6f02195cc3755768fb2858d7e4f8970f54fa728c9fb32ac8cc2f68fa4f
 SHA512 
584a2a36185674d0fadedcc6018286c3edc8c36de730ac1cf09abcbe3b0cacf8dd0e4c964a7a0a053509dce0063f48ce13f122d230fbec9965af54c77b277ea5
 DIST fakeredis-py-2.2.0.gh.tar.gz 128817 BLAKE2B 
8666427966e6a93cd33f521fbc38ecb9bb99e1c1a23506437d48bc6113f272aa89a465dc794b5130ef6dfa584f75f159fce0e3b6a50e5cb89b3bfe43ebcd89cd
 SHA512 
857033a6362a6088cec715571d74a9aa1eb3eb8356ed904b10831540ce5be62d798a211d52fb3d8effab253e50fdb3f2a530d39bd722d8be357426f53fb41fe7
-DIST fakeredis-py-2.3.0.gh.tar.gz 130529 BLAKE2B 
71faffa3953e40075cb7cae3b664eb81bd20715c28766678d21449de768c4e621703ceb7053e36f19a0c6561ea9b83097392886e0da306460c9ca75a0a99c3d5
 SHA512 
b0a07d04cd95abe69c658f67943afa5c07e6fa43a6e467762061e3c112aa9961f550f9fa5dccfe6f0fd5fb941253840c6cd7e76bce5f256bfb1a400e05252651
 DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a

diff --git a/dev-python/fakeredis/fakeredis-1.10.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.10.1.ebuild
deleted file mode 100644
index 41aa8a40dd30..
--- a/dev-python/fakeredis/fakeredis-1.10.1.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{8..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-
-RDEPEND="
-   >=dev-python/redis-py-4.2[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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'

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-12-25 Thread Michał Górny
commit: 26993f2ad61b002da5bbc647aff0ee1e0c50f783
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Dec 25 07:51:23 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Dec 25 08:09:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26993f2a

dev-python/fakeredis: Bump to 2.4.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.4.0.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 6f66cdd9cec8..1f7715a66e85 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -3,3 +3,4 @@ DIST fakeredis-py-2.0.0.gh.tar.gz 112218 BLAKE2B 
9bbbf76e6fe00a42d25c1688654906a
 DIST fakeredis-py-2.1.0.gh.tar.gz 128595 BLAKE2B 
f0b2e8ed9ec4156702f4e65e683f40cf79e1fde12ac70b16388ba65e9e49c8f4c92ade6f02195cc3755768fb2858d7e4f8970f54fa728c9fb32ac8cc2f68fa4f
 SHA512 
584a2a36185674d0fadedcc6018286c3edc8c36de730ac1cf09abcbe3b0cacf8dd0e4c964a7a0a053509dce0063f48ce13f122d230fbec9965af54c77b277ea5
 DIST fakeredis-py-2.2.0.gh.tar.gz 128817 BLAKE2B 
8666427966e6a93cd33f521fbc38ecb9bb99e1c1a23506437d48bc6113f272aa89a465dc794b5130ef6dfa584f75f159fce0e3b6a50e5cb89b3bfe43ebcd89cd
 SHA512 
857033a6362a6088cec715571d74a9aa1eb3eb8356ed904b10831540ce5be62d798a211d52fb3d8effab253e50fdb3f2a530d39bd722d8be357426f53fb41fe7
 DIST fakeredis-py-2.3.0.gh.tar.gz 130529 BLAKE2B 
71faffa3953e40075cb7cae3b664eb81bd20715c28766678d21449de768c4e621703ceb7053e36f19a0c6561ea9b83097392886e0da306460c9ca75a0a99c3d5
 SHA512 
b0a07d04cd95abe69c658f67943afa5c07e6fa43a6e467762061e3c112aa9961f550f9fa5dccfe6f0fd5fb941253840c6cd7e76bce5f256bfb1a400e05252651
+DIST fakeredis-py-2.4.0.gh.tar.gz 132163 BLAKE2B 
fc3858eb364c63d776c81d715cbfb218dc0e763d568c97b0d1dafb0716aaf87e928f9b81bd49d28fcc235f4285277446945595d42ff1d440e5c8491b78abb6c3
 SHA512 
5fba3e84d0506b52e1561f750e045b6227ea21387ddb3a89b8a61e9698fc0e9ec80c4a7048d9426fb0d8e9f2acd808e7e07fcb11d14d6852d9b057fec86d6e6a

diff --git a/dev-python/fakeredis/fakeredis-2.4.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.4.0.ebuild
new file mode 100644
index ..731d97e0a6f5
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.4.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-12-16 Thread Michał Górny
commit: 3d6ed4c983337c136db719c7c84b323a3366c53b
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Dec 16 09:58:47 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Dec 16 11:31:27 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d6ed4c9

dev-python/fakeredis: Bump to 2.3.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.3.0.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 67493433650d..6f66cdd9cec8 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -2,3 +2,4 @@ DIST fakeredis-py-1.10.1.gh.tar.gz 91420 BLAKE2B 
a88711b5d167aafcf6a74dc538b809a
 DIST fakeredis-py-2.0.0.gh.tar.gz 112218 BLAKE2B 
9bbbf76e6fe00a42d25c1688654906a71b93e65a20f3eca2b7d9fd13eedd48251e832e550b37dc82dcf5e65c686c408b291ba60d04c707df7d7d7f396f00190a
 SHA512 
e291782f27cdfa11520eef3b0bbd0d68ec7479a4630ad1e5a38d8d1d28109049fee0288e104e74f72caf9b04db553cc24f22843bd170d8bdb5efc47b8e9f5d6e
 DIST fakeredis-py-2.1.0.gh.tar.gz 128595 BLAKE2B 
f0b2e8ed9ec4156702f4e65e683f40cf79e1fde12ac70b16388ba65e9e49c8f4c92ade6f02195cc3755768fb2858d7e4f8970f54fa728c9fb32ac8cc2f68fa4f
 SHA512 
584a2a36185674d0fadedcc6018286c3edc8c36de730ac1cf09abcbe3b0cacf8dd0e4c964a7a0a053509dce0063f48ce13f122d230fbec9965af54c77b277ea5
 DIST fakeredis-py-2.2.0.gh.tar.gz 128817 BLAKE2B 
8666427966e6a93cd33f521fbc38ecb9bb99e1c1a23506437d48bc6113f272aa89a465dc794b5130ef6dfa584f75f159fce0e3b6a50e5cb89b3bfe43ebcd89cd
 SHA512 
857033a6362a6088cec715571d74a9aa1eb3eb8356ed904b10831540ce5be62d798a211d52fb3d8effab253e50fdb3f2a530d39bd722d8be357426f53fb41fe7
+DIST fakeredis-py-2.3.0.gh.tar.gz 130529 BLAKE2B 
71faffa3953e40075cb7cae3b664eb81bd20715c28766678d21449de768c4e621703ceb7053e36f19a0c6561ea9b83097392886e0da306460c9ca75a0a99c3d5
 SHA512 
b0a07d04cd95abe69c658f67943afa5c07e6fa43a6e467762061e3c112aa9961f550f9fa5dccfe6f0fd5fb941253840c6cd7e76bce5f256bfb1a400e05252651

diff --git a/dev-python/fakeredis/fakeredis-2.3.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.3.0.ebuild
new file mode 100644
index ..731d97e0a6f5
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.3.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-12-05 Thread Michał Górny
commit: d392ee6e963c5cb20d7141514bde117e8faf4e74
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Dec  6 05:34:12 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Dec  6 06:02:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d392ee6e

dev-python/fakeredis: Bump to 2.2.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.2.0.ebuild | 87 +
 2 files changed, 88 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 034a6f901a78..67493433650d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-py-1.10.1.gh.tar.gz 91420 BLAKE2B 
a88711b5d167aafcf6a74dc538b809a0410c60bff95c82fe81c1236b743d9fc0cacbc9057bcd5df20ed87b22c12b2e9346342e0991556caa51f4e88038fabcb5
 SHA512 
2a139dde02c00e516959173fbfe5ecae26d20ee56158de9ae7bc57360dabc58e4e919f11ba7979079019d981af8a2cbd17a1d8ac795003e26a7cbcbedd5588a8
 DIST fakeredis-py-2.0.0.gh.tar.gz 112218 BLAKE2B 
9bbbf76e6fe00a42d25c1688654906a71b93e65a20f3eca2b7d9fd13eedd48251e832e550b37dc82dcf5e65c686c408b291ba60d04c707df7d7d7f396f00190a
 SHA512 
e291782f27cdfa11520eef3b0bbd0d68ec7479a4630ad1e5a38d8d1d28109049fee0288e104e74f72caf9b04db553cc24f22843bd170d8bdb5efc47b8e9f5d6e
 DIST fakeredis-py-2.1.0.gh.tar.gz 128595 BLAKE2B 
f0b2e8ed9ec4156702f4e65e683f40cf79e1fde12ac70b16388ba65e9e49c8f4c92ade6f02195cc3755768fb2858d7e4f8970f54fa728c9fb32ac8cc2f68fa4f
 SHA512 
584a2a36185674d0fadedcc6018286c3edc8c36de730ac1cf09abcbe3b0cacf8dd0e4c964a7a0a053509dce0063f48ce13f122d230fbec9965af54c77b277ea5
+DIST fakeredis-py-2.2.0.gh.tar.gz 128817 BLAKE2B 
8666427966e6a93cd33f521fbc38ecb9bb99e1c1a23506437d48bc6113f272aa89a465dc794b5130ef6dfa584f75f159fce0e3b6a50e5cb89b3bfe43ebcd89cd
 SHA512 
857033a6362a6088cec715571d74a9aa1eb3eb8356ed904b10831540ce5be62d798a211d52fb3d8effab253e50fdb3f2a530d39bd722d8be357426f53fb41fe7

diff --git a/dev-python/fakeredis/fakeredis-2.2.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.2.0.ebuild
new file mode 100644
index ..a75d02ef0771
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.2.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-11-30 Thread Michał Górny
commit: 8f205a24aef1ebbdb645d05e958ee1ad67d0dcdf
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Dec  1 06:01:07 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Dec  1 07:09:06 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f205a24

dev-python/fakeredis: Bump to 2.1.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.1.0.ebuild | 87 +
 2 files changed, 88 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 9b31069cb06d..034a6f901a78 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-1.10.1.gh.tar.gz 91420 BLAKE2B 
a88711b5d167aafcf6a74dc538b809a0410c60bff95c82fe81c1236b743d9fc0cacbc9057bcd5df20ed87b22c12b2e9346342e0991556caa51f4e88038fabcb5
 SHA512 
2a139dde02c00e516959173fbfe5ecae26d20ee56158de9ae7bc57360dabc58e4e919f11ba7979079019d981af8a2cbd17a1d8ac795003e26a7cbcbedd5588a8
 DIST fakeredis-py-2.0.0.gh.tar.gz 112218 BLAKE2B 
9bbbf76e6fe00a42d25c1688654906a71b93e65a20f3eca2b7d9fd13eedd48251e832e550b37dc82dcf5e65c686c408b291ba60d04c707df7d7d7f396f00190a
 SHA512 
e291782f27cdfa11520eef3b0bbd0d68ec7479a4630ad1e5a38d8d1d28109049fee0288e104e74f72caf9b04db553cc24f22843bd170d8bdb5efc47b8e9f5d6e
+DIST fakeredis-py-2.1.0.gh.tar.gz 128595 BLAKE2B 
f0b2e8ed9ec4156702f4e65e683f40cf79e1fde12ac70b16388ba65e9e49c8f4c92ade6f02195cc3755768fb2858d7e4f8970f54fa728c9fb32ac8cc2f68fa4f
 SHA512 
584a2a36185674d0fadedcc6018286c3edc8c36de730ac1cf09abcbe3b0cacf8dd0e4c964a7a0a053509dce0063f48ce13f122d230fbec9965af54c77b277ea5

diff --git a/dev-python/fakeredis/fakeredis-2.1.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.1.0.ebuild
new file mode 100644
index ..a75d02ef0771
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.1.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-11-25 Thread Michał Górny
commit: 02cfc3f883b0e0f3606a64498e9ba48c248a85f7
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Nov 25 14:02:40 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Nov 25 14:04:01 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02cfc3f8

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  2 -
 dev-python/fakeredis/fakeredis-1.10.0.ebuild | 87 
 dev-python/fakeredis/fakeredis-1.9.4.ebuild  | 87 
 3 files changed, 176 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 9f9a06534142..9b31069cb06d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,4 +1,2 @@
-DIST fakeredis-py-1.10.0.gh.tar.gz 88305 BLAKE2B 
71ffec7f872c8021914e24ee83f250e1e27bf2117fabb3513b54ad635692f43cefaf565090d3829ee189844a83ccc517016d8a4f9c31da82b2188d8d951c4dcf
 SHA512 
8fb32917c70931de50ef90526854ee7c0d888c04582a284864c19956868961cd689db0a7b3ad39e783f53741efde5a33cc600faf09fdeac7046fe29e9cd75933
 DIST fakeredis-py-1.10.1.gh.tar.gz 91420 BLAKE2B 
a88711b5d167aafcf6a74dc538b809a0410c60bff95c82fe81c1236b743d9fc0cacbc9057bcd5df20ed87b22c12b2e9346342e0991556caa51f4e88038fabcb5
 SHA512 
2a139dde02c00e516959173fbfe5ecae26d20ee56158de9ae7bc57360dabc58e4e919f11ba7979079019d981af8a2cbd17a1d8ac795003e26a7cbcbedd5588a8
-DIST fakeredis-py-1.9.4.gh.tar.gz 87232 BLAKE2B 
b02b14960071ed38f6144b60d845d31d0d102f4d061dd2f156610f90385f35ff3128ab293fbf24049fd1f18a7558e9e13cc2f7179230a9837313acb2a7121053
 SHA512 
2fe74c5cc798edeef391136f8b09a651381faa04b7dd1e5a07007e6f89596e45970977b435e6fbdad03b73e9826a439da2e105ca9592fb3733547789d106182e
 DIST fakeredis-py-2.0.0.gh.tar.gz 112218 BLAKE2B 
9bbbf76e6fe00a42d25c1688654906a71b93e65a20f3eca2b7d9fd13eedd48251e832e550b37dc82dcf5e65c686c408b291ba60d04c707df7d7d7f396f00190a
 SHA512 
e291782f27cdfa11520eef3b0bbd0d68ec7479a4630ad1e5a38d8d1d28109049fee0288e104e74f72caf9b04db553cc24f22843bd170d8bdb5efc47b8e9f5d6e

diff --git a/dev-python/fakeredis/fakeredis-1.10.0.ebuild 
b/dev-python/fakeredis/fakeredis-1.10.0.ebuild
deleted file mode 100644
index 315d3ed64771..
--- a/dev-python/fakeredis/fakeredis-1.10.0.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{8..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
-
-RDEPEND="
-   >=dev-python/redis-py-4.2[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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
-}

diff --git a/dev-python/fakeredis/fakeredis-1.9.4.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.4.ebuild
deleted file mode 100644
index 51b6d085b57e..
--- 

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-11-25 Thread Arthur Zamarin
commit: 1b6036c2383c8754d4cedbe19d770b88c6909d3e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Nov 25 13:58:00 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Nov 25 13:58:00 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b6036c2

dev-python/fakeredis: Stabilize 1.10.1 ALLARCHES, #883013

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-1.10.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-1.10.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.10.1.ebuild
index a75d02ef0771..41aa8a40dd30 100644
--- a/dev-python/fakeredis/fakeredis-1.10.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.10.1.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/redis-py-4.2[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-11-19 Thread Michał Górny
commit: fa1c26686a4139e6b04f782102cf6671dfbf0cfb
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Nov 19 07:10:05 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Nov 19 09:42:49 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa1c2668

dev-python/fakeredis: Bump to 2.0.0

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-2.0.0.ebuild | 87 +
 2 files changed, 88 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index eb47e9e52350..9f9a06534142 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-py-1.10.0.gh.tar.gz 88305 BLAKE2B 
71ffec7f872c8021914e24ee83f250e1e27bf2117fabb3513b54ad635692f43cefaf565090d3829ee189844a83ccc517016d8a4f9c31da82b2188d8d951c4dcf
 SHA512 
8fb32917c70931de50ef90526854ee7c0d888c04582a284864c19956868961cd689db0a7b3ad39e783f53741efde5a33cc600faf09fdeac7046fe29e9cd75933
 DIST fakeredis-py-1.10.1.gh.tar.gz 91420 BLAKE2B 
a88711b5d167aafcf6a74dc538b809a0410c60bff95c82fe81c1236b743d9fc0cacbc9057bcd5df20ed87b22c12b2e9346342e0991556caa51f4e88038fabcb5
 SHA512 
2a139dde02c00e516959173fbfe5ecae26d20ee56158de9ae7bc57360dabc58e4e919f11ba7979079019d981af8a2cbd17a1d8ac795003e26a7cbcbedd5588a8
 DIST fakeredis-py-1.9.4.gh.tar.gz 87232 BLAKE2B 
b02b14960071ed38f6144b60d845d31d0d102f4d061dd2f156610f90385f35ff3128ab293fbf24049fd1f18a7558e9e13cc2f7179230a9837313acb2a7121053
 SHA512 
2fe74c5cc798edeef391136f8b09a651381faa04b7dd1e5a07007e6f89596e45970977b435e6fbdad03b73e9826a439da2e105ca9592fb3733547789d106182e
+DIST fakeredis-py-2.0.0.gh.tar.gz 112218 BLAKE2B 
9bbbf76e6fe00a42d25c1688654906a71b93e65a20f3eca2b7d9fd13eedd48251e832e550b37dc82dcf5e65c686c408b291ba60d04c707df7d7d7f396f00190a
 SHA512 
e291782f27cdfa11520eef3b0bbd0d68ec7479a4630ad1e5a38d8d1d28109049fee0288e104e74f72caf9b04db553cc24f22843bd170d8bdb5efc47b8e9f5d6e

diff --git a/dev-python/fakeredis/fakeredis-2.0.0.ebuild 
b/dev-python/fakeredis/fakeredis-2.0.0.ebuild
new file mode 100644
index ..a75d02ef0771
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-2.0.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-11-09 Thread Michał Górny
commit: 531d91c742daf01ff0bdb82e78ca7e811f380b94
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Nov  9 07:30:40 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Nov  9 08:38:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=531d91c7

dev-python/fakeredis: Bump to 1.10.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-1.10.1.ebuild | 87 
 2 files changed, 88 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 001a1a961b8d..eb47e9e52350 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-1.10.0.gh.tar.gz 88305 BLAKE2B 
71ffec7f872c8021914e24ee83f250e1e27bf2117fabb3513b54ad635692f43cefaf565090d3829ee189844a83ccc517016d8a4f9c31da82b2188d8d951c4dcf
 SHA512 
8fb32917c70931de50ef90526854ee7c0d888c04582a284864c19956868961cd689db0a7b3ad39e783f53741efde5a33cc600faf09fdeac7046fe29e9cd75933
+DIST fakeredis-py-1.10.1.gh.tar.gz 91420 BLAKE2B 
a88711b5d167aafcf6a74dc538b809a0410c60bff95c82fe81c1236b743d9fc0cacbc9057bcd5df20ed87b22c12b2e9346342e0991556caa51f4e88038fabcb5
 SHA512 
2a139dde02c00e516959173fbfe5ecae26d20ee56158de9ae7bc57360dabc58e4e919f11ba7979079019d981af8a2cbd17a1d8ac795003e26a7cbcbedd5588a8
 DIST fakeredis-py-1.9.4.gh.tar.gz 87232 BLAKE2B 
b02b14960071ed38f6144b60d845d31d0d102f4d061dd2f156610f90385f35ff3128ab293fbf24049fd1f18a7558e9e13cc2f7179230a9837313acb2a7121053
 SHA512 
2fe74c5cc798edeef391136f8b09a651381faa04b7dd1e5a07007e6f89596e45970977b435e6fbdad03b73e9826a439da2e105ca9592fb3733547789d106182e

diff --git a/dev-python/fakeredis/fakeredis-1.10.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.10.1.ebuild
new file mode 100644
index ..a75d02ef0771
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.10.1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-11-03 Thread Arthur Zamarin
commit: d050862ac8f993214d0fb3e5b61f30de887e5eb0
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Thu Nov  3 19:26:58 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Nov  3 19:26:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d050862a

dev-python/fakeredis: drop 1.9.1, 1.9.2, 1.9.3

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/Manifest   |  3 -
 dev-python/fakeredis/fakeredis-1.9.1.ebuild | 88 -
 dev-python/fakeredis/fakeredis-1.9.2.ebuild | 88 -
 dev-python/fakeredis/fakeredis-1.9.3.ebuild | 87 
 4 files changed, 266 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 86e4f5049200..001a1a961b8d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,5 +1,2 @@
 DIST fakeredis-py-1.10.0.gh.tar.gz 88305 BLAKE2B 
71ffec7f872c8021914e24ee83f250e1e27bf2117fabb3513b54ad635692f43cefaf565090d3829ee189844a83ccc517016d8a4f9c31da82b2188d8d951c4dcf
 SHA512 
8fb32917c70931de50ef90526854ee7c0d888c04582a284864c19956868961cd689db0a7b3ad39e783f53741efde5a33cc600faf09fdeac7046fe29e9cd75933
-DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B 
aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67
 SHA512 
27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39
-DIST fakeredis-py-1.9.2.gh.tar.gz 87038 BLAKE2B 
89ae3059d58fc9649979b787339a98eaedccd2b29814090e1bf0cb2c54836ed722d829b9965d3d0a92ff4d8ee714f6a455b85f68b383a5ba6a67aefd20f70410
 SHA512 
6a4d90c0c327787b7505542a3615f383735bffb021cbfc0a2adf2cfb87326c517d67c1df2f318cd84b60b8d0f1dcb20faea05529a856bf81b0f3ae6cc16823ed
-DIST fakeredis-py-1.9.3.gh.tar.gz 87068 BLAKE2B 
ee657bd0b04f5701c9e6445ca646fcc510dc3235407372fec9891f7d1adc5cacbd7a52e2d520c930f53491c2a18f5578d1b5186337953439f93fbb69a5e65ef8
 SHA512 
5255a75bae15ac325a41a273c70a467c8622d5992d40967e4ac21920c0563dbad808e9b82af203e72e3404f74a7bbfd2c12f5d854f9d353defec5b0333843266
 DIST fakeredis-py-1.9.4.gh.tar.gz 87232 BLAKE2B 
b02b14960071ed38f6144b60d845d31d0d102f4d061dd2f156610f90385f35ff3128ab293fbf24049fd1f18a7558e9e13cc2f7179230a9837313acb2a7121053
 SHA512 
2fe74c5cc798edeef391136f8b09a651381faa04b7dd1e5a07007e6f89596e45970977b435e6fbdad03b73e9826a439da2e105ca9592fb3733547789d106182e

diff --git a/dev-python/fakeredis/fakeredis-1.9.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.1.ebuild
deleted file mode 100644
index 1adc1b69c373..
--- a/dev-python/fakeredis/fakeredis-1.9.1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{8..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-
-RDEPEND="
-   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
-   =dev-python/six-1.16.0[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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 

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-11-03 Thread Arthur Zamarin
commit: bf628af6ad224eb8fdada44459ff79fb9d7b4398
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Thu Nov  3 19:22:34 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Nov  3 19:22:34 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf628af6

dev-python/fakeredis: Stabilize 1.9.4 ALLARCHES, #879469

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-1.9.4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-1.9.4.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.4.ebuild
index 315d3ed64771..51b6d085b57e 100644
--- a/dev-python/fakeredis/fakeredis-1.9.4.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.9.4.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/redis-py-4.2[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-10-25 Thread Arthur Zamarin
commit: fb875ae5adce688ba42bf6b4e913ec24e5e201d4
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue Oct 25 20:21:50 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue Oct 25 20:30:44 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb875ae5

dev-python/fakeredis: add 1.10.0

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/Manifest|  1 +
 dev-python/fakeredis/fakeredis-1.10.0.ebuild | 87 
 2 files changed, 88 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index ccb25d202ede..86e4f5049200 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
+DIST fakeredis-py-1.10.0.gh.tar.gz 88305 BLAKE2B 
71ffec7f872c8021914e24ee83f250e1e27bf2117fabb3513b54ad635692f43cefaf565090d3829ee189844a83ccc517016d8a4f9c31da82b2188d8d951c4dcf
 SHA512 
8fb32917c70931de50ef90526854ee7c0d888c04582a284864c19956868961cd689db0a7b3ad39e783f53741efde5a33cc600faf09fdeac7046fe29e9cd75933
 DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B 
aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67
 SHA512 
27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39
 DIST fakeredis-py-1.9.2.gh.tar.gz 87038 BLAKE2B 
89ae3059d58fc9649979b787339a98eaedccd2b29814090e1bf0cb2c54836ed722d829b9965d3d0a92ff4d8ee714f6a455b85f68b383a5ba6a67aefd20f70410
 SHA512 
6a4d90c0c327787b7505542a3615f383735bffb021cbfc0a2adf2cfb87326c517d67c1df2f318cd84b60b8d0f1dcb20faea05529a856bf81b0f3ae6cc16823ed
 DIST fakeredis-py-1.9.3.gh.tar.gz 87068 BLAKE2B 
ee657bd0b04f5701c9e6445ca646fcc510dc3235407372fec9891f7d1adc5cacbd7a52e2d520c930f53491c2a18f5578d1b5186337953439f93fbb69a5e65ef8
 SHA512 
5255a75bae15ac325a41a273c70a467c8622d5992d40967e4ac21920c0563dbad808e9b82af203e72e3404f74a7bbfd2c12f5d854f9d353defec5b0333843266

diff --git a/dev-python/fakeredis/fakeredis-1.10.0.ebuild 
b/dev-python/fakeredis/fakeredis-1.10.0.ebuild
new file mode 100644
index ..315d3ed64771
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.10.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-10-15 Thread Arthur Zamarin
commit: d82e7a7bc8ff557c9cfc634c87f0dad0d8aaf6b2
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Oct 16 05:20:39 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Oct 16 05:20:39 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d82e7a7b

dev-python/fakeredis: add 1.9.4

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-1.9.4.ebuild | 87 +
 2 files changed, 88 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 0b790f4fb0c9..ccb25d202ede 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B 
aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67
 SHA512 
27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39
 DIST fakeredis-py-1.9.2.gh.tar.gz 87038 BLAKE2B 
89ae3059d58fc9649979b787339a98eaedccd2b29814090e1bf0cb2c54836ed722d829b9965d3d0a92ff4d8ee714f6a455b85f68b383a5ba6a67aefd20f70410
 SHA512 
6a4d90c0c327787b7505542a3615f383735bffb021cbfc0a2adf2cfb87326c517d67c1df2f318cd84b60b8d0f1dcb20faea05529a856bf81b0f3ae6cc16823ed
 DIST fakeredis-py-1.9.3.gh.tar.gz 87068 BLAKE2B 
ee657bd0b04f5701c9e6445ca646fcc510dc3235407372fec9891f7d1adc5cacbd7a52e2d520c930f53491c2a18f5578d1b5186337953439f93fbb69a5e65ef8
 SHA512 
5255a75bae15ac325a41a273c70a467c8622d5992d40967e4ac21920c0563dbad808e9b82af203e72e3404f74a7bbfd2c12f5d854f9d353defec5b0333843266
+DIST fakeredis-py-1.9.4.gh.tar.gz 87232 BLAKE2B 
b02b14960071ed38f6144b60d845d31d0d102f4d061dd2f156610f90385f35ff3128ab293fbf24049fd1f18a7558e9e13cc2f7179230a9837313acb2a7121053
 SHA512 
2fe74c5cc798edeef391136f8b09a651381faa04b7dd1e5a07007e6f89596e45970977b435e6fbdad03b73e9826a439da2e105ca9592fb3733547789d106182e

diff --git a/dev-python/fakeredis/fakeredis-1.9.4.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.4.ebuild
new file mode 100644
index ..315d3ed64771
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.9.4.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-09-28 Thread Michał Górny
commit: 7fb5657acbd84f3c3e3160edb069875322877eb2
Author: Michał Górny  gentoo  org>
AuthorDate: Wed Sep 28 18:15:26 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed Sep 28 18:33:02 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fb5657a

dev-python/fakeredis: Bump to 1.9.3

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-1.9.3.ebuild | 87 +
 2 files changed, 88 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 0dc4acf0459c..0b790f4fb0c9 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B 
aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67
 SHA512 
27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39
 DIST fakeredis-py-1.9.2.gh.tar.gz 87038 BLAKE2B 
89ae3059d58fc9649979b787339a98eaedccd2b29814090e1bf0cb2c54836ed722d829b9965d3d0a92ff4d8ee714f6a455b85f68b383a5ba6a67aefd20f70410
 SHA512 
6a4d90c0c327787b7505542a3615f383735bffb021cbfc0a2adf2cfb87326c517d67c1df2f318cd84b60b8d0f1dcb20faea05529a856bf81b0f3ae6cc16823ed
+DIST fakeredis-py-1.9.3.gh.tar.gz 87068 BLAKE2B 
ee657bd0b04f5701c9e6445ca646fcc510dc3235407372fec9891f7d1adc5cacbd7a52e2d520c930f53491c2a18f5578d1b5186337953439f93fbb69a5e65ef8
 SHA512 
5255a75bae15ac325a41a273c70a467c8622d5992d40967e4ac21920c0563dbad808e9b82af203e72e3404f74a7bbfd2c12f5d854f9d353defec5b0333843266

diff --git a/dev-python/fakeredis/fakeredis-1.9.3.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.3.ebuild
new file mode 100644
index ..315d3ed64771
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.9.3.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-09-27 Thread Arthur Zamarin
commit: 1c73e88d13dd3ae4f71137f16b9b2c9422be8c2e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue Sep 27 18:17:32 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue Sep 27 18:25:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c73e88d

dev-python/fakeredis: add 1.9.2

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-1.9.2.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index cefe2b01cc4d..0dc4acf0459c 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B 
aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67
 SHA512 
27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39
+DIST fakeredis-py-1.9.2.gh.tar.gz 87038 BLAKE2B 
89ae3059d58fc9649979b787339a98eaedccd2b29814090e1bf0cb2c54836ed722d829b9965d3d0a92ff4d8ee714f6a455b85f68b383a5ba6a67aefd20f70410
 SHA512 
6a4d90c0c327787b7505542a3615f383735bffb021cbfc0a2adf2cfb87326c517d67c1df2f318cd84b60b8d0f1dcb20faea05529a856bf81b0f3ae6cc16823ed

diff --git a/dev-python/fakeredis/fakeredis-1.9.2.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.2.ebuild
new file mode 100644
index ..0b30f3d6134d
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.9.2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
+   =dev-python/six-1.16.0[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-09-20 Thread Michał Górny
commit: 684c01aba2bc929549917484df9db43e3453ad18
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Sep 20 08:07:27 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Sep 20 08:07:27 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=684c01ab

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  2 -
 dev-python/fakeredis/fakeredis-1.8.2.ebuild | 88 -
 dev-python/fakeredis/fakeredis-1.9.0.ebuild | 88 -
 3 files changed, 178 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index fd3828aebd3e..cefe2b01cc4d 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1 @@
-DIST fakeredis-py-1.8.2.gh.tar.gz 96238 BLAKE2B 
17fd75d2ca6e929fbbdab87e9a6450d72006a3dc72a2d81a3f381c1918f2ca12f273468bf8015e80df78e9df393d2f7002b13e12989d108f93beb3287472c0c6
 SHA512 
6a86c0fa41920f4446b66d4d152850227a23f5a031a80d0d9109117de7252965821dc8d9f022b9fd703f8ed66fad207f6542bd6ee524a54f2053bbcd2ed9965e
-DIST fakeredis-py-1.9.0.gh.tar.gz 85475 BLAKE2B 
99c5fdf2fb665505f6450a3ec08a401a0a629c62722709b4775ac2752816e6b461579f4a3df6d7a11a07e170e369ee1703294d9ef607a52318a7a8d583ce6264
 SHA512 
ca379d610a62053bb417aad1cd618356240697d0afdaca0467506d7b1ec38997d46b358a31356cdec8ecd1719386f942fd220f8b0a396bfc8c5316c2143f20f1
 DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B 
aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67
 SHA512 
27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39

diff --git a/dev-python/fakeredis/fakeredis-1.8.2.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.2.ebuild
deleted file mode 100644
index e9f273d84f0c..
--- a/dev-python/fakeredis/fakeredis-1.8.2.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{8..11} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/cunla/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-
-RDEPEND="
-   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
-   >=dev-python/six-1.16.0[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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
-   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
-}

diff --git a/dev-python/fakeredis/fakeredis-1.9.0.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.0.ebuild
deleted file mode 100644
index 0b30f3d6134d..
--- a/dev-python/fakeredis/fakeredis-1.9.0.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{8..11} )
-
-inherit distutils-r1
-

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-09-20 Thread Jakov Smolić
commit: 06eef459b4027d21910754fa512bb17783821d2f
Author: Jakov Smolić  gentoo  org>
AuthorDate: Tue Sep 20 07:44:25 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Tue Sep 20 07:44:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06eef459

dev-python/fakeredis: Stabilize 1.9.1 ALLARCHES, #871876

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-python/fakeredis/fakeredis-1.9.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-1.9.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.1.ebuild
index 0b30f3d6134d..1adc1b69c373 100644
--- a/dev-python/fakeredis/fakeredis-1.9.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.9.1.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/redis-py-4.2[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-09-04 Thread Michał Górny
commit: aa22f53c08a4ac465cb3ed6c3a2357248ab65271
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Sep  4 15:41:32 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Sep  4 16:22:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa22f53c

dev-python/fakeredis: Bump to 1.9.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-1.9.1.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 4f2bb979ea55..fd3828aebd3e 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-1.8.2.gh.tar.gz 96238 BLAKE2B 
17fd75d2ca6e929fbbdab87e9a6450d72006a3dc72a2d81a3f381c1918f2ca12f273468bf8015e80df78e9df393d2f7002b13e12989d108f93beb3287472c0c6
 SHA512 
6a86c0fa41920f4446b66d4d152850227a23f5a031a80d0d9109117de7252965821dc8d9f022b9fd703f8ed66fad207f6542bd6ee524a54f2053bbcd2ed9965e
 DIST fakeredis-py-1.9.0.gh.tar.gz 85475 BLAKE2B 
99c5fdf2fb665505f6450a3ec08a401a0a629c62722709b4775ac2752816e6b461579f4a3df6d7a11a07e170e369ee1703294d9ef607a52318a7a8d583ce6264
 SHA512 
ca379d610a62053bb417aad1cd618356240697d0afdaca0467506d7b1ec38997d46b358a31356cdec8ecd1719386f942fd220f8b0a396bfc8c5316c2143f20f1
+DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B 
aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67
 SHA512 
27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39

diff --git a/dev-python/fakeredis/fakeredis-1.9.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.1.ebuild
new file mode 100644
index ..0b30f3d6134d
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.9.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/cunla/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
+   =dev-python/six-1.16.0[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-08-27 Thread Michał Górny
commit: db25d877b9ce4527b3ab7bace9cfd327f7b35a11
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Aug 27 06:22:26 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Aug 27 06:23:59 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db25d877

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 -
 dev-python/fakeredis/fakeredis-1.8.1.ebuild | 88 -
 2 files changed, 89 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 8ecac3513d6f..4f2bb979ea55 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,2 @@
-DIST fakeredis-py-1.8.1.gh.tar.gz 101586 BLAKE2B 
a1b123dd482b9b59f401a855ba95a08f2e744bff5ae4a4f0c12cde8b2a05971043ccb16e92d0adbfeedd3e071fab50f1328ed265c6ac19ecf6932d09bcacd549
 SHA512 
19e1636895206fa550844a776ba4835c3acbe2eac8fb774716e91d20e0f283b121f42ee11d876e20d798a6df0dcfcc29114c76c839c4946436102b8f83ed3d01
 DIST fakeredis-py-1.8.2.gh.tar.gz 96238 BLAKE2B 
17fd75d2ca6e929fbbdab87e9a6450d72006a3dc72a2d81a3f381c1918f2ca12f273468bf8015e80df78e9df393d2f7002b13e12989d108f93beb3287472c0c6
 SHA512 
6a86c0fa41920f4446b66d4d152850227a23f5a031a80d0d9109117de7252965821dc8d9f022b9fd703f8ed66fad207f6542bd6ee524a54f2053bbcd2ed9965e
 DIST fakeredis-py-1.9.0.gh.tar.gz 85475 BLAKE2B 
99c5fdf2fb665505f6450a3ec08a401a0a629c62722709b4775ac2752816e6b461579f4a3df6d7a11a07e170e369ee1703294d9ef607a52318a7a8d583ce6264
 SHA512 
ca379d610a62053bb417aad1cd618356240697d0afdaca0467506d7b1ec38997d46b358a31356cdec8ecd1719386f942fd220f8b0a396bfc8c5316c2143f20f1

diff --git a/dev-python/fakeredis/fakeredis-1.8.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
deleted file mode 100644
index c2b493cda642..
--- a/dev-python/fakeredis/fakeredis-1.8.1.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{8..10} )
-
-inherit distutils-r1
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/dsoftwareinc/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
-
-RDEPEND="
-   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
-   >=dev-python/six-1.16.0[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-08-27 Thread Sam James
commit: 2428f6b94da9845ad3c7e6bce22cd875340b514f
Author: Sam James  gentoo  org>
AuthorDate: Fri Aug 26 23:29:03 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Aug 26 23:29:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2428f6b9

dev-python/fakeredis: Stabilize 1.8.2 ALLARCHES, #866782

Signed-off-by: Sam James  gentoo.org>

 dev-python/fakeredis/fakeredis-1.8.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-1.8.2.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.2.ebuild
index c6cea81c8567..13525468ceb8 100644
--- a/dev-python/fakeredis/fakeredis-1.8.2.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.8.2.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/redis-py-4.2[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-08-27 Thread Michał Górny
commit: ae44e75bb4a5e3be5f58e928b7975c497e9c5717
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Aug 27 06:23:17 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Aug 27 06:23:59 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae44e75b

dev-python/fakeredis: Update URLs

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/fakeredis-1.8.2.ebuild | 4 ++--
 dev-python/fakeredis/fakeredis-1.9.0.ebuild | 4 ++--
 dev-python/fakeredis/metadata.xml   | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dev-python/fakeredis/fakeredis-1.8.2.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.2.ebuild
index 13525468ceb8..e9f273d84f0c 100644
--- a/dev-python/fakeredis/fakeredis-1.8.2.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.8.2.ebuild
@@ -11,11 +11,11 @@ inherit distutils-r1
 MY_P=fakeredis-py-${PV}
 DESCRIPTION="Fake implementation of redis API for testing purposes"
 HOMEPAGE="
-   https://github.com/dsoftwareinc/fakeredis-py/
+   https://github.com/cunla/fakeredis-py/
https://pypi.org/project/fakeredis/
 "
 SRC_URI="
-   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-> ${MY_P}.gh.tar.gz
 "
 S=${WORKDIR}/${MY_P}

diff --git a/dev-python/fakeredis/fakeredis-1.9.0.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.0.ebuild
index 593e6a79b618..0b30f3d6134d 100644
--- a/dev-python/fakeredis/fakeredis-1.9.0.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.9.0.ebuild
@@ -11,11 +11,11 @@ inherit distutils-r1
 MY_P=fakeredis-py-${PV}
 DESCRIPTION="Fake implementation of redis API for testing purposes"
 HOMEPAGE="
-   https://github.com/dsoftwareinc/fakeredis-py/
+   https://github.com/cunla/fakeredis-py/
https://pypi.org/project/fakeredis/
 "
 SRC_URI="
-   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
+   https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz
-> ${MY_P}.gh.tar.gz
 "
 S=${WORKDIR}/${MY_P}

diff --git a/dev-python/fakeredis/metadata.xml 
b/dev-python/fakeredis/metadata.xml
index 2b6b02ddf6fc..57d039bed0d9 100644
--- a/dev-python/fakeredis/metadata.xml
+++ b/dev-python/fakeredis/metadata.xml
@@ -7,6 +7,6 @@


fakeredis
-   dsoftwareinc/fakeredis-py
+   cunla/fakeredis-py

 



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-08-25 Thread Jakov Smolić
commit: 611b29f26a7e131f36bb4f594196f2804960fe4d
Author: Jakov Smolić  gentoo  org>
AuthorDate: Thu Aug 25 13:03:15 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Thu Aug 25 13:03:15 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=611b29f2

dev-python/fakeredis: Remove dev-python/aioredis optfeature

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-python/fakeredis/fakeredis-1.8.1.ebuild | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dev-python/fakeredis/fakeredis-1.8.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
index c7f583dfd91f..c2b493cda642 100644
--- a/dev-python/fakeredis/fakeredis-1.8.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 DISTUTILS_USE_PEP517=poetry
 PYTHON_COMPAT=( pypy3 python3_{8..10} )
 
-inherit distutils-r1 optfeature
+inherit distutils-r1
 
 MY_P=fakeredis-py-${PV}
 DESCRIPTION="Fake implementation of redis API for testing purposes"
@@ -86,7 +86,3 @@ src_test() {
# Clean up afterwards
kill "$(<"${redis_pid}")" || die
 }
-
-pkg_postinst() {
-   optfeature "Mock aioredis" dev-python/aioredis
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-07-31 Thread Arthur Zamarin
commit: 7a985c76b7186e49107a804f72ee3445b69357b4
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Jul 31 17:30:29 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Jul 31 18:20:23 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a985c76

dev-python/fakeredis: add 1.9.0

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-1.9.0.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 71f6b9c42e8c..8ecac3513d6f 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-py-1.8.1.gh.tar.gz 101586 BLAKE2B 
a1b123dd482b9b59f401a855ba95a08f2e744bff5ae4a4f0c12cde8b2a05971043ccb16e92d0adbfeedd3e071fab50f1328ed265c6ac19ecf6932d09bcacd549
 SHA512 
19e1636895206fa550844a776ba4835c3acbe2eac8fb774716e91d20e0f283b121f42ee11d876e20d798a6df0dcfcc29114c76c839c4946436102b8f83ed3d01
 DIST fakeredis-py-1.8.2.gh.tar.gz 96238 BLAKE2B 
17fd75d2ca6e929fbbdab87e9a6450d72006a3dc72a2d81a3f381c1918f2ca12f273468bf8015e80df78e9df393d2f7002b13e12989d108f93beb3287472c0c6
 SHA512 
6a86c0fa41920f4446b66d4d152850227a23f5a031a80d0d9109117de7252965821dc8d9f022b9fd703f8ed66fad207f6542bd6ee524a54f2053bbcd2ed9965e
+DIST fakeredis-py-1.9.0.gh.tar.gz 85475 BLAKE2B 
99c5fdf2fb665505f6450a3ec08a401a0a629c62722709b4775ac2752816e6b461579f4a3df6d7a11a07e170e369ee1703294d9ef607a52318a7a8d583ce6264
 SHA512 
ca379d610a62053bb417aad1cd618356240697d0afdaca0467506d7b1ec38997d46b358a31356cdec8ecd1719386f942fd220f8b0a396bfc8c5316c2143f20f1

diff --git a/dev-python/fakeredis/fakeredis-1.9.0.ebuild 
b/dev-python/fakeredis/fakeredis-1.9.0.ebuild
new file mode 100644
index ..593e6a79b618
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.9.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/dsoftwareinc/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
+   =dev-python/six-1.16.0[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-07-25 Thread Michał Górny
commit: 0b7e34b88a6867625fd6bbaf0238166af0251468
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Jul 25 05:53:50 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Jul 25 07:12:20 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b7e34b8

dev-python/fakeredis: Bump to 1.8.2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-1.8.2.ebuild | 88 +
 2 files changed, 89 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 33738459bc11..71f6b9c42e8c 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1 +1,2 @@
 DIST fakeredis-py-1.8.1.gh.tar.gz 101586 BLAKE2B 
a1b123dd482b9b59f401a855ba95a08f2e744bff5ae4a4f0c12cde8b2a05971043ccb16e92d0adbfeedd3e071fab50f1328ed265c6ac19ecf6932d09bcacd549
 SHA512 
19e1636895206fa550844a776ba4835c3acbe2eac8fb774716e91d20e0f283b121f42ee11d876e20d798a6df0dcfcc29114c76c839c4946436102b8f83ed3d01
+DIST fakeredis-py-1.8.2.gh.tar.gz 96238 BLAKE2B 
17fd75d2ca6e929fbbdab87e9a6450d72006a3dc72a2d81a3f381c1918f2ca12f273468bf8015e80df78e9df393d2f7002b13e12989d108f93beb3287472c0c6
 SHA512 
6a86c0fa41920f4446b66d4d152850227a23f5a031a80d0d9109117de7252965821dc8d9f022b9fd703f8ed66fad207f6542bd6ee524a54f2053bbcd2ed9965e

diff --git a/dev-python/fakeredis/fakeredis-1.8.2.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.2.ebuild
new file mode 100644
index ..c6cea81c8567
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.8.2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit distutils-r1
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/dsoftwareinc/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
+   >=dev-python/six-1.16.0[${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
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-07-10 Thread Michał Górny
commit: bb3e1c672d8b77eee7ff0ea20a2c4561a8e62694
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Jul 10 19:07:48 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jul 10 19:09:22 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb3e1c67

dev-python/fakeredis: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  2 -
 dev-python/fakeredis/fakeredis-1.7.1.ebuild | 81 -
 dev-python/fakeredis/fakeredis-1.8.ebuild   | 92 -
 3 files changed, 175 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index b0454a6f70c6..33738459bc11 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1 @@
-DIST fakeredis-1.7.1.gh.tar.gz 71151 BLAKE2B 
87877c94a4c03ad6ff4b55f307526f712daa860257374a97a8f7bd29440d171467e18e4041ca56bb6af30df30481a3d5b13c7d0657ba3eb7673a653664ffbe8a
 SHA512 
f41d9393ae50bae9de064678948f4364fc47db06f489782e5b428f449828ad5813b08b2fb053bef878b2a1b500edbb0ea1881449dbd12c2b6e385f6a2fba4c59
 DIST fakeredis-py-1.8.1.gh.tar.gz 101586 BLAKE2B 
a1b123dd482b9b59f401a855ba95a08f2e744bff5ae4a4f0c12cde8b2a05971043ccb16e92d0adbfeedd3e071fab50f1328ed265c6ac19ecf6932d09bcacd549
 SHA512 
19e1636895206fa550844a776ba4835c3acbe2eac8fb774716e91d20e0f283b121f42ee11d876e20d798a6df0dcfcc29114c76c839c4946436102b8f83ed3d01
-DIST fakeredis-py-1.8.gh.tar.gz 101156 BLAKE2B 
e799b5636a89edd8795fdc79811689cd308f8a7dae55d7ac4045352f370f428d96fdfed7886598e856c203bcc44d58236a8bf5229ee49a9cec90324f0778ce78
 SHA512 
7bd553dc724b9d664ff1c403fd9a234ad7a8e95f81a3761eef28c7e6d919b7756040a70382e61d9ff54f8bd8f778130c035e9384707403ca9a4340051a4cf861

diff --git a/dev-python/fakeredis/fakeredis-1.7.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.7.1.ebuild
deleted file mode 100644
index 26b7c45d2eee..
--- a/dev-python/fakeredis/fakeredis-1.7.1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 2020-2022 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 ~riscv ~sparc x86"
-
-RDEPEND="
-   https://github.com/dsoftwareinc/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
-
-RDEPEND="
-   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
-   >=dev-python/six-1.16.0[${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
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<=[0-9.]*:*:' pyproject.toml || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   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
-   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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-07-10 Thread Arthur Zamarin
commit: 3491dbb6d07c4d54df9d4c9f1b0d1009df011b0a
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Jul 10 18:04:07 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Jul 10 18:04:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3491dbb6

dev-python/fakeredis: Stabilize 1.8.1 ALLARCHES, #857318

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/fakeredis/fakeredis-1.8.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-1.8.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
index c7d77b89b9a8..c7f583dfd91f 100644
--- a/dev-python/fakeredis/fakeredis-1.8.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
@@ -22,7 +22,7 @@ S=${WORKDIR}/${MY_P}
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/redis-py-4.2[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-06-09 Thread Michał Górny
commit: a0ecaabe5fdaf3d10b0abcc694f284fa0f1d964a
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Jun  9 19:47:37 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Jun  9 20:12:57 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0ecaabe

dev-python/fakeredis: Remove aioredis dep from 1.7.6.1+

asyncio support has been integrated into dev-python/redis-py >= 4.2,
and fakeredis >= 1.7.6.1 prefers it over external aioredis.

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/fakeredis-1.7.6.1.ebuild | 3 +--
 dev-python/fakeredis/fakeredis-1.8.1.ebuild   | 3 +--
 dev-python/fakeredis/fakeredis-1.8.ebuild | 3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/dev-python/fakeredis/fakeredis-1.7.6.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.7.6.1.ebuild
index 7b846fe8e9e0..eb4fa9308922 100644
--- a/dev-python/fakeredis/fakeredis-1.7.6.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.7.6.1.ebuild
@@ -25,14 +25,13 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 
 RDEPEND="
-   dev-python/redis-py[${PYTHON_USEDEP}]
+   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
>=dev-python/six-1.16.0[${PYTHON_USEDEP}]
>=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
 "
 BDEPEND="
test? (
dev-db/redis
-   dev-python/aioredis[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
)

diff --git a/dev-python/fakeredis/fakeredis-1.8.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
index 206063feadeb..c7d77b89b9a8 100644
--- a/dev-python/fakeredis/fakeredis-1.8.1.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
@@ -25,14 +25,13 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 
 RDEPEND="
-   dev-python/redis-py[${PYTHON_USEDEP}]
+   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
>=dev-python/six-1.16.0[${PYTHON_USEDEP}]
>=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
 "
 BDEPEND="
test? (
dev-db/redis
-   dev-python/aioredis[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
)

diff --git a/dev-python/fakeredis/fakeredis-1.8.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.ebuild
index 36206ffe542f..c1adeb1fb405 100644
--- a/dev-python/fakeredis/fakeredis-1.8.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.8.ebuild
@@ -25,14 +25,13 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 
 RDEPEND="
-   dev-python/redis-py[${PYTHON_USEDEP}]
+   >=dev-python/redis-py-4.2[${PYTHON_USEDEP}]
>=dev-python/six-1.16.0[${PYTHON_USEDEP}]
>=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
 "
 BDEPEND="
test? (
dev-db/redis
-   dev-python/aioredis[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
)



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-06-09 Thread Michał Górny
commit: eaba66a968d2281d6773474fe1986e8a5611653c
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Jun  9 19:48:12 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Jun  9 20:12:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaba66a9

dev-python/fakeredis: Remove versions without py3.8

Remove the intermediate versions that do not feature python3.8 support
to prevent them from accidentally going stable.

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest |  3 -
 dev-python/fakeredis/fakeredis-1.7.4.ebuild   | 93 ---
 dev-python/fakeredis/fakeredis-1.7.5.ebuild   | 93 ---
 dev-python/fakeredis/fakeredis-1.7.6.1.ebuild | 92 --
 4 files changed, 281 deletions(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index d2dc7fd4674c..b0454a6f70c6 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,6 +1,3 @@
 DIST fakeredis-1.7.1.gh.tar.gz 71151 BLAKE2B 
87877c94a4c03ad6ff4b55f307526f712daa860257374a97a8f7bd29440d171467e18e4041ca56bb6af30df30481a3d5b13c7d0657ba3eb7673a653664ffbe8a
 SHA512 
f41d9393ae50bae9de064678948f4364fc47db06f489782e5b428f449828ad5813b08b2fb053bef878b2a1b500edbb0ea1881449dbd12c2b6e385f6a2fba4c59
-DIST fakeredis-py-1.7.4.gh.tar.gz 73024 BLAKE2B 
d3d18611d846a0dabb52d74ca53cad997b37e794ef320bc800ab5339f70710bc30f9e33c0820db941064fbf9dca0dde3e72c78298895b8c2510a93353898b355
 SHA512 
71c9ffe7c208453bc8f5e719b3647a9b9fc5406c5fe3856ef1dc42c019bd7128355d260be468b62dcb764a918a3510f193fb1aaf374bb3866e352c9c2bae90c6
-DIST fakeredis-py-1.7.5.gh.tar.gz 72932 BLAKE2B 
3965df2d238e70f362e5e43a52fe763b2fec34ecc87d4bf38cb8fdf5e8f58b6bad87b59353a932d5e7e12ac243f3c884a19079752c48b6230795c53f7512d345
 SHA512 
bcefaa8e425cb47d7881c2f91d35e5ec5b46a94f3189b1ffbd71a92cd202a5fcc3d82df8250cf683475bacbbbec088f1e49545f71f2c98638adca58063cc0fa2
-DIST fakeredis-py-1.7.6.1.gh.tar.gz 100750 BLAKE2B 
aeaf9e38b173d169a8108c6559b3900ac3232690513a735f2592790bfd3866cefa5dff663672fb2fbeae96fd40c203d5a6d86c4ccc0336f54f5f68f7d0f3d38a
 SHA512 
6a92ae7fa60ce7a6913e40b5c6b9bcbbb286f44f8602ff4bcbfb0739d8fd18d772291124a56d9dbff1fd0f69f0605a5a5f524161f8661b1529d9fe4f5f2481fd
 DIST fakeredis-py-1.8.1.gh.tar.gz 101586 BLAKE2B 
a1b123dd482b9b59f401a855ba95a08f2e744bff5ae4a4f0c12cde8b2a05971043ccb16e92d0adbfeedd3e071fab50f1328ed265c6ac19ecf6932d09bcacd549
 SHA512 
19e1636895206fa550844a776ba4835c3acbe2eac8fb774716e91d20e0f283b121f42ee11d876e20d798a6df0dcfcc29114c76c839c4946436102b8f83ed3d01
 DIST fakeredis-py-1.8.gh.tar.gz 101156 BLAKE2B 
e799b5636a89edd8795fdc79811689cd308f8a7dae55d7ac4045352f370f428d96fdfed7886598e856c203bcc44d58236a8bf5229ee49a9cec90324f0778ce78
 SHA512 
7bd553dc724b9d664ff1c403fd9a234ad7a8e95f81a3761eef28c7e6d919b7756040a70382e61d9ff54f8bd8f778130c035e9384707403ca9a4340051a4cf861

diff --git a/dev-python/fakeredis/fakeredis-1.7.4.ebuild 
b/dev-python/fakeredis/fakeredis-1.7.4.ebuild
deleted file mode 100644
index 01803254b09c..
--- a/dev-python/fakeredis/fakeredis-1.7.4.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{9..10} )
-
-inherit distutils-r1 optfeature
-
-MY_P=fakeredis-py-${PV}
-DESCRIPTION="Fake implementation of redis API for testing purposes"
-HOMEPAGE="
-   https://github.com/dsoftwareinc/fakeredis-py/
-   https://pypi.org/project/fakeredis/
-"
-SRC_URI="
-   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
-   -> ${MY_P}.gh.tar.gz
-"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~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/pytest-asyncio[${PYTHON_USEDEP}]
-   dev-python/pytest-mock[${PYTHON_USEDEP}]
-   )
-"
-
-distutils_enable_tests pytest
-
-src_prepare() {
-   # unpin redis
-   sed -i -e '/redis/s:<=.*::' setup.cfg || die
-   distutils-r1_src_prepare
-}
-
-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]"
-   )
-   local EPYTEST_IGNORE=(
-   # these tests fail a lot...
-   

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-06-09 Thread Michał Górny
commit: 47aef2ae6cd271648e60f3680ff5fffdce741ede
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Jun  9 19:08:48 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Jun  9 19:19:11 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47aef2ae

dev-python/fakeredis: Bump to 1.8.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-1.8.1.ebuild | 93 +
 2 files changed, 94 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index b549654c4d62..d2dc7fd4674c 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -2,4 +2,5 @@ DIST fakeredis-1.7.1.gh.tar.gz 71151 BLAKE2B 
87877c94a4c03ad6ff4b55f307526f712da
 DIST fakeredis-py-1.7.4.gh.tar.gz 73024 BLAKE2B 
d3d18611d846a0dabb52d74ca53cad997b37e794ef320bc800ab5339f70710bc30f9e33c0820db941064fbf9dca0dde3e72c78298895b8c2510a93353898b355
 SHA512 
71c9ffe7c208453bc8f5e719b3647a9b9fc5406c5fe3856ef1dc42c019bd7128355d260be468b62dcb764a918a3510f193fb1aaf374bb3866e352c9c2bae90c6
 DIST fakeredis-py-1.7.5.gh.tar.gz 72932 BLAKE2B 
3965df2d238e70f362e5e43a52fe763b2fec34ecc87d4bf38cb8fdf5e8f58b6bad87b59353a932d5e7e12ac243f3c884a19079752c48b6230795c53f7512d345
 SHA512 
bcefaa8e425cb47d7881c2f91d35e5ec5b46a94f3189b1ffbd71a92cd202a5fcc3d82df8250cf683475bacbbbec088f1e49545f71f2c98638adca58063cc0fa2
 DIST fakeredis-py-1.7.6.1.gh.tar.gz 100750 BLAKE2B 
aeaf9e38b173d169a8108c6559b3900ac3232690513a735f2592790bfd3866cefa5dff663672fb2fbeae96fd40c203d5a6d86c4ccc0336f54f5f68f7d0f3d38a
 SHA512 
6a92ae7fa60ce7a6913e40b5c6b9bcbbb286f44f8602ff4bcbfb0739d8fd18d772291124a56d9dbff1fd0f69f0605a5a5f524161f8661b1529d9fe4f5f2481fd
+DIST fakeredis-py-1.8.1.gh.tar.gz 101586 BLAKE2B 
a1b123dd482b9b59f401a855ba95a08f2e744bff5ae4a4f0c12cde8b2a05971043ccb16e92d0adbfeedd3e071fab50f1328ed265c6ac19ecf6932d09bcacd549
 SHA512 
19e1636895206fa550844a776ba4835c3acbe2eac8fb774716e91d20e0f283b121f42ee11d876e20d798a6df0dcfcc29114c76c839c4946436102b8f83ed3d01
 DIST fakeredis-py-1.8.gh.tar.gz 101156 BLAKE2B 
e799b5636a89edd8795fdc79811689cd308f8a7dae55d7ac4045352f370f428d96fdfed7886598e856c203bcc44d58236a8bf5229ee49a9cec90324f0778ce78
 SHA512 
7bd553dc724b9d664ff1c403fd9a234ad7a8e95f81a3761eef28c7e6d919b7756040a70382e61d9ff54f8bd8f778130c035e9384707403ca9a4340051a4cf861

diff --git a/dev-python/fakeredis/fakeredis-1.8.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
new file mode 100644
index ..206063feadeb
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.8.1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+
+inherit distutils-r1 optfeature
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/dsoftwareinc/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   dev-python/redis-py[${PYTHON_USEDEP}]
+   >=dev-python/six-1.16.0[${PYTHON_USEDEP}]
+   >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/aioredis[${PYTHON_USEDEP}]
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-mock[${PYTHON_USEDEP}]
+   )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+   local redis_test_config="
+   daemonize yes
+   pidfile ${redis_pid}
+   port ${redis_port}
+   bind 127.0.0.1
+   "
+
+   einfo "Spawning Redis"
+   einfo 

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-06-06 Thread Michał Górny
commit: e53d7c14593c047b7f997719cbbb74bcad2f7240
Author: Michał Górny  gentoo  org>
AuthorDate: Mon Jun  6 11:29:30 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Mon Jun  6 11:29:30 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e53d7c14

dev-python/fakeredis: Restore python3.8

The regression in python3.8 support seems to have been fixed upstream.

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/fakeredis-1.8.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/fakeredis-1.8.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.ebuild
index 7b846fe8e9e0..36206ffe542f 100644
--- a/dev-python/fakeredis/fakeredis-1.8.ebuild
+++ b/dev-python/fakeredis/fakeredis-1.8.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( pypy3 python3_{9..10} )
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
 
 inherit distutils-r1 optfeature
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-05-27 Thread Michał Górny
commit: 7f4ba6d5bb309a76d37861b54a86c301c61c56fd
Author: Michał Górny  gentoo  org>
AuthorDate: Sat May 28 04:47:14 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat May 28 05:00:14 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f4ba6d5

dev-python/fakeredis: Bump to 1.8

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest |  1 +
 dev-python/fakeredis/fakeredis-1.8.ebuild | 93 +++
 dev-python/fakeredis/metadata.xml |  2 +-
 3 files changed, 95 insertions(+), 1 deletion(-)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 7fcbc6919a70..b549654c4d62 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -2,3 +2,4 @@ DIST fakeredis-1.7.1.gh.tar.gz 71151 BLAKE2B 
87877c94a4c03ad6ff4b55f307526f712da
 DIST fakeredis-py-1.7.4.gh.tar.gz 73024 BLAKE2B 
d3d18611d846a0dabb52d74ca53cad997b37e794ef320bc800ab5339f70710bc30f9e33c0820db941064fbf9dca0dde3e72c78298895b8c2510a93353898b355
 SHA512 
71c9ffe7c208453bc8f5e719b3647a9b9fc5406c5fe3856ef1dc42c019bd7128355d260be468b62dcb764a918a3510f193fb1aaf374bb3866e352c9c2bae90c6
 DIST fakeredis-py-1.7.5.gh.tar.gz 72932 BLAKE2B 
3965df2d238e70f362e5e43a52fe763b2fec34ecc87d4bf38cb8fdf5e8f58b6bad87b59353a932d5e7e12ac243f3c884a19079752c48b6230795c53f7512d345
 SHA512 
bcefaa8e425cb47d7881c2f91d35e5ec5b46a94f3189b1ffbd71a92cd202a5fcc3d82df8250cf683475bacbbbec088f1e49545f71f2c98638adca58063cc0fa2
 DIST fakeredis-py-1.7.6.1.gh.tar.gz 100750 BLAKE2B 
aeaf9e38b173d169a8108c6559b3900ac3232690513a735f2592790bfd3866cefa5dff663672fb2fbeae96fd40c203d5a6d86c4ccc0336f54f5f68f7d0f3d38a
 SHA512 
6a92ae7fa60ce7a6913e40b5c6b9bcbbb286f44f8602ff4bcbfb0739d8fd18d772291124a56d9dbff1fd0f69f0605a5a5f524161f8661b1529d9fe4f5f2481fd
+DIST fakeredis-py-1.8.gh.tar.gz 101156 BLAKE2B 
e799b5636a89edd8795fdc79811689cd308f8a7dae55d7ac4045352f370f428d96fdfed7886598e856c203bcc44d58236a8bf5229ee49a9cec90324f0778ce78
 SHA512 
7bd553dc724b9d664ff1c403fd9a234ad7a8e95f81a3761eef28c7e6d919b7756040a70382e61d9ff54f8bd8f778130c035e9384707403ca9a4340051a4cf861

diff --git a/dev-python/fakeredis/fakeredis-1.8.ebuild 
b/dev-python/fakeredis/fakeredis-1.8.ebuild
new file mode 100644
index ..7b846fe8e9e0
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.8.ebuild
@@ -0,0 +1,93 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{9..10} )
+
+inherit distutils-r1 optfeature
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/dsoftwareinc/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   dev-python/redis-py[${PYTHON_USEDEP}]
+   >=dev-python/six-1.16.0[${PYTHON_USEDEP}]
+   >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/aioredis[${PYTHON_USEDEP}]
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-mock[${PYTHON_USEDEP}]
+   )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<=[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+   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
+}
+

[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-05-26 Thread Michał Górny
commit: 45e3e697f1e6c46f8b2e2ab6adf7dd025d44320f
Author: Michał Górny  gentoo  org>
AuthorDate: Thu May 26 07:09:06 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu May 26 08:07:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45e3e697

dev-python/fakeredis: Bump to 1.7.6.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest |  1 +
 dev-python/fakeredis/fakeredis-1.7.6.1.ebuild | 93 +++
 2 files changed, 94 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 606ba0422a70..7fcbc6919a70 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,3 +1,4 @@
 DIST fakeredis-1.7.1.gh.tar.gz 71151 BLAKE2B 
87877c94a4c03ad6ff4b55f307526f712daa860257374a97a8f7bd29440d171467e18e4041ca56bb6af30df30481a3d5b13c7d0657ba3eb7673a653664ffbe8a
 SHA512 
f41d9393ae50bae9de064678948f4364fc47db06f489782e5b428f449828ad5813b08b2fb053bef878b2a1b500edbb0ea1881449dbd12c2b6e385f6a2fba4c59
 DIST fakeredis-py-1.7.4.gh.tar.gz 73024 BLAKE2B 
d3d18611d846a0dabb52d74ca53cad997b37e794ef320bc800ab5339f70710bc30f9e33c0820db941064fbf9dca0dde3e72c78298895b8c2510a93353898b355
 SHA512 
71c9ffe7c208453bc8f5e719b3647a9b9fc5406c5fe3856ef1dc42c019bd7128355d260be468b62dcb764a918a3510f193fb1aaf374bb3866e352c9c2bae90c6
 DIST fakeredis-py-1.7.5.gh.tar.gz 72932 BLAKE2B 
3965df2d238e70f362e5e43a52fe763b2fec34ecc87d4bf38cb8fdf5e8f58b6bad87b59353a932d5e7e12ac243f3c884a19079752c48b6230795c53f7512d345
 SHA512 
bcefaa8e425cb47d7881c2f91d35e5ec5b46a94f3189b1ffbd71a92cd202a5fcc3d82df8250cf683475bacbbbec088f1e49545f71f2c98638adca58063cc0fa2
+DIST fakeredis-py-1.7.6.1.gh.tar.gz 100750 BLAKE2B 
aeaf9e38b173d169a8108c6559b3900ac3232690513a735f2592790bfd3866cefa5dff663672fb2fbeae96fd40c203d5a6d86c4ccc0336f54f5f68f7d0f3d38a
 SHA512 
6a92ae7fa60ce7a6913e40b5c6b9bcbbb286f44f8602ff4bcbfb0739d8fd18d772291124a56d9dbff1fd0f69f0605a5a5f524161f8661b1529d9fe4f5f2481fd

diff --git a/dev-python/fakeredis/fakeredis-1.7.6.1.ebuild 
b/dev-python/fakeredis/fakeredis-1.7.6.1.ebuild
new file mode 100644
index ..7b846fe8e9e0
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.7.6.1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( pypy3 python3_{9..10} )
+
+inherit distutils-r1 optfeature
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/dsoftwareinc/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   dev-python/redis-py[${PYTHON_USEDEP}]
+   >=dev-python/six-1.16.0[${PYTHON_USEDEP}]
+   >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   test? (
+   dev-db/redis
+   dev-python/aioredis[${PYTHON_USEDEP}]
+   dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-mock[${PYTHON_USEDEP}]
+   )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<=[0-9.]*:*:' pyproject.toml || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+   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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/fakeredis/

2022-05-15 Thread Michał Górny
commit: 5797677fd4175c63c52d059dd4c5a2526cf20d4c
Author: Michał Górny  gentoo  org>
AuthorDate: Sun May 15 06:31:39 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun May 15 06:33:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5797677f

dev-python/fakeredis: Bump to 1.7.5

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/fakeredis/Manifest   |  1 +
 dev-python/fakeredis/fakeredis-1.7.5.ebuild | 93 +
 2 files changed, 94 insertions(+)

diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index d7fc8cbf2524..606ba0422a70 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
 DIST fakeredis-1.7.1.gh.tar.gz 71151 BLAKE2B 
87877c94a4c03ad6ff4b55f307526f712daa860257374a97a8f7bd29440d171467e18e4041ca56bb6af30df30481a3d5b13c7d0657ba3eb7673a653664ffbe8a
 SHA512 
f41d9393ae50bae9de064678948f4364fc47db06f489782e5b428f449828ad5813b08b2fb053bef878b2a1b500edbb0ea1881449dbd12c2b6e385f6a2fba4c59
 DIST fakeredis-py-1.7.4.gh.tar.gz 73024 BLAKE2B 
d3d18611d846a0dabb52d74ca53cad997b37e794ef320bc800ab5339f70710bc30f9e33c0820db941064fbf9dca0dde3e72c78298895b8c2510a93353898b355
 SHA512 
71c9ffe7c208453bc8f5e719b3647a9b9fc5406c5fe3856ef1dc42c019bd7128355d260be468b62dcb764a918a3510f193fb1aaf374bb3866e352c9c2bae90c6
+DIST fakeredis-py-1.7.5.gh.tar.gz 72932 BLAKE2B 
3965df2d238e70f362e5e43a52fe763b2fec34ecc87d4bf38cb8fdf5e8f58b6bad87b59353a932d5e7e12ac243f3c884a19079752c48b6230795c53f7512d345
 SHA512 
bcefaa8e425cb47d7881c2f91d35e5ec5b46a94f3189b1ffbd71a92cd202a5fcc3d82df8250cf683475bacbbbec088f1e49545f71f2c98638adca58063cc0fa2

diff --git a/dev-python/fakeredis/fakeredis-1.7.5.ebuild 
b/dev-python/fakeredis/fakeredis-1.7.5.ebuild
new file mode 100644
index ..01803254b09c
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.7.5.ebuild
@@ -0,0 +1,93 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{9..10} )
+
+inherit distutils-r1 optfeature
+
+MY_P=fakeredis-py-${PV}
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+   https://github.com/dsoftwareinc/fakeredis-py/
+   https://pypi.org/project/fakeredis/
+"
+SRC_URI="
+   https://github.com/dsoftwareinc/fakeredis-py/archive/v${PV}.tar.gz
+   -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~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/pytest-asyncio[${PYTHON_USEDEP}]
+   dev-python/pytest-mock[${PYTHON_USEDEP}]
+   )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+   # unpin redis
+   sed -i -e '/redis/s:<=.*::' setup.cfg || die
+   distutils-r1_src_prepare
+}
+
+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]"
+   )
+   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
+   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
+}



  1   2   >