Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/redis-py: redis-py-2.7.5.ebuild ChangeLog
Date: Wed, 22 May 2013 07:48:45
Message-Id: 20130522074838.557EB2171D@flycatcher.gentoo.org
1 patrick 13/05/22 07:48:38
2
3 Modified: ChangeLog
4 Added: redis-py-2.7.5.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.0_alpha176/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.38 dev-python/redis-py/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 14 May 2013 09:37:23 -0000 1.37
24 +++ ChangeLog 22 May 2013 07:48:38 -0000 1.38
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/redis-py
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v 1.37 2013/05/14 09:37:23 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v 1.38 2013/05/22 07:48:38 patrick Exp $
30 +
31 +*redis-py-2.7.5 (22 May 2013)
32 +
33 + 22 May 2013; Patrick Lauer <patrick@g.o> +redis-py-2.7.5.ebuild:
34 + Bump
35
36 14 May 2013; Agostino Sarubbo <ago@g.o> redis-py-2.7.2-r1.ebuild:
37 Stable for x86, wrt bug #469662
38
39
40
41 1.1 dev-python/redis-py/redis-py-2.7.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/redis-py-2.7.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/redis-py-2.7.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: redis-py-2.7.5.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.7.5.ebuild,v 1.1 2013/05/22 07:48:38 patrick Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
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 http://pypi.python.org/pypi/redis"
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 ~x86"
67 IUSE="test"
68
69 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
70 test? ( dev-db/redis )"
71 RDEPEND=""
72
73 S="${WORKDIR}/${MY_P}"
74
75 python_prepare_all() {
76 # Disable pubsub and encoding tests, they do not seem to support
77 # UNIX socket connectivity.
78 sed -i -e '/PubSub/d' -e '/Encoding/d' \
79 -e '/use_hiredis:/d' tests/__init__.py || die
80
81 # Make sure that tests will be used from BUILD_DIR rather than cwd.
82 mv tests tests-hidden || die
83
84 distutils-r1_python_prepare_all
85 }
86
87 python_compile() {
88 distutils-r1_python_compile
89
90 if use test; then
91 cp -r tests-hidden "${BUILD_DIR}"/tests || die
92 fi
93 }
94
95 src_test() {
96 # local DISTUTILS_NO_PARALLEL_BUILD=1
97
98 distutils-r1_src_test
99 }
100
101 python_test() {
102 local pidfile=${T}/redis-${EPYTHON}.pid
103 local sock=${T}/redis-${EPYTHON}.sock
104
105 sed -i -e "s:port=6379:unix_socket_path=\"${sock}\":" \
106 "${BUILD_DIR}"/tests/*.py || die
107
108 # XXX: find a way to make sure it is killed
109
110 "${EPREFIX}"/usr/sbin/redis-server \
111 --pidfile "${pidfile}" \
112 --port 0 \
113 --unixsocket "${sock}" \
114 --daemonize yes || die
115 PYTHONPATH="${PYTHONPATH}:${BUILD_DIR}" \
116 esetup.py test
117 kill "$(<"${pidfile}")"
118 }