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, 16 Mar 2023 18:13:20
Message-Id: 1678990285.05deee177829bc0b3160bedc9b0ee6e48ae2b8dc.mgorny@gentoo
1 commit: 05deee177829bc0b3160bedc9b0ee6e48ae2b8dc
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 16 18:10:02 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 16 18:11:25 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05deee17
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 | 1 -
13 dev-python/pymongo/pymongo-4.3.2.ebuild | 122 --------------------------------
14 2 files changed, 123 deletions(-)
15
16 diff --git a/dev-python/pymongo/Manifest b/dev-python/pymongo/Manifest
17 index 40cf71172a1e..9e12d828bb77 100644
18 --- a/dev-python/pymongo/Manifest
19 +++ b/dev-python/pymongo/Manifest
20 @@ -1,4 +1,3 @@
21 DIST mongo-python-driver-4.1.1.tar.gz 1070349 BLAKE2B 9b792343a22c4b0c625376e6f3d10e9c1a88442b63ff2638c29588a26755006507189bf40a8dad96d7f8e4f997efc153c8616826b58114aba32442c05b80ca60 SHA512 b01eb6bc4c39a25cae8350bdc2f37dd5d78da38a6eddbd8a26f91cb6ee067f7b4b1d97eb603defca16e05abc992b8f11b2e3558f9697c99697b3e876838de737
22 DIST mongo-python-driver-4.2.0.gh.tar.gz 1136734 BLAKE2B b3e2d86780c2874656f94ba3071317c0b9190418274c163135a260cad3f5672b9390aa738d0cf1aaff47412827620706e67c5c990910a5ea232aaacda0758dea SHA512 4439149c35f897a61109b26f5e4c613682ca59727495377a3bbb49f9ff22273cd5a73f58fb55080d07c9403310d4ada59d3a5969d0f76f2f4d1081422fe2dfec
23 -DIST mongo-python-driver-4.3.2.gh.tar.gz 1154135 BLAKE2B f2a560dc9829b6b26a78c032a3978fff93935b78aa20a088a080bdd607d951a57434473d698d4cabc1ca0a767cdb75352e0e25d9cfd77389d43062768409625c SHA512 f35dd2fc54e806bb7f91d982f29ebdee8ef12a8629b415b2472e3f99d60ad9e3153cd54e6e7369124c2b31c27df636c2a0fa72f937aeafb60c64c90728d7b03b
24 DIST mongo-python-driver-4.3.3.gh.tar.gz 1165202 BLAKE2B e2f442631b1e33353003acde58b9abe49e9f3a0c78f9762d2929c626a1821f04b72e2a55d926703c603c1220124b7334a18b5d35586ebf5b7299720199539e23 SHA512 ba1b344913b6a5d61b0cad05c09b50f5962c5b83e0ca8e8919d76cdde5d2dcec08f38c6f561251c9e199b8878af78bbabaf58af74dc65233e6702ff841ccfef4
25
26 diff --git a/dev-python/pymongo/pymongo-4.3.2.ebuild b/dev-python/pymongo/pymongo-4.3.2.ebuild
27 deleted file mode 100644
28 index 9179dbef9e15..000000000000
29 --- a/dev-python/pymongo/pymongo-4.3.2.ebuild
30 +++ /dev/null
31 @@ -1,122 +0,0 @@
32 -# Copyright 1999-2023 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=8
36 -
37 -DISTUTILS_USE_PEP517=setuptools
38 -PYTHON_COMPAT=( python3_{9..10} )
39 -
40 -inherit check-reqs distutils-r1
41 -
42 -MY_P=mongo-python-driver-${PV}
43 -DESCRIPTION="Python driver for MongoDB"
44 -HOMEPAGE="
45 - https://github.com/mongodb/mongo-python-driver/
46 - https://pypi.org/project/pymongo/
47 -"
48 -SRC_URI="
49 - https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
50 - -> ${MY_P}.gh.tar.gz
51 -"
52 -S=${WORKDIR}/${MY_P}
53 -
54 -LICENSE="Apache-2.0"
55 -SLOT="0"
56 -KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
57 -IUSE="doc kerberos"
58 -
59 -RDEPEND="
60 - <dev-python/dnspython-3.0.0[${PYTHON_USEDEP}]
61 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
62 -"
63 -BDEPEND="
64 - test? (
65 - >=dev-db/mongodb-2.6.0
66 - )
67 -"
68 -
69 -distutils_enable_sphinx doc
70 -distutils_enable_tests unittest
71 -
72 -reqcheck() {
73 - if use test; then
74 - # During the tests, database size reaches 1.5G.
75 - local CHECKREQS_DISK_BUILD=1536M
76 -
77 - check-reqs_${1}
78 - fi
79 -}
80 -
81 -pkg_pretend() {
82 - reqcheck pkg_pretend
83 -}
84 -
85 -pkg_setup() {
86 - reqcheck pkg_setup
87 -}
88 -
89 -src_prepare() {
90 - # network-sandbox
91 - rm test/test_srv_polling.py || die
92 - sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
93 - -e 's:test_service_name_from_kwargs:_&:' \
94 - -e 's:test_srv_max_hosts_kwarg:_&:' \
95 - -i test/test_client.py || die
96 - sed -e '/SRV_SCHEME/s:_HAVE_DNSPYTHON:False:' \
97 - -i test/test_uri_spec.py || die
98 - distutils-r1_src_prepare
99 -}
100 -
101 -python_test() {
102 - # Yes, we need TCP/IP for that...
103 - local DB_IP=127.0.0.1
104 - local DB_PORT=27000
105 -
106 - export DB_IP DB_PORT
107 -
108 - local dbpath=${TMPDIR}/mongo.db
109 - local logpath=${TMPDIR}/mongod.log
110 -
111 - # Now, the hard part: we need to find a free port for mongod.
112 - # We're just trying to run it random port numbers and check the log
113 - # for bind errors. It shall be noted that 'mongod --fork' does not
114 - # return failure when it fails to bind.
115 -
116 - mkdir -p "${dbpath}" || die
117 - while true; do
118 - ebegin "Trying to start mongod on port ${DB_PORT}"
119 -
120 - LC_ALL=C \
121 - mongod --dbpath "${dbpath}" --nojournal \
122 - --bind_ip ${DB_IP} --port ${DB_PORT} \
123 - --unixSocketPrefix "${TMPDIR}" \
124 - --logpath "${logpath}" --fork \
125 - && sleep 2
126 -
127 - # Now we need to check if the server actually started...
128 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
129 - # yay!
130 - eend 0
131 - break
132 - elif grep -q 'Address already in use' "${logpath}"; then
133 - # ay, someone took our port!
134 - eend 1
135 - : $(( DB_PORT += 1 ))
136 - continue
137 - else
138 - eend 1
139 - eerror "Unable to start mongod for tests. See the server log:"
140 - eerror " ${logpath}"
141 - die "Unable to start mongod for tests."
142 - fi
143 - done
144 -
145 - local failed
146 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
147 -
148 - mongod --dbpath "${dbpath}" --shutdown || die
149 -
150 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
151 -
152 - rm -rf "${dbpath}" || die
153 -}