summaryrefslogtreecommitdiff
path: root/dev-python/valkey
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-python/valkey
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-python/valkey')
-rw-r--r--dev-python/valkey/Manifest2
-rw-r--r--dev-python/valkey/metadata.xml13
-rw-r--r--dev-python/valkey/valkey-6.1.1.ebuild78
3 files changed, 93 insertions, 0 deletions
diff --git a/dev-python/valkey/Manifest b/dev-python/valkey/Manifest
new file mode 100644
index 000000000000..2bc1c3f8bc42
--- /dev/null
+++ b/dev-python/valkey/Manifest
@@ -0,0 +1,2 @@
+DIST valkey-6.1.1.tar.gz 4601372 BLAKE2B 39702f8e13746bc2c88ca14c1dc4aab3ac4d0da9d8ddf1d6abce7175a22c8c152697dd79dfacfd307852507bf489e5d19233f6bed72a9cd37b24da27a02786a5 SHA512 27be566a06476d9230f7dedeb9565c80be2d9bb58bb189f309acb6f41e831ab433a716454498a35b5632aa8e87d88a729d0319b43faf4e21af465192cf6d617e
+DIST valkey-6.1.1.tar.gz.provenance 9352 BLAKE2B 61725a035bc60c4be8b59b755d675d7f31dff6d874be10a438fe2b2fe439bc0623a3cce348e65e385307d07ebc5d9b36e0ff1b8cc3f99fd7b6c1fc2a35fc3fdf SHA512 58c58c4a1b7b145848e6836ba1173143f7fd0efc9669d542154c27e201d6fd25ce494d7ef0c602eb872df935627a5e8b5643de2004ae00460e3fe46f69c55e88
diff --git a/dev-python/valkey/metadata.xml b/dev-python/valkey/metadata.xml
new file mode 100644
index 000000000000..9a7bd7b32f2c
--- /dev/null
+++ b/dev-python/valkey/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="pypi">valkey</remote-id>
+ <remote-id type="github">valkey-io/valkey-py</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/valkey/valkey-6.1.1.ebuild b/dev-python/valkey/valkey-6.1.1.ebuild
new file mode 100644
index 000000000000..f08930df3184
--- /dev/null
+++ b/dev-python/valkey/valkey-6.1.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_VERIFY_REPO=https://github.com/valkey-io/valkey-py
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python client for Valkey forked from redis-py"
+HOMEPAGE="
+ https://github.com/valkey-io/valkey-py/
+ https://pypi.org/project/valkey/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~sparc ~x86"
+
+BDEPEND="
+ test? (
+ dev-db/valkey
+ )
+"
+
+EPYTEST_PLUGINS=( pytest-{asyncio,timeout} )
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # requires cluster
+ tests/{,test_asyncio/}test_cache.py::TestSentinelLocalCache::test_get_from_cache
+ tests/{,test_asyncio/}'test_cache.py::TestSentinelLocalCache::test_cache_decode_response[sentinel_setup0]'
+ # unexpected commands (different valkey version?)
+ tests/test_commands.py::TestValkeyCommands::test_acl_getuser_setuser
+ # looks like upstream didn't bother updating the server name here
+ tests/test_commands.py::TestValkeyCommands::test_lolwut
+ )
+ local EPYTEST_IGNORE=(
+ # missing modules
+ tests/{,test_asyncio/}test_bloom.py
+ tests/{,test_asyncio/}test_json.py
+ tests/{,test_asyncio/}test_search.py
+ tests/{,test_asyncio/}test_timeseries.py
+ # missing SSL certificates
+ tests/test_asyncio/test_cluster.py
+ tests/test_ssl.py
+ )
+
+ # TODO: try to run more servers?
+ epytest --asyncio-mode=auto \
+ -m "not valkeymod and not onlycluster and not replica and not ssl"
+}
+
+src_test() {
+ local valkey_pid="${T}"/valkey.pid
+ local valkey_port=6379
+
+ # Spawn valkey itself for testing purposes
+ einfo "Spawning valkey"
+ einfo "NOTE: Port ${valkey_port} must be free"
+ "${EPREFIX}"/usr/sbin/valkey-server - <<- EOF || die "Unable to start valkey server"
+ daemonize yes
+ pidfile ${valkey_pid}
+ port ${valkey_port}
+ bind 127.0.0.1 ::1
+ enable-debug-command yes
+ enable-module-command yes
+ EOF
+
+ # Run the tests
+ distutils-r1_src_test
+
+ # Clean up afterwards
+ kill "$(<"${valkey_pid}")" || die
+}