Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pymongo/
Date: Thu, 06 Jan 2022 20:52:30
Message-Id: 1641502341.ab5c7071f01f6d65183e73040be232d1123d9a9a.mgorny@gentoo
1 commit: ab5c7071f01f6d65183e73040be232d1123d9a9a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 6 20:51:54 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 6 20:52:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab5c7071
7
8 dev-python/pymongo: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pymongo/Manifest | 6 --
13 dev-python/pymongo/pymongo-3.11.4.ebuild | 115 -------------------------------
14 dev-python/pymongo/pymongo-3.12.0.ebuild | 115 -------------------------------
15 dev-python/pymongo/pymongo-3.12.1.ebuild | 115 -------------------------------
16 dev-python/pymongo/pymongo-3.12.2.ebuild | 112 ------------------------------
17 dev-python/pymongo/pymongo-3.12.3.ebuild | 112 ------------------------------
18 dev-python/pymongo/pymongo-4.0.ebuild | 112 ------------------------------
19 7 files changed, 687 deletions(-)
20
21 diff --git a/dev-python/pymongo/Manifest b/dev-python/pymongo/Manifest
22 index f09ae2165605..57adc2d896f2 100644
23 --- a/dev-python/pymongo/Manifest
24 +++ b/dev-python/pymongo/Manifest
25 @@ -1,7 +1 @@
26 -DIST mongo-python-driver-3.11.4.tar.gz 983009 BLAKE2B b2ca8d90a34b41c0991b545626853137b6a7f5f006dbb5d7a93fd8312759b53b99415583ca5ba982abb420db8502cb9de745f1ac0962efa05eb05ecb4289c323 SHA512 ecd2ff41ab902423dc58901cd9a8355e200f5b00a4eea4a8e950de75674fd59f7367df1ab7ee6c09bf515b8fa110cac0f7de084fbe14527486a9c38a0c8c9c27
27 -DIST mongo-python-driver-3.12.0.tar.gz 1062091 BLAKE2B 636a34a42d43a6ecd549c51e9e5b3a617291b64a1ba91d7473c365f8df88d59efd7b2906dd80147ffab4309d38cce30a3475bbe142e347312823236f8657c801 SHA512 fc2734b8821b42cca1b67930d5c7612526e51292144a376425627ea6254b09128ccd894af3be293184f940c7f8faa1c0cd3a0d069f9b4143a15cb32279c3bdb1
28 -DIST mongo-python-driver-3.12.1.tar.gz 1067667 BLAKE2B 3f18c5aa92ce180067f9c86e1fcbd80543274a2ee33ce1fad5741f0e7f5a9cb0520c33b8fe885ea69c2c8ce168747a44129fe79a5df389b83bd5e77a6ec4a687 SHA512 1fc98c33d8140ab045804130fc27b655a8622318f7030967d841e7a296dcdfb89a125cb2574a9b08eef15d3fdc089f268631501743b46d04a7b465cc45c0c04e
29 -DIST mongo-python-driver-3.12.2.tar.gz 1069372 BLAKE2B 962dc2ee42f01586d9e8fb07d3ba7a74f4379af268b6213c1a5b67b901c805719b9c164fc3d270dd77b3c627f998b291330eeb02968246f2a68e5925bcb608fc SHA512 0e6ac0eafb8fb71db22e7ce27e6acc5c17ea80ac8c0100c358302582da68e03d7bd33eed320f5c8c43b067c3f1e75b4ed4f8c63c4c9705bf9a1c764917d973cb
30 -DIST mongo-python-driver-3.12.3.tar.gz 1069576 BLAKE2B accb8d1598c3f7d3fb4bec05390521562abf3a067abf82e25b62ebfdb95ed000f6a77edc60f0bcb816b85b1f7fc32c1e4dd54580c203a5d383d30e144a61dfa9 SHA512 21a723985c7846879d3b81ca41060fa6063b187c91c0c7797227f0b7b174880114aec9412d37821cb3d839bf98039b87f03c7c559b9599626705d3f790a8e11c
31 DIST mongo-python-driver-4.0.1.tar.gz 1030722 BLAKE2B b820901a433ffa2e82db0ef3c014aaa1e7d53bbc3ab94a5432fcb713d9789cbbf411a4ad5085ef3896cbf2aeff6d0e79f3f7bd5936d3aa615080a0421d8818c2 SHA512 1aead66d21c032e6d42b3aa408b0193bcac6a5a293ecfc513fadb634c574dccdcd351c693352f23cfe577c73fec901cdc2aa635dfe9afe8d9108ed917f55b53b
32 -DIST mongo-python-driver-4.0.tar.gz 1029687 BLAKE2B d8ae35b68bff288388a797c51b40d453c3e2197a0b639689bbb43f7e4470f3c4d5bf861d6ae77805b950e8c8daadcef5043b93c6d6a4b094fcb95521caf4c751 SHA512 b29acfcbd92b8f46780039cd0688cb03c083dfaf1ec6793906029f1e03635edc9a9ef6eb7104fa3dc16eca6df4ccfedd7bd4a8da495f754157edec371211fe15
33
34 diff --git a/dev-python/pymongo/pymongo-3.11.4.ebuild b/dev-python/pymongo/pymongo-3.11.4.ebuild
35 deleted file mode 100644
36 index 9bf6b48d8df0..000000000000
37 --- a/dev-python/pymongo/pymongo-3.11.4.ebuild
38 +++ /dev/null
39 @@ -1,115 +0,0 @@
40 -# Copyright 1999-2021 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -
45 -PYTHON_COMPAT=( python3_{8..9} )
46 -inherit check-reqs distutils-r1
47 -
48 -MY_P=mongo-python-driver-${PV}
49 -DESCRIPTION="Python driver for MongoDB"
50 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
51 -SRC_URI="
52 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
53 - -> ${MY_P}.tar.gz"
54 -S=${WORKDIR}/${MY_P}
55 -
56 -LICENSE="Apache-2.0"
57 -SLOT="0"
58 -KEYWORDS="amd64 arm64 ~hppa ~riscv x86"
59 -IUSE="doc kerberos"
60 -
61 -RDEPEND="
62 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
63 -"
64 -BDEPEND="
65 - test? (
66 - >=dev-db/mongodb-2.6.0
67 - )
68 -"
69 -DISTUTILS_IN_SOURCE_BUILD=1
70 -
71 -distutils_enable_sphinx doc
72 -distutils_enable_tests nose
73 -
74 -reqcheck() {
75 - if use test; then
76 - # During the tests, database size reaches 1.5G.
77 - local CHECKREQS_DISK_BUILD=1536M
78 -
79 - check-reqs_${1}
80 - fi
81 -}
82 -
83 -pkg_pretend() {
84 - reqcheck pkg_pretend
85 -}
86 -
87 -pkg_setup() {
88 - reqcheck pkg_setup
89 -}
90 -
91 -src_prepare() {
92 - # network-sandbox probably
93 - rm test/test_srv_polling.py || die
94 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
95 - -i test/test_client.py || die
96 - # relies on exact exception message
97 - sed -e 's:abstract methods:abstract:' \
98 - -i test/test_custom_types.py || die
99 - distutils-r1_src_prepare
100 -}
101 -
102 -python_test() {
103 - # Yes, we need TCP/IP for that...
104 - local DB_IP=127.0.0.1
105 - local DB_PORT=27000
106 -
107 - export DB_IP DB_PORT
108 -
109 - local dbpath=${TMPDIR}/mongo.db
110 - local logpath=${TMPDIR}/mongod.log
111 -
112 - # Now, the hard part: we need to find a free port for mongod.
113 - # We're just trying to run it random port numbers and check the log
114 - # for bind errors. It shall be noted that 'mongod --fork' does not
115 - # return failure when it fails to bind.
116 -
117 - mkdir -p "${dbpath}" || die
118 - while true; do
119 - ebegin "Trying to start mongod on port ${DB_PORT}"
120 -
121 - LC_ALL=C \
122 - mongod --dbpath "${dbpath}" --nojournal \
123 - --bind_ip ${DB_IP} --port ${DB_PORT} \
124 - --unixSocketPrefix "${TMPDIR}" \
125 - --logpath "${logpath}" --fork \
126 - && sleep 2
127 -
128 - # Now we need to check if the server actually started...
129 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
130 - # yay!
131 - eend 0
132 - break
133 - elif grep -q 'Address already in use' "${logpath}"; then
134 - # ay, someone took our port!
135 - eend 1
136 - : $(( DB_PORT += 1 ))
137 - continue
138 - else
139 - eend 1
140 - eerror "Unable to start mongod for tests. See the server log:"
141 - eerror " ${logpath}"
142 - die "Unable to start mongod for tests."
143 - fi
144 - done
145 -
146 - local failed
147 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
148 -
149 - mongod --dbpath "${dbpath}" --shutdown || die
150 -
151 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
152 -
153 - rm -rf "${dbpath}" || die
154 -}
155
156 diff --git a/dev-python/pymongo/pymongo-3.12.0.ebuild b/dev-python/pymongo/pymongo-3.12.0.ebuild
157 deleted file mode 100644
158 index 07abe794cd9d..000000000000
159 --- a/dev-python/pymongo/pymongo-3.12.0.ebuild
160 +++ /dev/null
161 @@ -1,115 +0,0 @@
162 -# Copyright 1999-2021 Gentoo Authors
163 -# Distributed under the terms of the GNU General Public License v2
164 -
165 -EAPI=7
166 -
167 -PYTHON_COMPAT=( python3_{8..10} )
168 -inherit check-reqs distutils-r1
169 -
170 -MY_P=mongo-python-driver-${PV}
171 -DESCRIPTION="Python driver for MongoDB"
172 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
173 -SRC_URI="
174 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
175 - -> ${MY_P}.tar.gz"
176 -S=${WORKDIR}/${MY_P}
177 -
178 -LICENSE="Apache-2.0"
179 -SLOT="0"
180 -KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
181 -IUSE="doc kerberos"
182 -
183 -RDEPEND="
184 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
185 -"
186 -BDEPEND="
187 - test? (
188 - >=dev-db/mongodb-2.6.0
189 - )
190 -"
191 -DISTUTILS_IN_SOURCE_BUILD=1
192 -
193 -distutils_enable_sphinx doc
194 -distutils_enable_tests nose
195 -
196 -reqcheck() {
197 - if use test; then
198 - # During the tests, database size reaches 1.5G.
199 - local CHECKREQS_DISK_BUILD=1536M
200 -
201 - check-reqs_${1}
202 - fi
203 -}
204 -
205 -pkg_pretend() {
206 - reqcheck pkg_pretend
207 -}
208 -
209 -pkg_setup() {
210 - reqcheck pkg_setup
211 -}
212 -
213 -src_prepare() {
214 - # network-sandbox probably
215 - rm test/test_srv_polling.py || die
216 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
217 - -i test/test_client.py || die
218 - # relies on exact exception message
219 - sed -e 's:abstract methods:abstract:' \
220 - -i test/test_custom_types.py || die
221 - distutils-r1_src_prepare
222 -}
223 -
224 -python_test() {
225 - # Yes, we need TCP/IP for that...
226 - local DB_IP=127.0.0.1
227 - local DB_PORT=27000
228 -
229 - export DB_IP DB_PORT
230 -
231 - local dbpath=${TMPDIR}/mongo.db
232 - local logpath=${TMPDIR}/mongod.log
233 -
234 - # Now, the hard part: we need to find a free port for mongod.
235 - # We're just trying to run it random port numbers and check the log
236 - # for bind errors. It shall be noted that 'mongod --fork' does not
237 - # return failure when it fails to bind.
238 -
239 - mkdir -p "${dbpath}" || die
240 - while true; do
241 - ebegin "Trying to start mongod on port ${DB_PORT}"
242 -
243 - LC_ALL=C \
244 - mongod --dbpath "${dbpath}" --nojournal \
245 - --bind_ip ${DB_IP} --port ${DB_PORT} \
246 - --unixSocketPrefix "${TMPDIR}" \
247 - --logpath "${logpath}" --fork \
248 - && sleep 2
249 -
250 - # Now we need to check if the server actually started...
251 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
252 - # yay!
253 - eend 0
254 - break
255 - elif grep -q 'Address already in use' "${logpath}"; then
256 - # ay, someone took our port!
257 - eend 1
258 - : $(( DB_PORT += 1 ))
259 - continue
260 - else
261 - eend 1
262 - eerror "Unable to start mongod for tests. See the server log:"
263 - eerror " ${logpath}"
264 - die "Unable to start mongod for tests."
265 - fi
266 - done
267 -
268 - local failed
269 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
270 -
271 - mongod --dbpath "${dbpath}" --shutdown || die
272 -
273 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
274 -
275 - rm -rf "${dbpath}" || die
276 -}
277
278 diff --git a/dev-python/pymongo/pymongo-3.12.1.ebuild b/dev-python/pymongo/pymongo-3.12.1.ebuild
279 deleted file mode 100644
280 index 5ae5fdd073c2..000000000000
281 --- a/dev-python/pymongo/pymongo-3.12.1.ebuild
282 +++ /dev/null
283 @@ -1,115 +0,0 @@
284 -# Copyright 1999-2021 Gentoo Authors
285 -# Distributed under the terms of the GNU General Public License v2
286 -
287 -EAPI=8
288 -
289 -PYTHON_COMPAT=( python3_{8..10} )
290 -inherit check-reqs distutils-r1
291 -
292 -MY_P=mongo-python-driver-${PV}
293 -DESCRIPTION="Python driver for MongoDB"
294 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
295 -SRC_URI="
296 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
297 - -> ${MY_P}.tar.gz"
298 -S=${WORKDIR}/${MY_P}
299 -
300 -LICENSE="Apache-2.0"
301 -SLOT="0"
302 -KEYWORDS="amd64 ~arm64 ~hppa ~riscv x86"
303 -IUSE="doc kerberos"
304 -
305 -RDEPEND="
306 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
307 -"
308 -BDEPEND="
309 - test? (
310 - >=dev-db/mongodb-2.6.0
311 - )
312 -"
313 -DISTUTILS_IN_SOURCE_BUILD=1
314 -
315 -distutils_enable_sphinx doc
316 -distutils_enable_tests unittest
317 -
318 -reqcheck() {
319 - if use test; then
320 - # During the tests, database size reaches 1.5G.
321 - local CHECKREQS_DISK_BUILD=1536M
322 -
323 - check-reqs_${1}
324 - fi
325 -}
326 -
327 -pkg_pretend() {
328 - reqcheck pkg_pretend
329 -}
330 -
331 -pkg_setup() {
332 - reqcheck pkg_setup
333 -}
334 -
335 -src_prepare() {
336 - # network-sandbox probably
337 - rm test/test_srv_polling.py || die
338 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
339 - -i test/test_client.py || die
340 - # relies on exact exception message
341 - sed -e 's:abstract methods:abstract:' \
342 - -i test/test_custom_types.py || die
343 - distutils-r1_src_prepare
344 -}
345 -
346 -python_test() {
347 - # Yes, we need TCP/IP for that...
348 - local DB_IP=127.0.0.1
349 - local DB_PORT=27000
350 -
351 - export DB_IP DB_PORT
352 -
353 - local dbpath=${TMPDIR}/mongo.db
354 - local logpath=${TMPDIR}/mongod.log
355 -
356 - # Now, the hard part: we need to find a free port for mongod.
357 - # We're just trying to run it random port numbers and check the log
358 - # for bind errors. It shall be noted that 'mongod --fork' does not
359 - # return failure when it fails to bind.
360 -
361 - mkdir -p "${dbpath}" || die
362 - while true; do
363 - ebegin "Trying to start mongod on port ${DB_PORT}"
364 -
365 - LC_ALL=C \
366 - mongod --dbpath "${dbpath}" --nojournal \
367 - --bind_ip ${DB_IP} --port ${DB_PORT} \
368 - --unixSocketPrefix "${TMPDIR}" \
369 - --logpath "${logpath}" --fork \
370 - && sleep 2
371 -
372 - # Now we need to check if the server actually started...
373 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
374 - # yay!
375 - eend 0
376 - break
377 - elif grep -q 'Address already in use' "${logpath}"; then
378 - # ay, someone took our port!
379 - eend 1
380 - : $(( DB_PORT += 1 ))
381 - continue
382 - else
383 - eend 1
384 - eerror "Unable to start mongod for tests. See the server log:"
385 - eerror " ${logpath}"
386 - die "Unable to start mongod for tests."
387 - fi
388 - done
389 -
390 - local failed
391 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
392 -
393 - mongod --dbpath "${dbpath}" --shutdown || die
394 -
395 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
396 -
397 - rm -rf "${dbpath}" || die
398 -}
399
400 diff --git a/dev-python/pymongo/pymongo-3.12.2.ebuild b/dev-python/pymongo/pymongo-3.12.2.ebuild
401 deleted file mode 100644
402 index c45af7c0a672..000000000000
403 --- a/dev-python/pymongo/pymongo-3.12.2.ebuild
404 +++ /dev/null
405 @@ -1,112 +0,0 @@
406 -# Copyright 1999-2021 Gentoo Authors
407 -# Distributed under the terms of the GNU General Public License v2
408 -
409 -EAPI=8
410 -
411 -PYTHON_COMPAT=( python3_{8..10} )
412 -inherit check-reqs distutils-r1
413 -
414 -MY_P=mongo-python-driver-${PV}
415 -DESCRIPTION="Python driver for MongoDB"
416 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
417 -SRC_URI="
418 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
419 - -> ${MY_P}.tar.gz"
420 -S=${WORKDIR}/${MY_P}
421 -
422 -LICENSE="Apache-2.0"
423 -SLOT="0"
424 -KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
425 -IUSE="doc kerberos"
426 -
427 -RDEPEND="
428 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
429 -"
430 -BDEPEND="
431 - test? (
432 - >=dev-db/mongodb-2.6.0
433 - )
434 -"
435 -DISTUTILS_IN_SOURCE_BUILD=1
436 -
437 -distutils_enable_sphinx doc
438 -distutils_enable_tests unittest
439 -
440 -reqcheck() {
441 - if use test; then
442 - # During the tests, database size reaches 1.5G.
443 - local CHECKREQS_DISK_BUILD=1536M
444 -
445 - check-reqs_${1}
446 - fi
447 -}
448 -
449 -pkg_pretend() {
450 - reqcheck pkg_pretend
451 -}
452 -
453 -pkg_setup() {
454 - reqcheck pkg_setup
455 -}
456 -
457 -src_prepare() {
458 - # network-sandbox probably
459 - rm test/test_srv_polling.py || die
460 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
461 - -i test/test_client.py || die
462 - distutils-r1_src_prepare
463 -}
464 -
465 -python_test() {
466 - # Yes, we need TCP/IP for that...
467 - local DB_IP=127.0.0.1
468 - local DB_PORT=27000
469 -
470 - export DB_IP DB_PORT
471 -
472 - local dbpath=${TMPDIR}/mongo.db
473 - local logpath=${TMPDIR}/mongod.log
474 -
475 - # Now, the hard part: we need to find a free port for mongod.
476 - # We're just trying to run it random port numbers and check the log
477 - # for bind errors. It shall be noted that 'mongod --fork' does not
478 - # return failure when it fails to bind.
479 -
480 - mkdir -p "${dbpath}" || die
481 - while true; do
482 - ebegin "Trying to start mongod on port ${DB_PORT}"
483 -
484 - LC_ALL=C \
485 - mongod --dbpath "${dbpath}" --nojournal \
486 - --bind_ip ${DB_IP} --port ${DB_PORT} \
487 - --unixSocketPrefix "${TMPDIR}" \
488 - --logpath "${logpath}" --fork \
489 - && sleep 2
490 -
491 - # Now we need to check if the server actually started...
492 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
493 - # yay!
494 - eend 0
495 - break
496 - elif grep -q 'Address already in use' "${logpath}"; then
497 - # ay, someone took our port!
498 - eend 1
499 - : $(( DB_PORT += 1 ))
500 - continue
501 - else
502 - eend 1
503 - eerror "Unable to start mongod for tests. See the server log:"
504 - eerror " ${logpath}"
505 - die "Unable to start mongod for tests."
506 - fi
507 - done
508 -
509 - local failed
510 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
511 -
512 - mongod --dbpath "${dbpath}" --shutdown || die
513 -
514 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
515 -
516 - rm -rf "${dbpath}" || die
517 -}
518
519 diff --git a/dev-python/pymongo/pymongo-3.12.3.ebuild b/dev-python/pymongo/pymongo-3.12.3.ebuild
520 deleted file mode 100644
521 index c45af7c0a672..000000000000
522 --- a/dev-python/pymongo/pymongo-3.12.3.ebuild
523 +++ /dev/null
524 @@ -1,112 +0,0 @@
525 -# Copyright 1999-2021 Gentoo Authors
526 -# Distributed under the terms of the GNU General Public License v2
527 -
528 -EAPI=8
529 -
530 -PYTHON_COMPAT=( python3_{8..10} )
531 -inherit check-reqs distutils-r1
532 -
533 -MY_P=mongo-python-driver-${PV}
534 -DESCRIPTION="Python driver for MongoDB"
535 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
536 -SRC_URI="
537 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
538 - -> ${MY_P}.tar.gz"
539 -S=${WORKDIR}/${MY_P}
540 -
541 -LICENSE="Apache-2.0"
542 -SLOT="0"
543 -KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
544 -IUSE="doc kerberos"
545 -
546 -RDEPEND="
547 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
548 -"
549 -BDEPEND="
550 - test? (
551 - >=dev-db/mongodb-2.6.0
552 - )
553 -"
554 -DISTUTILS_IN_SOURCE_BUILD=1
555 -
556 -distutils_enable_sphinx doc
557 -distutils_enable_tests unittest
558 -
559 -reqcheck() {
560 - if use test; then
561 - # During the tests, database size reaches 1.5G.
562 - local CHECKREQS_DISK_BUILD=1536M
563 -
564 - check-reqs_${1}
565 - fi
566 -}
567 -
568 -pkg_pretend() {
569 - reqcheck pkg_pretend
570 -}
571 -
572 -pkg_setup() {
573 - reqcheck pkg_setup
574 -}
575 -
576 -src_prepare() {
577 - # network-sandbox probably
578 - rm test/test_srv_polling.py || die
579 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
580 - -i test/test_client.py || die
581 - distutils-r1_src_prepare
582 -}
583 -
584 -python_test() {
585 - # Yes, we need TCP/IP for that...
586 - local DB_IP=127.0.0.1
587 - local DB_PORT=27000
588 -
589 - export DB_IP DB_PORT
590 -
591 - local dbpath=${TMPDIR}/mongo.db
592 - local logpath=${TMPDIR}/mongod.log
593 -
594 - # Now, the hard part: we need to find a free port for mongod.
595 - # We're just trying to run it random port numbers and check the log
596 - # for bind errors. It shall be noted that 'mongod --fork' does not
597 - # return failure when it fails to bind.
598 -
599 - mkdir -p "${dbpath}" || die
600 - while true; do
601 - ebegin "Trying to start mongod on port ${DB_PORT}"
602 -
603 - LC_ALL=C \
604 - mongod --dbpath "${dbpath}" --nojournal \
605 - --bind_ip ${DB_IP} --port ${DB_PORT} \
606 - --unixSocketPrefix "${TMPDIR}" \
607 - --logpath "${logpath}" --fork \
608 - && sleep 2
609 -
610 - # Now we need to check if the server actually started...
611 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
612 - # yay!
613 - eend 0
614 - break
615 - elif grep -q 'Address already in use' "${logpath}"; then
616 - # ay, someone took our port!
617 - eend 1
618 - : $(( DB_PORT += 1 ))
619 - continue
620 - else
621 - eend 1
622 - eerror "Unable to start mongod for tests. See the server log:"
623 - eerror " ${logpath}"
624 - die "Unable to start mongod for tests."
625 - fi
626 - done
627 -
628 - local failed
629 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
630 -
631 - mongod --dbpath "${dbpath}" --shutdown || die
632 -
633 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
634 -
635 - rm -rf "${dbpath}" || die
636 -}
637
638 diff --git a/dev-python/pymongo/pymongo-4.0.ebuild b/dev-python/pymongo/pymongo-4.0.ebuild
639 deleted file mode 100644
640 index c45af7c0a672..000000000000
641 --- a/dev-python/pymongo/pymongo-4.0.ebuild
642 +++ /dev/null
643 @@ -1,112 +0,0 @@
644 -# Copyright 1999-2021 Gentoo Authors
645 -# Distributed under the terms of the GNU General Public License v2
646 -
647 -EAPI=8
648 -
649 -PYTHON_COMPAT=( python3_{8..10} )
650 -inherit check-reqs distutils-r1
651 -
652 -MY_P=mongo-python-driver-${PV}
653 -DESCRIPTION="Python driver for MongoDB"
654 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
655 -SRC_URI="
656 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
657 - -> ${MY_P}.tar.gz"
658 -S=${WORKDIR}/${MY_P}
659 -
660 -LICENSE="Apache-2.0"
661 -SLOT="0"
662 -KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
663 -IUSE="doc kerberos"
664 -
665 -RDEPEND="
666 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
667 -"
668 -BDEPEND="
669 - test? (
670 - >=dev-db/mongodb-2.6.0
671 - )
672 -"
673 -DISTUTILS_IN_SOURCE_BUILD=1
674 -
675 -distutils_enable_sphinx doc
676 -distutils_enable_tests unittest
677 -
678 -reqcheck() {
679 - if use test; then
680 - # During the tests, database size reaches 1.5G.
681 - local CHECKREQS_DISK_BUILD=1536M
682 -
683 - check-reqs_${1}
684 - fi
685 -}
686 -
687 -pkg_pretend() {
688 - reqcheck pkg_pretend
689 -}
690 -
691 -pkg_setup() {
692 - reqcheck pkg_setup
693 -}
694 -
695 -src_prepare() {
696 - # network-sandbox probably
697 - rm test/test_srv_polling.py || die
698 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
699 - -i test/test_client.py || die
700 - distutils-r1_src_prepare
701 -}
702 -
703 -python_test() {
704 - # Yes, we need TCP/IP for that...
705 - local DB_IP=127.0.0.1
706 - local DB_PORT=27000
707 -
708 - export DB_IP DB_PORT
709 -
710 - local dbpath=${TMPDIR}/mongo.db
711 - local logpath=${TMPDIR}/mongod.log
712 -
713 - # Now, the hard part: we need to find a free port for mongod.
714 - # We're just trying to run it random port numbers and check the log
715 - # for bind errors. It shall be noted that 'mongod --fork' does not
716 - # return failure when it fails to bind.
717 -
718 - mkdir -p "${dbpath}" || die
719 - while true; do
720 - ebegin "Trying to start mongod on port ${DB_PORT}"
721 -
722 - LC_ALL=C \
723 - mongod --dbpath "${dbpath}" --nojournal \
724 - --bind_ip ${DB_IP} --port ${DB_PORT} \
725 - --unixSocketPrefix "${TMPDIR}" \
726 - --logpath "${logpath}" --fork \
727 - && sleep 2
728 -
729 - # Now we need to check if the server actually started...
730 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
731 - # yay!
732 - eend 0
733 - break
734 - elif grep -q 'Address already in use' "${logpath}"; then
735 - # ay, someone took our port!
736 - eend 1
737 - : $(( DB_PORT += 1 ))
738 - continue
739 - else
740 - eend 1
741 - eerror "Unable to start mongod for tests. See the server log:"
742 - eerror " ${logpath}"
743 - die "Unable to start mongod for tests."
744 - fi
745 - done
746 -
747 - local failed
748 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
749 -
750 - mongod --dbpath "${dbpath}" --shutdown || die
751 -
752 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
753 -
754 - rm -rf "${dbpath}" || die
755 -}