Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pymongo/
Date: Wed, 07 Oct 2020 08:43:48
Message-Id: 1602060190.f578b2f3077e6dcd0bde1491ae4a59af5512d358.ultrabug@gentoo
1 commit: f578b2f3077e6dcd0bde1491ae4a59af5512d358
2 Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 08:43:10 2020 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 08:43:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f578b2f3
7
8 dev-python/pymongo: drop old
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
12
13 dev-python/pymongo/Manifest | 1 -
14 dev-python/pymongo/pymongo-3.10.1.ebuild | 117 -------------------------------
15 2 files changed, 118 deletions(-)
16
17 diff --git a/dev-python/pymongo/Manifest b/dev-python/pymongo/Manifest
18 index 6f8dcf99ef1..1c64e496958 100644
19 --- a/dev-python/pymongo/Manifest
20 +++ b/dev-python/pymongo/Manifest
21 @@ -1,2 +1 @@
22 -DIST pymongo-3.10.1.tar.gz 715892 BLAKE2B df1f8ae34366ea9de633be7e1ca103a2bc704a18a9b23cb1fbdbc8d116e939d4d5462e18a076149d93dcb8ada9f4737ed2d61b08803b546dce89dca4b2416689 SHA512 5a73ac17ef6f6783a573facd90879dbefa0c95d69123bc67c1a6af0987cb5786f637b8fa81a6810387acc34829a4cde33b848ac0f7b08f7d07faa90a8e13b595
23 DIST pymongo-3.11.0.tar.gz 771691 BLAKE2B 5ae5b78caac335656c1005666c5633882da517c512bbfdb0df2c4569ec5060fa9623a23f48ffcf0c6ab2cdc69f6534f36ef18c929047bbb22cfbe9055a0881b7 SHA512 4f8a185013cbb3c07774d3c6aecc9e97dabb4ba55176fa8a51e17bcdb7cbbebaacd16304e580b4c6aeb26aad964401249313b59dde3c5c248c4496d64d18b22c
24
25 diff --git a/dev-python/pymongo/pymongo-3.10.1.ebuild b/dev-python/pymongo/pymongo-3.10.1.ebuild
26 deleted file mode 100644
27 index e29624b5f6c..00000000000
28 --- a/dev-python/pymongo/pymongo-3.10.1.ebuild
29 +++ /dev/null
30 @@ -1,117 +0,0 @@
31 -# Copyright 1999-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -PYTHON_COMPAT=( python2_7 python3_{6..9} )
37 -inherit check-reqs distutils-r1
38 -
39 -DESCRIPTION="Python driver for MongoDB"
40 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
41 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 -
43 -LICENSE="Apache-2.0"
44 -SLOT="0"
45 -KEYWORDS="amd64 arm64 ~hppa x86"
46 -IUSE="doc kerberos test"
47 -RESTRICT="!test? ( test )"
48 -
49 -RDEPEND="
50 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
51 -"
52 -BDEPEND="
53 - test? (
54 - >=dev-db/mongodb-2.6.0
55 - dev-python/nose[${PYTHON_USEDEP}]
56 - )
57 -"
58 -DISTUTILS_IN_SOURCE_BUILD=1
59 -
60 -distutils_enable_sphinx doc
61 -
62 -reqcheck() {
63 - if use test; then
64 - # During the tests, database size reaches 1.5G.
65 - local CHECKREQS_DISK_BUILD=1536M
66 -
67 - check-reqs_${1}
68 - fi
69 -}
70 -
71 -pkg_pretend() {
72 - reqcheck pkg_pretend
73 -}
74 -
75 -pkg_setup() {
76 - reqcheck pkg_setup
77 -}
78 -
79 -src_prepare() {
80 - # network-sandbox probably
81 - rm test/test_srv_polling.py || die
82 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
83 - -i test/test_client.py || die
84 - # relies on exact exception message
85 - sed -e 's:abstract methods:abstract:' \
86 - -i test/test_custom_types.py || die
87 - distutils-r1_src_prepare
88 -}
89 -
90 -python_test() {
91 - # Yes, we need TCP/IP for that...
92 - local DB_IP=127.0.0.1
93 - local DB_PORT=27000
94 -
95 - export DB_IP DB_PORT
96 -
97 - local dbpath=${TMPDIR}/mongo.db
98 - local logpath=${TMPDIR}/mongod.log
99 -
100 - # Now, the hard part: we need to find a free port for mongod.
101 - # We're just trying to run it random port numbers and check the log
102 - # for bind errors. It shall be noted that 'mongod --fork' does not
103 - # return failure when it fails to bind.
104 -
105 - mkdir -p "${dbpath}" || die
106 - while true; do
107 - ebegin "Trying to start mongod on port ${DB_PORT}"
108 -
109 - LC_ALL=C \
110 - mongod --dbpath "${dbpath}" --nojournal \
111 - --bind_ip ${DB_IP} --port ${DB_PORT} \
112 - --unixSocketPrefix "${TMPDIR}" \
113 - --logpath "${logpath}" --fork \
114 - && sleep 2
115 -
116 - # Now we need to check if the server actually started...
117 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
118 - # yay!
119 - eend 0
120 - break
121 - elif grep -q 'Address already in use' "${logpath}"; then
122 - # ay, someone took our port!
123 - eend 1
124 - : $(( DB_PORT += 1 ))
125 - continue
126 - else
127 - eend 1
128 - eerror "Unable to start mongod for tests. See the server log:"
129 - eerror " ${logpath}"
130 - die "Unable to start mongod for tests."
131 - fi
132 - done
133 -
134 - local failed
135 - #https://jira.mongodb.org/browse/PYTHON-521, py2.[6-7] has intermittent failure with gevent
136 - pushd "${BUILD_DIR}"/../ > /dev/null
137 - if [[ "${EPYTHON}" == python3* ]]; then
138 - 2to3 --no-diffs -w test
139 - fi
140 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
141 -
142 - mongod --dbpath "${dbpath}" --shutdown || die
143 -
144 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
145 -
146 - rm -rf "${dbpath}" || die
147 -}