From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/redis-py/Manifest | 10 ++++ .../files/redis-py-2.10.5-test-finalize.patch | 19 +++++++ dev-python/redis-py/metadata.xml | 12 ++++ dev-python/redis-py/redis-py-2.10.5.ebuild | 65 ++++++++++++++++++++++ dev-python/redis-py/redis-py-2.10.6.ebuild | 65 ++++++++++++++++++++++ dev-python/redis-py/redis-py-2.9.1.ebuild | 64 +++++++++++++++++++++ 6 files changed, 235 insertions(+) create mode 100644 dev-python/redis-py/Manifest create mode 100644 dev-python/redis-py/files/redis-py-2.10.5-test-finalize.patch create mode 100644 dev-python/redis-py/metadata.xml create mode 100644 dev-python/redis-py/redis-py-2.10.5.ebuild create mode 100644 dev-python/redis-py/redis-py-2.10.6.ebuild create mode 100644 dev-python/redis-py/redis-py-2.9.1.ebuild (limited to 'dev-python/redis-py') diff --git a/dev-python/redis-py/Manifest b/dev-python/redis-py/Manifest new file mode 100644 index 000000000000..685746e6dff9 --- /dev/null +++ b/dev-python/redis-py/Manifest @@ -0,0 +1,10 @@ +AUX redis-py-2.10.5-test-finalize.patch 543 SHA256 2ae490d7c3ec83fe3d8d5945d042d6f74eb1f70125585a658ac558a94f772079 SHA512 bd1e48117d6ec89fcf86dde41b38deab3782e4e1ee6038123d3b225214b9843703067ca0d4b813d7bf8da1f64e45ff19a1b5a9337f2a9953a7f3ef9766b7a441 WHIRLPOOL 3c2a541fc779fd57c1675d0286edf4e5feefec10997f370a7a7eaa6f8424e461fdf419a584d89241b987579ff48716952ab20745e19941251728f4dbe8792575 +DIST redis-py-2.10.5.tar.gz 88610 SHA256 5dfbae6acfc54edf0a7a415b99e0b21c0a3c27a7f787b292eea727b1facc5533 SHA512 b2e6cb85c274c8f1c63e27256bbab816d016a68c324bf7092cf53feae819a34fa94f45565b0f209ee981919d793b2963462eb1a6f841e9dde9885802e0ebbe8f WHIRLPOOL af0b92b5ddb69346ff285d959a5052df5d65638e70d8d1b3d4b00adb80755eef41b492bfea432507443883f206a4537faf10e82d4253d7612e74ab7a52df47f1 +DIST redis-py-2.10.6.tar.gz 97299 SHA256 a22ca993cea2962dbb588f9f30d0015ac4afcc45bee27d3978c0dbe9e97c6c0f SHA512 e7df464bc3b26e23f6a0d2d2896306c1e4792b9a2a4ecaea6dd8690ffa17853cc85345f063307295dd3c2da399f7f203f4b21d785f7e073c0501732257419dad WHIRLPOOL 10ad4dafe9e2d5f97ceef40133b392d5dc00343151aa08e109576de6dbd5d7401528fc12b04def81d03e3dc41e50afe99338d3692bfb094c568e32da40460382 +DIST redis-py-2.9.1.tar.gz 62204 SHA256 af9747ec2727425b1b09252975e21502ee5a3d8d235c7f49869eb13e09ccf4e4 SHA512 6b4912acafb31c87a5bc47b0420834aa9d1eba57feb0bbacdea943b746fe2f24aee4c9f13e7b03ae4edc562043b22c370cc7f53e45be07c5408cfa9852f8ea38 WHIRLPOOL ae38ea63d605f8dd667d9fc548de972bf38d661ae6ef357070ebe7cba3b484febc45d6b7611916d8a1e262e6bbf4754257e727f41af8caa30597954a1fc20cf5 +EBUILD redis-py-2.10.5.ebuild 1454 SHA256 4dbeeb5ed8323c4c343c1931bf54c650524821f1ca0e1451f54dc50a336a7066 SHA512 7f38ee8032cec9ffc40554672fc29e53f8654747852c56b7a2f30bdb90cae865dc0c234fae8b95d6ad943f73714c9866fd06e0f35ed2cb38b990988293fa9079 WHIRLPOOL e98f606044bd9bf02bd0670a0ad8716e6ccc36f8d94b173124921d201a93929a45486fb64813000844008ecffaba4e567dd713411cf89b83ed7ae6a21747c45f +EBUILD redis-py-2.10.6.ebuild 1467 SHA256 632c02e3d3ff6493b95caa6c5415117d0f873c18c5ca4e5c7620bd416675a70f SHA512 48800bc3ccee6808fc18288eac74763346e0607ddceb151d8ef47229426d2b8afce1a22b3d28722bbbf96e673d23cffdaebccbda965dc33764c80b4877e6ca48 WHIRLPOOL b1c8280720ec41a5e6067394a7ecfcde15131d845d5d013931b48af290ab823d5299c866916ee6d4f6eabdbb9e8d3e45503f523e28c26d5870325bb2589af6b0 +EBUILD redis-py-2.9.1.ebuild 1527 SHA256 99d7caab6a2514e22531f6bc5a1c949134c5a2c7ef3cc2a7c41a3738d4698bed SHA512 7eb014071ec90b685ad9f86a942e716b695e4f8dafb74faa259811021d2d272721722df883bf47ef9e130579c9ce3768fa26f3ce19175d10b64f2e93339131dd WHIRLPOOL 48b28579576fe98ea6ba29e35954029b1795e35a4c930519949b204eed33711e7e87692ca6e4cb615c4a4ac0f09ea1b5ecf91f71b1ccacd540ed905fe40cc776 +MISC ChangeLog 4838 SHA256 b1cbce92a897999fdccaddb64dc13b51195f2a255df0290e6289e7a4c9645249 SHA512 08e1c8d580f9183339c5ac068fa4348d4a151df92b5352b09b8cbfe1f67c4b6d1721f3788e360b8187f35e4764784eb3b8f332b5a17fa2f9be8c53f58145ebcf WHIRLPOOL d202106164e2d772a72e04c370ee7593126c26d1bcee3e97048d92351ef120b444b15a7bc2c90d801776acd58ca26b6201c1a6d85cc704a2e2dc09d5a75873ac +MISC ChangeLog-2015 7582 SHA256 ea385c0bf4cffb6974af68c66de233fc43232b4aa00a854073b6e47c9692ca0c SHA512 5b316f00ba34c72a08cf678a4a5d07227aaeb2a7dde8772831979aca8eac34cf35f8e91b407c6f607f684b76ecdcf7be2dfbe633cbe17e4af5553f88aecd4971 WHIRLPOOL fb8796574ecf98de6ff3ae9dc9e8f43530b65742d7f2a1039384ff0988ffd7020d5854f65da0a2eeddef217912044300a9044fbf384a7fc939f1c8dad649d913 +MISC metadata.xml 380 SHA256 6df6ede6f1fd6460d0ca75a3b8fa4cf60fd4dacb6d17a89587c0a6e31ef4a572 SHA512 5e03d25770ee53beb71d1efa039401a5598572bbf6cd441c904fb5c074d212c0c05934c6f86abb566e913ac65bd84db3cdaca8b83c182dad57d0fcffdeb9aa4b WHIRLPOOL 9241138457c38de59a83bb4d3f72e4d729c67a5aa64e0fbe17b26bed9d96ca65f773d6b406206bf7bbff6fee6e3b659654c3b786a830b77bf8c6b7df58eda56e diff --git a/dev-python/redis-py/files/redis-py-2.10.5-test-finalize.patch b/dev-python/redis-py/files/redis-py-2.10.5-test-finalize.patch new file mode 100644 index 000000000000..1a807480dfb0 --- /dev/null +++ b/dev-python/redis-py/files/redis-py-2.10.5-test-finalize.patch @@ -0,0 +1,19 @@ + setup.py | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/setup.py b/setup.py +index ed8fd5f..ab648a3 100644 +--- a/setup.py ++++ b/setup.py +@@ -9,11 +9,6 @@ try: + from setuptools.command.test import test as TestCommand + + class PyTest(TestCommand): +- def finalize_options(self): +- TestCommand.finalize_options(self) +- self.test_args = [] +- self.test_suite = True +- + def run_tests(self): + # import here, because outside the eggs aren't loaded + import pytest diff --git a/dev-python/redis-py/metadata.xml b/dev-python/redis-py/metadata.xml new file mode 100644 index 000000000000..521781f755ca --- /dev/null +++ b/dev-python/redis-py/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + redis + andymccurdy/redis-py + + diff --git a/dev-python/redis-py/redis-py-2.10.5.ebuild b/dev-python/redis-py/redis-py-2.10.5.ebuild new file mode 100644 index 000000000000..f0f244bd48ce --- /dev/null +++ b/dev-python/redis-py/redis-py-2.10.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy 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" + +RDEPEND="" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-db/redis + >=dev-python/pytest-2.5.0[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${P}-test-finalize.patch +) + +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:' \ + -i tests-hidden/{test_connection_pool.py,test_commands.py,test_encoding.py,test_pubsub.py} \ + || die +} + +python_compile() { + distutils-r1_python_compile + + if use test; then + cp -r tests-hidden "${BUILD_DIR}"/tests || die + fi +} + +python_test() { + local sock="${T}/redis.sock" + + "${EPREFIX}/usr/sbin/redis-server" - <<- EOF + daemonize yes + pidfile "${T}/redis.pid" + unixsocket ${sock} + EOF + + PYTHONPATH="${S}:${S}/tests-hidden" + esetup.py test --verbose + kill $(<"${T}/redis.pid") +} diff --git a/dev-python/redis-py/redis-py-2.10.6.ebuild b/dev-python/redis-py/redis-py-2.10.6.ebuild new file mode 100644 index 000000000000..b129427e76e6 --- /dev/null +++ b/dev-python/redis-py/redis-py-2.10.6.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy 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" + +RDEPEND="" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-db/redis + >=dev-python/pytest-2.5.0[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-2.10.5-test-finalize.patch +) + +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:' \ + -i tests-hidden/{test_connection_pool.py,test_commands.py,test_encoding.py,test_pubsub.py} \ + || die +} + +python_compile() { + distutils-r1_python_compile + + if use test; then + cp -r tests-hidden "${BUILD_DIR}"/tests || die + fi +} + +python_test() { + local sock="${T}/redis.sock" + + "${EPREFIX}/usr/sbin/redis-server" - <<- EOF + daemonize yes + pidfile "${T}/redis.pid" + unixsocket ${sock} + EOF + + PYTHONPATH="${S}:${S}/tests-hidden" + esetup.py test --verbose + kill $(<"${T}/redis.pid") +} diff --git a/dev-python/redis-py/redis-py-2.9.1.ebuild b/dev-python/redis-py/redis-py-2.9.1.ebuild new file mode 100644 index 000000000000..c10e206a69e6 --- /dev/null +++ b/dev-python/redis-py/redis-py-2.9.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy ) + +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 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux" +IUSE="test" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-db/redis )" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + # Disable pubsub and encoding tests, they do not seem to support + # UNIX socket connectivity. + sed -i -e '/PubSub/d' -e '/Encoding/d' \ + -e '/use_hiredis:/d' tests/__init__.py || die + + # Make sure that tests will be used from BUILD_DIR rather than cwd. + mv tests tests-hidden || die + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile + + if use test; then + cp -r tests-hidden "${BUILD_DIR}"/tests || die + fi +} + +python_test() { + local pidfile=${T}/redis-${EPYTHON}.pid + local sock=${T}/redis-${EPYTHON}.sock + + sed -i -e "s:port=6379:unix_socket_path=\"${sock}\":" \ + "${BUILD_DIR}"/tests/*.py || die + + # XXX: find a way to make sure it is killed + + "${EPREFIX}"/usr/sbin/redis-server \ + --pidfile "${pidfile}" \ + --port 0 \ + --unixsocket "${sock}" \ + --daemonize yes || die + PYTHONPATH="${PYTHONPATH}:${BUILD_DIR}" \ + esetup.py test + kill "$(<"${pidfile}")" +} -- cgit v1.2.3