Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/redis-py: redis-py-2.10.1.ebuild ChangeLog
Date: Wed, 25 Jun 2014 02:42:57
Message-Id: 20140625024252.AD7952004F@flycatcher.gentoo.org
1 idella4 14/06/25 02:42:52
2
3 Modified: ChangeLog
4 Added: redis-py-2.10.1.ebuild
5 Log:
6 bump; add py3.4 support
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.47 dev-python/redis-py/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?rev=1.47&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?rev=1.47&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?r1=1.46&r2=1.47
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v
20 retrieving revision 1.46
21 retrieving revision 1.47
22 diff -u -r1.46 -r1.47
23 --- ChangeLog 20 May 2014 11:27:28 -0000 1.46
24 +++ ChangeLog 25 Jun 2014 02:42:52 -0000 1.47
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/redis-py
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v 1.46 2014/05/20 11:27:28 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v 1.47 2014/06/25 02:42:52 idella4 Exp $
30 +
31 +*redis-py-2.10.1 (25 Jun 2014)
32 +
33 + 25 Jun 2014; Ian Delaney <idella4@g.o> +redis-py-2.10.1.ebuild:
34 + bump; add py3.4 support
35
36 20 May 2014; Jeroen Roovers <jer@g.o> redis-py-2.9.1.ebuild:
37 Marked ~hppa (bug #510626).
38
39
40
41 1.1 dev-python/redis-py/redis-py-2.10.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/redis-py-2.10.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/redis-py-2.10.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: redis-py-2.10.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/redis-py-2.10.1.ebuild,v 1.1 2014/06/25 02:42:52 idella4 Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
54
55 inherit distutils-r1
56
57 MY_PN="redis"
58 MY_P="${MY_PN}-${PV}"
59
60 DESCRIPTION="Python client for Redis key-value store"
61 HOMEPAGE="http://github.com/andymccurdy/redis-py"
62 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
63
64 LICENSE="MIT"
65 SLOT="0"
66 KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux ~x86-linux"
67 IUSE="test"
68
69 RDEPEND="dev-db/redis"
70 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
71 test? ( ${RDEPEND}
72 >=dev-python/pytest-2.5.0[${PYTHON_USEDEP}] )"
73
74 S="${WORKDIR}/${MY_P}"
75
76 python_prepare_all() {
77 # Disable pubsub and encoding tests, they do not seem to support
78 # UNIX socket connectivity.
79 sed -i -e '/PubSub/d' -e '/Encoding/d' \
80 -e '/use_hiredis:/d' tests/__init__.py || die
81
82 # Make sure that tests will be used from BUILD_DIR rather than cwd.
83 mv tests tests-hidden || die
84
85 distutils-r1_python_prepare_all
86 }
87
88 python_compile() {
89 distutils-r1_python_compile
90
91 if use test; then
92 cp -r tests-hidden "${BUILD_DIR}"/tests || die
93 fi
94 }
95
96 src_test() {
97 # local DISTUTILS_NO_PARALLEL_BUILD=1
98
99 distutils-r1_src_test
100 }
101
102 python_test() {
103 # https://github.com/andymccurdy/redis-py/issues/503
104 # the suite is quite broken at this point but it's also the case in -2.9.1,
105 # making this not a regression. but a fix is in 'progress', just not the overlay one
106 local pidfile=${T}/redis-${EPYTHON}.pid
107 local sock=${T}/redis-${EPYTHON}.sock
108
109 sed -i -e "s:port=6379:unix_socket_path=\"${sock}\":" \
110 "${BUILD_DIR}"/tests/*.py || die
111
112 # XXX: find a way to make sure it is killed
113
114 "${EPREFIX}"/usr/sbin/redis-server \
115 --pidfile "${pidfile}" \
116 --port 0 \
117 --unixsocket "${sock}" \
118 --daemonize yes || die
119 PYTHONPATH="${PYTHONPATH}:${BUILD_DIR}" \
120 esetup.py test
121 kill "$(<"${pidfile}")"
122 }