public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/redis-py/
Date: Wed,  8 Feb 2023 06:27:19 +0000 (UTC)	[thread overview]
Message-ID: <1675837630.54846711e94387d9d52df3b1b0691048eba95ed3.mgorny@gentoo> (raw)

commit:     54846711e94387d9d52df3b1b0691048eba95ed3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  8 05:32:55 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb  8 06:27:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54846711

dev-python/redis-py: Bump to 4.5.0

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

 dev-python/redis-py/Manifest              |  1 +
 dev-python/redis-py/redis-py-4.5.0.ebuild | 79 +++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

diff --git a/dev-python/redis-py/Manifest b/dev-python/redis-py/Manifest
index 0177b85b54b4..edc14738891f 100644
--- a/dev-python/redis-py/Manifest
+++ b/dev-python/redis-py/Manifest
@@ -1,3 +1,4 @@
 DIST redis-py-4.4.0.gh.tar.gz 4637656 BLAKE2B 40b0909c27cefb399353cc2d1d82d7ad3d64e4b3e5ae001ffef9c198d0e65d906f5772a0ac33b599c7fb6ffc5dfad461bb4b9042c5c4fb23dfbfceb0a7facbc0 SHA512 8992f160de7817c48893f3a8588d5c0398dcfb91830a61b4218206adc88185acb102b072507d3064b4a7aade5c957267e5d0e6912510bb106eea834cf9250fab
 DIST redis-py-4.4.1.gh.tar.gz 4733306 BLAKE2B b04a5925f87d8c1dbb06b30382f739d6bc39456b6b49be34701afcc1fecfca4783e60a451ddccdaff31f28c38b626e19607a57ebd600f7e28c63a4b62894f397 SHA512 0cec4b518bb56acee6a24ca62e7fdce054b4be764fcfaa860257d8de9f306d9d0f15a662354d7414a4a552475e2b49d97d97de05059310eead068a6269bc3038
 DIST redis-py-4.4.2.gh.tar.gz 4734100 BLAKE2B 8e23c9b81a19cbbead7d6dab682fc4efc75f0c29adb4df6b9bf17f6842b2823249036c67c133039a850504870a0f884275eb65f4e517f84211b51767d7a2ae15 SHA512 3303e87ccc9d4ea3afbb93bcc5e4dcc5bbb3a406878b07c5b8755f28f87cb7a0f9a0db989ec294c2cf42c4ec62f546b5d919a3cb3f11b4ba030e41d13ed2cfc8
+DIST redis-py-4.5.0.gh.tar.gz 4737555 BLAKE2B 27631f43b0952c00105b4ad18b5aeadb133e3642f258b6342bbfb926dee016430f67ca6ae03c59408203e3fd86ea40f3059ecd1604259b4280b56e2c39b9b0eb SHA512 c0c190cd56d2910c69e755f1fb921f05681f922cd937bc047c644eecef7f85f841aa9577a84c59549b91613ab8f2e9960a870d7f45ac1b6eafdfaa9879ed1599

diff --git a/dev-python/redis-py/redis-py-4.5.0.ebuild b/dev-python/redis-py/redis-py-4.5.0.ebuild
new file mode 100644
index 000000000000..b3867b0adbd2
--- /dev/null
+++ b/dev-python/redis-py/redis-py-4.5.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python client for Redis key-value store"
+HOMEPAGE="
+	https://github.com/redis/redis-py/
+	https://pypi.org/project/redis/
+"
+SRC_URI="
+	https://github.com/redis/redis-py/archive/v${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+	>=dev-python/async-timeout-4.0.2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	test? (
+		dev-db/redis
+		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+		dev-python/pytest-timeout[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# Flaky test
+		tests/test_pubsub.py::TestPubSubDeadlock::test_pubsub_deadlock
+		# TODO
+		tests/test_commands.py::TestRedisCommands::test_acl_list
+		# redis-7 different return
+		tests/test_commands.py::TestRedisCommands::test_xautoclaim
+	)
+
+	# TODO: try to run more servers?
+	epytest -m "not redismod and not onlycluster and not replica and not ssl"
+}
+
+src_test() {
+	local redis_pid="${T}"/redis.pid
+	local redis_port=6379
+
+	if has_version ">=dev-db/redis-7"; then
+		local extra_conf="
+			enable-debug-command yes
+			enable-module-command yes
+		"
+	fi
+
+	# Spawn Redis itself for testing purposes
+	einfo "Spawning Redis"
+	einfo "NOTE: Port ${redis_port} must be free"
+	"${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server"
+		daemonize yes
+		pidfile ${redis_pid}
+		port ${redis_port}
+		bind 127.0.0.1 ::1
+		${extra_conf}
+	EOF
+
+	# Run the tests
+	distutils-r1_src_test
+
+	# Clean up afterwards
+	kill "$(<"${redis_pid}")" || die
+}


             reply	other threads:[~2023-02-08  6:27 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-08  6:27 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-08 18:25 [gentoo-commits] repo/gentoo:master commit in: dev-python/redis-py/ Michał Górny
2023-02-08 17:36 Michał Górny
2023-01-11 20:34 Michał Górny
2023-01-08 14:04 Michał Górny
2022-12-25 17:41 Michał Górny
2022-12-25 16:42 Sam James
2022-12-06 16:12 Arthur Zamarin
2022-12-06  6:02 Michał Górny
2022-11-23  8:55 Michał Górny
2022-07-26  6:17 Michał Górny
2022-07-26  1:36 Sam James
2022-07-25  7:12 Michał Górny
2022-06-27 19:08 Arthur Zamarin
2022-06-03  2:19 Sam James
2022-06-03  2:19 Sam James
2022-06-02  0:15 Sam James
2022-05-31  9:01 Sam James
2022-05-10  2:25 Sam James
2022-05-09  9:17 Michał Górny
2022-05-06 11:58 Arthur Zamarin
2022-04-17 16:46 Sam James
2022-04-05  1:11 Sam James
2022-03-31 11:33 Michał Górny
2022-03-24 10:20 Michał Górny
2022-03-16 21:41 Michał Górny
2022-03-16 19:21 Jakov Smolić
2022-03-08 17:11 Jakov Smolić
2022-02-17 20:15 Michał Górny
2022-02-17 19:30 Arthur Zamarin
2022-02-16 22:34 Michał Górny
2022-02-08  9:42 Michał Górny
2022-01-27 19:37 Arthur Zamarin
2022-01-26 20:18 Michał Górny
2022-01-26 19:57 Arthur Zamarin
2022-01-17 12:33 Arthur Zamarin
2021-12-27  2:47 Sam James
2021-12-24  7:23 Agostino Sarubbo
2021-12-24  7:07 Agostino Sarubbo
2021-12-23 22:42 Sam James
2021-12-23 18:27 Arthur Zamarin
2021-12-23 18:27 Arthur Zamarin
2021-12-23 18:27 Arthur Zamarin
2021-12-23 18:21 Arthur Zamarin
2021-12-04 17:43 Arthur Zamarin
2021-12-04 17:43 Arthur Zamarin
2021-11-25 20:28 Arthur Zamarin
2021-11-25  6:47 Sam James
2021-11-25  0:54 Sam James
2021-11-23 13:30 Michał Górny
2021-11-23 13:30 Michał Górny
2021-11-23 13:30 Michał Górny
2021-11-23  8:22 Michał Górny
2021-11-23  8:12 Michał Górny
2021-11-22 23:04 Michał Górny
2021-08-16 14:18 Arthur Zamarin
2021-03-27  0:37 Sam James
2021-03-23  4:53 Sam James
2021-01-18  4:43 Sam James
2020-12-20  6:29 Sam James
2020-11-23 16:39 Sergei Trofimovich
2020-09-04  0:46 Sam James
2020-09-04  0:46 Sam James
2020-09-03 14:29 Thomas Deutschmann
2020-08-02 20:22 Sam James
2020-08-02 20:22 Sam James
2020-03-29  7:04 Michał Górny
2020-03-29  7:04 Michał Górny
2020-03-29  7:04 Michał Górny
2020-03-25 14:52 Agostino Sarubbo
2020-03-25 13:27 Agostino Sarubbo
2020-02-10 11:16 Michał Górny
2020-01-13 19:35 Sebastian Pipping
2019-05-11 18:17 Matthew Thode
2019-04-09  7:05 Matthew Thode
2019-04-03 18:46 William Hubbs
2017-09-25  2:43 Zac Medico
2017-07-10 14:25 Alexis Ballier
2017-05-02 19:15 Michał Górny
2017-04-29 12:29 Jeroen Roovers
2017-04-04 21:26 Michael Weber
2017-03-28 15:48 Michael Weber
2017-03-21 14:34 Agostino Sarubbo
2017-03-21 14:18 Agostino Sarubbo
2017-03-15  9:45 Zac Medico
2017-02-23 11:57 Michael Weber
2017-02-23  8:26 Michael Weber
2017-02-23  8:20 Michael Weber
2017-02-17 14:50 Agostino Sarubbo
2017-02-17 13:44 Agostino Sarubbo
2017-01-23  6:19 Jeroen Roovers
2016-10-08 13:56 Pacho Ramos
2015-10-22 11:09 Justin Lecher
2015-10-01 20:45 Markus Meier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1675837630.54846711e94387d9d52df3b1b0691048eba95ed3.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox