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: Mon, 22 Aug 2022 16:39:20
Message-Id: 1661185792.837e68603f19549b43a2a7cbaa107ae184a6c2fc.mgorny@gentoo
1 commit: 837e68603f19549b43a2a7cbaa107ae184a6c2fc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 22 16:29:52 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 22 16:29:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=837e6860
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 | 2 -
13 dev-python/pymongo/pymongo-4.0.2.ebuild | 117 --------------------------------
14 dev-python/pymongo/pymongo-4.1.0.ebuild | 117 --------------------------------
15 3 files changed, 236 deletions(-)
16
17 diff --git a/dev-python/pymongo/Manifest b/dev-python/pymongo/Manifest
18 index 91522559083c..3133431084a1 100644
19 --- a/dev-python/pymongo/Manifest
20 +++ b/dev-python/pymongo/Manifest
21 @@ -1,4 +1,2 @@
22 -DIST mongo-python-driver-4.0.2.tar.gz 1027101 BLAKE2B d95eea08e09101f1db5df5dcbd5d843273ebd0c63b228420748a1663620ea18e05853372e876abc8b6480238de2b035c4e5a3c9f9b7c206228870a66e5d5f053 SHA512 eacb24d110de645a70b16b4d11f7a6b019f741fba2222f8ecee47d9f638fd71e579d3a46f5f539bc89d1ea53ddf0b72745b667a0f05479bb4b53ed72fb075b5b
23 -DIST mongo-python-driver-4.1.0.tar.gz 1069416 BLAKE2B ea7d81e405f4db4ec0e03591909541f5452f516d359e42fc6fde74435899353f4718b7dbfe3dc1802e79c9277fcfe6203ecd33a5e2ad2682c604b9de44c46c7c SHA512 558d321a335742fc3399e9f5cb4917605353f55a1912f9fa34ac46f6107ed6522f952dc9ef584f4cbe1ffcfc600b49963a4bdf606146c38b94379bbb6a382202
24 DIST mongo-python-driver-4.1.1.tar.gz 1070349 BLAKE2B 9b792343a22c4b0c625376e6f3d10e9c1a88442b63ff2638c29588a26755006507189bf40a8dad96d7f8e4f997efc153c8616826b58114aba32442c05b80ca60 SHA512 b01eb6bc4c39a25cae8350bdc2f37dd5d78da38a6eddbd8a26f91cb6ee067f7b4b1d97eb603defca16e05abc992b8f11b2e3558f9697c99697b3e876838de737
25 DIST mongo-python-driver-4.2.0.gh.tar.gz 1136734 BLAKE2B b3e2d86780c2874656f94ba3071317c0b9190418274c163135a260cad3f5672b9390aa738d0cf1aaff47412827620706e67c5c990910a5ea232aaacda0758dea SHA512 4439149c35f897a61109b26f5e4c613682ca59727495377a3bbb49f9ff22273cd5a73f58fb55080d07c9403310d4ada59d3a5969d0f76f2f4d1081422fe2dfec
26
27 diff --git a/dev-python/pymongo/pymongo-4.0.2.ebuild b/dev-python/pymongo/pymongo-4.0.2.ebuild
28 deleted file mode 100644
29 index a28d8eaf4f63..000000000000
30 --- a/dev-python/pymongo/pymongo-4.0.2.ebuild
31 +++ /dev/null
32 @@ -1,117 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=8
37 -
38 -DISTUTILS_USE_PEP517=setuptools
39 -PYTHON_COMPAT=( python3_{8..10} )
40 -
41 -inherit check-reqs distutils-r1
42 -
43 -MY_P=mongo-python-driver-${PV}
44 -DESCRIPTION="Python driver for MongoDB"
45 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
46 -SRC_URI="
47 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
48 - -> ${MY_P}.tar.gz"
49 -S=${WORKDIR}/${MY_P}
50 -
51 -LICENSE="Apache-2.0"
52 -SLOT="0"
53 -KEYWORDS="amd64 arm64 ~hppa ~riscv x86"
54 -IUSE="doc kerberos"
55 -
56 -RDEPEND="
57 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
58 -"
59 -BDEPEND="
60 - test? (
61 - >=dev-db/mongodb-2.6.0
62 - )
63 -"
64 -
65 -distutils_enable_sphinx doc
66 -distutils_enable_tests unittest
67 -
68 -reqcheck() {
69 - if use test; then
70 - # During the tests, database size reaches 1.5G.
71 - local CHECKREQS_DISK_BUILD=1536M
72 -
73 - check-reqs_${1}
74 - fi
75 -}
76 -
77 -pkg_pretend() {
78 - reqcheck pkg_pretend
79 -}
80 -
81 -pkg_setup() {
82 - reqcheck pkg_setup
83 -}
84 -
85 -src_prepare() {
86 - # network-sandbox
87 - rm test/test_srv_polling.py || die
88 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
89 - -e 's:test_service_name_from_kwargs:_&:' \
90 - -e 's:test_srv_max_hosts_kwarg:_&:' \
91 - -i test/test_client.py || die
92 - sed -e '/SRV_SCHEME/s:_HAVE_DNSPYTHON:False:' \
93 - -i test/test_uri_spec.py || die
94 - distutils-r1_src_prepare
95 -}
96 -
97 -python_test() {
98 - # Yes, we need TCP/IP for that...
99 - local DB_IP=127.0.0.1
100 - local DB_PORT=27000
101 -
102 - export DB_IP DB_PORT
103 -
104 - local dbpath=${TMPDIR}/mongo.db
105 - local logpath=${TMPDIR}/mongod.log
106 -
107 - # Now, the hard part: we need to find a free port for mongod.
108 - # We're just trying to run it random port numbers and check the log
109 - # for bind errors. It shall be noted that 'mongod --fork' does not
110 - # return failure when it fails to bind.
111 -
112 - mkdir -p "${dbpath}" || die
113 - while true; do
114 - ebegin "Trying to start mongod on port ${DB_PORT}"
115 -
116 - LC_ALL=C \
117 - mongod --dbpath "${dbpath}" --nojournal \
118 - --bind_ip ${DB_IP} --port ${DB_PORT} \
119 - --unixSocketPrefix "${TMPDIR}" \
120 - --logpath "${logpath}" --fork \
121 - && sleep 2
122 -
123 - # Now we need to check if the server actually started...
124 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
125 - # yay!
126 - eend 0
127 - break
128 - elif grep -q 'Address already in use' "${logpath}"; then
129 - # ay, someone took our port!
130 - eend 1
131 - : $(( DB_PORT += 1 ))
132 - continue
133 - else
134 - eend 1
135 - eerror "Unable to start mongod for tests. See the server log:"
136 - eerror " ${logpath}"
137 - die "Unable to start mongod for tests."
138 - fi
139 - done
140 -
141 - local failed
142 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
143 -
144 - mongod --dbpath "${dbpath}" --shutdown || die
145 -
146 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
147 -
148 - rm -rf "${dbpath}" || die
149 -}
150
151 diff --git a/dev-python/pymongo/pymongo-4.1.0.ebuild b/dev-python/pymongo/pymongo-4.1.0.ebuild
152 deleted file mode 100644
153 index 0a91e8ab7cdf..000000000000
154 --- a/dev-python/pymongo/pymongo-4.1.0.ebuild
155 +++ /dev/null
156 @@ -1,117 +0,0 @@
157 -# Copyright 1999-2022 Gentoo Authors
158 -# Distributed under the terms of the GNU General Public License v2
159 -
160 -EAPI=8
161 -
162 -DISTUTILS_USE_PEP517=setuptools
163 -PYTHON_COMPAT=( python3_{8..10} )
164 -
165 -inherit check-reqs distutils-r1
166 -
167 -MY_P=mongo-python-driver-${PV}
168 -DESCRIPTION="Python driver for MongoDB"
169 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
170 -SRC_URI="
171 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
172 - -> ${MY_P}.tar.gz"
173 -S=${WORKDIR}/${MY_P}
174 -
175 -LICENSE="Apache-2.0"
176 -SLOT="0"
177 -KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
178 -IUSE="doc kerberos"
179 -
180 -RDEPEND="
181 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
182 -"
183 -BDEPEND="
184 - test? (
185 - >=dev-db/mongodb-2.6.0
186 - )
187 -"
188 -
189 -distutils_enable_sphinx doc
190 -distutils_enable_tests unittest
191 -
192 -reqcheck() {
193 - if use test; then
194 - # During the tests, database size reaches 1.5G.
195 - local CHECKREQS_DISK_BUILD=1536M
196 -
197 - check-reqs_${1}
198 - fi
199 -}
200 -
201 -pkg_pretend() {
202 - reqcheck pkg_pretend
203 -}
204 -
205 -pkg_setup() {
206 - reqcheck pkg_setup
207 -}
208 -
209 -src_prepare() {
210 - # network-sandbox
211 - rm test/test_srv_polling.py || die
212 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
213 - -e 's:test_service_name_from_kwargs:_&:' \
214 - -e 's:test_srv_max_hosts_kwarg:_&:' \
215 - -i test/test_client.py || die
216 - sed -e '/SRV_SCHEME/s:_HAVE_DNSPYTHON:False:' \
217 - -i test/test_uri_spec.py || die
218 - distutils-r1_src_prepare
219 -}
220 -
221 -python_test() {
222 - # Yes, we need TCP/IP for that...
223 - local DB_IP=127.0.0.1
224 - local DB_PORT=27000
225 -
226 - export DB_IP DB_PORT
227 -
228 - local dbpath=${TMPDIR}/mongo.db
229 - local logpath=${TMPDIR}/mongod.log
230 -
231 - # Now, the hard part: we need to find a free port for mongod.
232 - # We're just trying to run it random port numbers and check the log
233 - # for bind errors. It shall be noted that 'mongod --fork' does not
234 - # return failure when it fails to bind.
235 -
236 - mkdir -p "${dbpath}" || die
237 - while true; do
238 - ebegin "Trying to start mongod on port ${DB_PORT}"
239 -
240 - LC_ALL=C \
241 - mongod --dbpath "${dbpath}" --nojournal \
242 - --bind_ip ${DB_IP} --port ${DB_PORT} \
243 - --unixSocketPrefix "${TMPDIR}" \
244 - --logpath "${logpath}" --fork \
245 - && sleep 2
246 -
247 - # Now we need to check if the server actually started...
248 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
249 - # yay!
250 - eend 0
251 - break
252 - elif grep -q 'Address already in use' "${logpath}"; then
253 - # ay, someone took our port!
254 - eend 1
255 - : $(( DB_PORT += 1 ))
256 - continue
257 - else
258 - eend 1
259 - eerror "Unable to start mongod for tests. See the server log:"
260 - eerror " ${logpath}"
261 - die "Unable to start mongod for tests."
262 - fi
263 - done
264 -
265 - local failed
266 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
267 -
268 - mongod --dbpath "${dbpath}" --shutdown || die
269 -
270 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
271 -
272 - rm -rf "${dbpath}" || die
273 -}