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