1 |
ultrabug 14/05/26 08:38:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pymongo-2.7.1.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B658FA13) |
9 |
|
10 |
Revision Changes Path |
11 |
1.39 dev-python/pymongo/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/ChangeLog?rev=1.39&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/ChangeLog?rev=1.39&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/ChangeLog?r1=1.38&r2=1.39 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/pymongo/ChangeLog,v |
20 |
retrieving revision 1.38 |
21 |
retrieving revision 1.39 |
22 |
diff -u -r1.38 -r1.39 |
23 |
--- ChangeLog 15 Apr 2014 15:18:18 -0000 1.38 |
24 |
+++ ChangeLog 26 May 2014 08:38:11 -0000 1.39 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-python/pymongo |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pymongo/ChangeLog,v 1.38 2014/04/15 15:18:18 ultrabug Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pymongo/ChangeLog,v 1.39 2014/05/26 08:38:11 ultrabug Exp $ |
30 |
+ |
31 |
+*pymongo-2.7.1 (26 May 2014) |
32 |
+ |
33 |
+ 26 May 2014; Ultrabug <ultrabug@g.o> +pymongo-2.7.1.ebuild: |
34 |
+ version bump |
35 |
|
36 |
*pymongo-2.7-r1 (15 Apr 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-python/pymongo/pymongo-2.7.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/pymongo-2.7.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pymongo/pymongo-2.7.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: pymongo-2.7.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/pymongo/pymongo-2.7.1.ebuild,v 1.1 2014/05/26 08:38:11 ultrabug Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy pypy2_0 ) |
55 |
|
56 |
inherit check-reqs distutils-r1 |
57 |
|
58 |
DESCRIPTION="Python driver for MongoDB" |
59 |
HOMEPAGE="http://github.com/mongodb/mongo-python-driver http://pypi.python.org/pypi/pymongo" |
60 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
61 |
|
62 |
LICENSE="Apache-2.0" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~x86" |
65 |
IUSE="doc kerberos test" |
66 |
|
67 |
RDEPEND="dev-db/mongodb" |
68 |
DEPEND="${RDEPEND} |
69 |
dev-python/setuptools[${PYTHON_USEDEP}] |
70 |
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
71 |
test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
72 |
kerberos? ( dev-python/pykerberos )" |
73 |
DISTUTILS_IN_SOURCE_BUILD=1 |
74 |
|
75 |
reqcheck() { |
76 |
if use test; then |
77 |
# During the tests, database size reaches 1.5G. |
78 |
local CHECKREQS_DISK_BUILD=1536M |
79 |
|
80 |
check-reqs_${1} |
81 |
fi |
82 |
} |
83 |
|
84 |
pkg_pretend() { |
85 |
reqcheck pkg_pretend |
86 |
} |
87 |
|
88 |
pkg_setup() { |
89 |
reqcheck pkg_setup |
90 |
} |
91 |
|
92 |
python_compile_all() { |
93 |
if use doc; then |
94 |
mkdir html || die |
95 |
sphinx-build doc html || die |
96 |
fi |
97 |
} |
98 |
|
99 |
src_test() { |
100 |
# Yes, we need TCP/IP for that... |
101 |
local DB_IP=127.0.0.1 |
102 |
local DB_PORT=27000 |
103 |
|
104 |
export DB_IP DB_PORT |
105 |
|
106 |
# 1.5G of disk space per run. |
107 |
local DISTUTILS_NO_PARALLEL_BUILD=1 |
108 |
|
109 |
distutils-r1_src_test |
110 |
} |
111 |
|
112 |
python_test() { |
113 |
local dbpath=${TMPDIR}/mongo.db |
114 |
local logpath=${TMPDIR}/mongod.log |
115 |
|
116 |
# Now, the hard part: we need to find a free port for mongod. |
117 |
# We're just trying to run it random port numbers and check the log |
118 |
# for bind errors. It shall be noted that 'mongod --fork' does not |
119 |
# return failure when it fails to bind. |
120 |
|
121 |
mkdir -p "${dbpath}" || die |
122 |
while true; do |
123 |
ebegin "Trying to start mongod on port ${DB_PORT}" |
124 |
|
125 |
LC_ALL=C \ |
126 |
mongod --dbpath "${dbpath}" --smallfiles --nojournal \ |
127 |
--bind_ip ${DB_IP} --port ${DB_PORT} \ |
128 |
--unixSocketPrefix "${TMPDIR}" \ |
129 |
--logpath "${logpath}" --fork \ |
130 |
&& sleep 2 |
131 |
|
132 |
# Now we need to check if the server actually started... |
133 |
if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then |
134 |
# yay! |
135 |
eend 0 |
136 |
break |
137 |
elif grep -q 'Address already in use' "${logpath}"; then |
138 |
# ay, someone took our port! |
139 |
eend 1 |
140 |
: $(( DB_PORT += 1 )) |
141 |
continue |
142 |
else |
143 |
eend 1 |
144 |
eerror "Unable to start mongod for tests. See the server log:" |
145 |
eerror " ${logpath}" |
146 |
die "Unable to start mongod for tests." |
147 |
fi |
148 |
done |
149 |
|
150 |
local failed |
151 |
#https://jira.mongodb.org/browse/PYTHON-521, py2.[6-7] has intermittent failure with gevent |
152 |
pushd "${BUILD_DIR}"/../ > /dev/null |
153 |
if [[ "${EPYTHON}" == python3* ]]; then |
154 |
2to3 --no-diffs -w test |
155 |
fi |
156 |
DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1 |
157 |
|
158 |
mongod --dbpath "${dbpath}" --shutdown |
159 |
|
160 |
[[ ${failed} ]] && die "Tests fail with ${EPYTHON}" |
161 |
|
162 |
rm -rf "${dbpath}" |
163 |
} |
164 |
|
165 |
python_install_all() { |
166 |
use doc && local HTML_DOCS=( html/. ) |
167 |
|
168 |
distutils-r1_python_install_all |
169 |
} |