Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/redis-py: redis-py-2.9.1.ebuild ChangeLog
Date: Thu, 06 Feb 2014 06:13:17
Message-Id: 20140206061313.5EC1F2004C@flycatcher.gentoo.org
1 bicatali 14/02/06 06:13:13
2
3 Modified: ChangeLog
4 Added: redis-py-2.9.1.ebuild
5 Log:
6 Version bump and keyword amd64-linux and x86-linux
7
8 (Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
9
10 Revision Changes Path
11 1.43 dev-python/redis-py/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?rev=1.43&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?rev=1.43&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/ChangeLog?r1=1.42&r2=1.43
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v
20 retrieving revision 1.42
21 retrieving revision 1.43
22 diff -u -r1.42 -r1.43
23 --- ChangeLog 5 Sep 2013 18:46:37 -0000 1.42
24 +++ ChangeLog 6 Feb 2014 06:13:13 -0000 1.43
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.42 2013/09/05 18:46:37 mgorny Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/ChangeLog,v 1.43 2014/02/06 06:13:13 bicatali Exp $
31 +
32 +*redis-py-2.9.1 (06 Feb 2014)
33 +
34 + 06 Feb 2014; Sébastien Fabbro <bicatali@g.o> +redis-py-2.9.1.ebuild:
35 + Version bump and keyword amd64-linux and x86-linux
36
37 05 Sep 2013; Michał Górny <mgorny@g.o> redis-py-2.7.2-r1.ebuild,
38 redis-py-2.7.4.ebuild, redis-py-2.7.5.ebuild, redis-py-2.7.6.ebuild:
39
40
41
42 1.1 dev-python/redis-py/redis-py-2.9.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/redis-py-2.9.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/redis-py/redis-py-2.9.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: redis-py-2.9.1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/redis-py/redis-py-2.9.1.ebuild,v 1.1 2014/02/06 06:13:13 bicatali Exp $
52
53 EAPI=5
54 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
55
56 inherit distutils-r1
57
58 MY_PN="redis"
59 MY_P="${MY_PN}-${PV}"
60
61 DESCRIPTION="Python client for Redis key-value store"
62 HOMEPAGE="http://github.com/andymccurdy/redis-py"
63 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
64
65 LICENSE="MIT"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
68 IUSE="test"
69
70 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
71 test? ( dev-db/redis )"
72 RDEPEND=""
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 local pidfile=${T}/redis-${EPYTHON}.pid
104 local sock=${T}/redis-${EPYTHON}.sock
105
106 sed -i -e "s:port=6379:unix_socket_path=\"${sock}\":" \
107 "${BUILD_DIR}"/tests/*.py || die
108
109 # XXX: find a way to make sure it is killed
110
111 "${EPREFIX}"/usr/sbin/redis-server \
112 --pidfile "${pidfile}" \
113 --port 0 \
114 --unixsocket "${sock}" \
115 --daemonize yes || die
116 PYTHONPATH="${PYTHONPATH}:${BUILD_DIR}" \
117 esetup.py test
118 kill "$(<"${pidfile}")"
119 }