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, 04 May 2020 11:39:13
Message-Id: 1588592289.ca25e7d35c32c6349360c8d0cc9189b210edc357.mgorny@gentoo
1 commit: ca25e7d35c32c6349360c8d0cc9189b210edc357
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 4 11:38:09 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 4 11:38:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca25e7d3
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-3.9.0.ebuild | 120 --------------------------------
14 2 files changed, 121 deletions(-)
15
16 diff --git a/dev-python/pymongo/Manifest b/dev-python/pymongo/Manifest
17 index da11990270a..4dc1c029ef9 100644
18 --- a/dev-python/pymongo/Manifest
19 +++ b/dev-python/pymongo/Manifest
20 @@ -1,2 +1 @@
21 DIST pymongo-3.10.1.tar.gz 715892 BLAKE2B df1f8ae34366ea9de633be7e1ca103a2bc704a18a9b23cb1fbdbc8d116e939d4d5462e18a076149d93dcb8ada9f4737ed2d61b08803b546dce89dca4b2416689 SHA512 5a73ac17ef6f6783a573facd90879dbefa0c95d69123bc67c1a6af0987cb5786f637b8fa81a6810387acc34829a4cde33b848ac0f7b08f7d07faa90a8e13b595
22 -DIST pymongo-3.9.0.tar.gz 701117 BLAKE2B c13b53f06fa1788f65de46b6a05474355e312a1cdd7798610b300c1a7bb9964d32243da52a4dad61d5b50e736c717f5549f61b28c06e1024505bdd3ec04ab99a SHA512 3ac8831ffd82c27bfbf8429a38fe26aed177ba68b89d0ddf043adfde326b8c01eea9be449bb985421f42677fab4dd5ab44e1c1c9eeb3aff41d792c660fe23e0b
23
24 diff --git a/dev-python/pymongo/pymongo-3.9.0.ebuild b/dev-python/pymongo/pymongo-3.9.0.ebuild
25 deleted file mode 100644
26 index e144d836e52..00000000000
27 --- a/dev-python/pymongo/pymongo-3.9.0.ebuild
28 +++ /dev/null
29 @@ -1,120 +0,0 @@
30 -# Copyright 1999-2020 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -PYTHON_COMPAT=( python2_7 python3_{6,7} )
35 -
36 -inherit check-reqs distutils-r1
37 -
38 -DESCRIPTION="Python driver for MongoDB"
39 -HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
40 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 -
42 -LICENSE="Apache-2.0"
43 -SLOT="0"
44 -KEYWORDS="amd64 arm64 ~hppa x86"
45 -IUSE="doc kerberos test"
46 -RESTRICT="!test? ( test )"
47 -
48 -RDEPEND="
49 - kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
50 -"
51 -DEPEND="
52 - ${RDEPEND}
53 - dev-python/setuptools[${PYTHON_USEDEP}]
54 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
55 - test? (
56 - dev-python/nose[${PYTHON_USEDEP}]
57 - >=dev-db/mongodb-2.6.0
58 - )
59 -"
60 -DISTUTILS_IN_SOURCE_BUILD=1
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 -python_compile_all() {
80 - if use doc; then
81 - mkdir html || die
82 - sphinx-build doc html || die
83 - fi
84 -}
85 -
86 -python_test() {
87 - # Yes, we need TCP/IP for that...
88 - local DB_IP=127.0.0.1
89 - local DB_PORT=27000
90 -
91 - export DB_IP DB_PORT
92 -
93 - local dbpath=${TMPDIR}/mongo.db
94 - local logpath=${TMPDIR}/mongod.log
95 -
96 - # Now, the hard part: we need to find a free port for mongod.
97 - # We're just trying to run it random port numbers and check the log
98 - # for bind errors. It shall be noted that 'mongod --fork' does not
99 - # return failure when it fails to bind.
100 -
101 - mkdir -p "${dbpath}" || die
102 - while true; do
103 - ebegin "Trying to start mongod on port ${DB_PORT}"
104 -
105 - LC_ALL=C \
106 - mongod --dbpath "${dbpath}" --nojournal \
107 - --bind_ip ${DB_IP} --port ${DB_PORT} \
108 - --unixSocketPrefix "${TMPDIR}" \
109 - --logpath "${logpath}" --fork \
110 - && sleep 2
111 -
112 - # Now we need to check if the server actually started...
113 - if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
114 - # yay!
115 - eend 0
116 - break
117 - elif grep -q 'Address already in use' "${logpath}"; then
118 - # ay, someone took our port!
119 - eend 1
120 - : $(( DB_PORT += 1 ))
121 - continue
122 - else
123 - eend 1
124 - eerror "Unable to start mongod for tests. See the server log:"
125 - eerror " ${logpath}"
126 - die "Unable to start mongod for tests."
127 - fi
128 - done
129 -
130 - local failed
131 - #https://jira.mongodb.org/browse/PYTHON-521, py2.[6-7] has intermittent failure with gevent
132 - pushd "${BUILD_DIR}"/../ > /dev/null
133 - if [[ "${EPYTHON}" == python3* ]]; then
134 - 2to3 --no-diffs -w test
135 - fi
136 - DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
137 -
138 - mongod --dbpath "${dbpath}" --shutdown || die
139 -
140 - [[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
141 -
142 - rm -rf "${dbpath}" || die
143 -}
144 -
145 -python_install_all() {
146 - use doc && local HTML_DOCS=( html/. )
147 -
148 - distutils-r1_python_install_all
149 -}