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