summaryrefslogtreecommitdiff
path: root/dev-python/redis-py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-python/redis-py
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-python/redis-py')
-rw-r--r--dev-python/redis-py/Manifest4
-rw-r--r--dev-python/redis-py/metadata.xml4
-rw-r--r--dev-python/redis-py/redis-py-3.5.3.ebuild77
3 files changed, 84 insertions, 1 deletions
diff --git a/dev-python/redis-py/Manifest b/dev-python/redis-py/Manifest
index bb9949791e13..de2084ee45f0 100644
--- a/dev-python/redis-py/Manifest
+++ b/dev-python/redis-py/Manifest
@@ -1,3 +1,5 @@
DIST redis-py-3.3.11.tar.gz 131072 BLAKE2B 6becafba3da22bae796a4a9ba55d11a61d9ed1a8b693a734d4ef3f0e463c0c39a05c01546225f69eb36a788779d6e45d0136e1a6d6856ec63c3dd07994b5db9a SHA512 a32327fcebc6242367c0eda6c6dcd1a15d5d575527af2e9de0d76e05bc4afc7402566d9254e467663b81907a310731af3041236b6b135f3b8ff1429a502c1000
+DIST redis-py-3.5.3.tar.gz 141112 BLAKE2B b953d553a3cfa2d6ba6f5aa35dfaf93865acbfad0e901a96082c3b1c027dc23b6ceedde185f24e86772522fbbf4f0a4d18e115a6b40aff6a65450bbe397d5c07 SHA512 eae6ac6b3e0f1366a9c29e5e2d9a5210e4627e62e3006159b1c290f36cd9c1c2c12cafe0944f7a010e04632b517874f230aa9411491993b7ecf2080546217206
EBUILD redis-py-3.3.11.ebuild 1392 BLAKE2B 0c8044cc01e3ddd2e0241b6c0c11af2e7502841ee35467e85ee0ce9d1f6d3a504f13dec3e398c3f25d824c4b1351455ad076f7f6c470c35cde219d34f29d576f SHA512 5e5e60f524274914a9aa3921f2e6f5d8f9cacef862d37aec617ae6f91c7970c0b6d629b3fdadc47f0a765fd85f87a8c90c89c2730cb4c8d39a468b697b6868e0
-MISC metadata.xml 405 BLAKE2B 33aa17aa79ad24668e5a7383e8677b9c9eed8d966ca92b681c55453c1b51a8a25d89be0bf807117240cece38025bfceca429473bd8453e9b061646f48a05d950 SHA512 e85ae27399cf1b555a084f4b9a156bba4d4e065fbe45fe9366497438ec2510647de1939d8ebc6dd0207302a34760503fedd89c2f977ed41a103a388174fd2281
+EBUILD redis-py-3.5.3.ebuild 1729 BLAKE2B db3ed4946abbcc7759cf464a0973d7813a8fb1e5bcdfcbdadb290bc4155038fcefd6ceb2a2d643a5327be93c3dc835f4eab9936880158fcb22c98c68e9a4da82 SHA512 78a4901fb4e2e12d96617f3931637d8eb5765fc7e4729c8484cca59368f702103f7937444c31498af5e5640907e9d772427e0fea85d40dadd9888b2d3384499c
+MISC metadata.xml 511 BLAKE2B 6b9a364015a9b526496a892cb8d65ff20a347b7781813312272845504c36db9ee2a351169c306d0130dcb6cc71365d68ba1fc327140f5dda290c5e7281f0d6ed SHA512 9fba3ab00a43d2b876b6cbce7be1946a4fadfe22bcd360af49b738632583385f9607bf28fd828eff543f7b8877b6c86e8492367536dd44239800f3ddcd4d0bff
diff --git a/dev-python/redis-py/metadata.xml b/dev-python/redis-py/metadata.xml
index 6ead82e64b28..0d56d7eae1f1 100644
--- a/dev-python/redis-py/metadata.xml
+++ b/dev-python/redis-py/metadata.xml
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
diff --git a/dev-python/redis-py/redis-py-3.5.3.ebuild b/dev-python/redis-py/redis-py-3.5.3.ebuild
new file mode 100644
index 000000000000..bd958cbad2e7
--- /dev/null
+++ b/dev-python/redis-py/redis-py-3.5.3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
+
+inherit distutils-r1
+
+MY_PN="redis"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Python client for Redis key-value store"
+HOMEPAGE="https://github.com/andymccurdy/redis-py"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ dev-db/redis
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ # Make sure that tests will be used from BUILD_DIR rather than cwd.
+ mv tests tests-hidden || die
+
+ # Correct local import patch syntax
+ sed \
+ -e 's:from .conftest:from conftest:' \
+ -e 's:from .test_pubsub:from test_pubsub:' \
+ -i tests-hidden/test_*.py \
+ || die
+}
+
+python_compile() {
+ distutils-r1_python_compile
+
+ if use test; then
+ cp -r tests-hidden "${BUILD_DIR}"/tests || die
+ fi
+}
+
+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
+ "
+
+ # Spawn Redis itself for testing purposes
+ # NOTE: On sam@'s machine, spawning Redis can hang in the sandbox.
+ # I'm not restricting tests yet because this doesn't happen for anyone else AFAICT.
+ elog "Spawning Redis"
+ elog "NOTE: Port ${redis_port} must be free"
+ /usr/sbin/redis-server - <<< "${redis_test_config}" || die
+
+ # Run the tests
+ distutils-r1_src_test
+
+ # Clean up afterwards
+ kill "$(<"${redis_pid}")" || die
+}
+
+distutils_enable_tests pytest