Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-python/elasticsearch-curator/
Date: Sun, 25 Apr 2021 11:50:34
Message-Id: 1619351386.6633ad94a0db0b02ae2451b6c71149d83df7b85d.soap@gentoo
1 commit: 6633ad94a0db0b02ae2451b6c71149d83df7b85d
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Sun Apr 25 11:49:46 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 25 11:49:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6633ad94
7
8 dev-python/elasticsearch-curator: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/714860
11 Closes: https://bugs.gentoo.org/775017
12 Closes: https://bugs.gentoo.org/775014
13 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
14 Signed-off-by: David Seifert <soap <AT> gentoo.org>
15
16 dev-python/elasticsearch-curator/Manifest | 3 -
17 .../elasticsearch-curator-5.8.1-r2.ebuild | 163 --------------------
18 .../elasticsearch-curator-5.8.1-r3.ebuild | 165 ---------------------
19 .../elasticsearch-curator-5.8.3.ebuild | 165 ---------------------
20 dev-python/elasticsearch-curator/metadata.xml | 9 --
21 profiles/package.mask | 6 -
22 6 files changed, 511 deletions(-)
23
24 diff --git a/dev-python/elasticsearch-curator/Manifest b/dev-python/elasticsearch-curator/Manifest
25 deleted file mode 100644
26 index 397f32db97d..00000000000
27 --- a/dev-python/elasticsearch-curator/Manifest
28 +++ /dev/null
29 @@ -1,3 +0,0 @@
30 -DIST elasticsearch-7.3.2-linux-x86_64.tar.gz 285050383 BLAKE2B 730d8550f5887facae3075ce3b0bdb96b49350782fe7e687b8f4477bb363ce7c1595f2b1ece2b7d59d18539886b6e4806f56b0f5674bc417528232a92f1c00a8 SHA512 08e89347797ec6f008fb76cda17ec3e0dbc553fc992d07f4944fd99d17d5bc934849d9e534724d1541432c9844d3da57d875bc08a0c4cd95ba4251e2b03f833b
31 -DIST elasticsearch-curator-5.8.1.tar.gz 231233 BLAKE2B d2369c18be69cc5c8e17a6d7a72660bd7165c349cdb06c740c8db9dd2b583f181a09ba7d53ee0f4692cb6e31d373274f0610f2a654ba4a6da2d0ca0ff22c7c97 SHA512 500767967f423629f34d42ee088a9c007e193216c42f5590364ffcacc9e1efeba65dd4d333f806250e3b7fe0bea8b5501d1e6f3bf6fb0b8c46a46954e92c4a65
32 -DIST elasticsearch-curator-5.8.3.tar.gz 239107 BLAKE2B 6f924dd2e5d39f06741dbb0529f4ea8bb61a280ebe901682ffd95054cd1ad2b30ef5619d0d4c8237923a6ab3d9bd7531a7bc6ff674435d807f1f146a2ecb57e7 SHA512 243d37aa36a50711b57aeb1df61ed48f29e5097d9f7d5b515a5437dca2b4eb92ed92a4886db3213ef549192d9886c20ee10133856990e8c0ebaa16bb24a10592
33
34 diff --git a/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.1-r2.ebuild b/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.1-r2.ebuild
35 deleted file mode 100644
36 index a64c2354dba..00000000000
37 --- a/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.1-r2.ebuild
38 +++ /dev/null
39 @@ -1,163 +0,0 @@
40 -# Copyright 1999-2020 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -
45 -PYTHON_COMPAT=( python3_7 )
46 -
47 -MY_PN="curator"
48 -ES_VERSION="7.3.2"
49 -
50 -inherit distutils-r1
51 -
52 -DESCRIPTION="Tending time-series indices in Elasticsearch"
53 -HOMEPAGE="https://github.com/elastic/curator"
54 -SRC_URI="https://github.com/elastic/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
55 - test? ( https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz )"
56 -
57 -LICENSE="Apache-2.0"
58 -SLOT="0"
59 -KEYWORDS="amd64 x86"
60 -# tests fail in chroot
61 -# https://github.com/elastic/elasticsearch/issues/12018
62 -RESTRICT="test"
63 -IUSE="doc test"
64 -
65 -# vulnerable pyyaml
66 -# https://github.com/elastic/curator/issues/1415
67 -RDEPEND="
68 - >=dev-python/elasticsearch-py-7.0.4[${PYTHON_USEDEP}]
69 - <dev-python/elasticsearch-py-8.0.0[${PYTHON_USEDEP}]
70 - >=dev-python/click-6.7[${PYTHON_USEDEP}]
71 - <dev-python/click-7.0[${PYTHON_USEDEP}]
72 - >=dev-python/certifi-2019.9.11[${PYTHON_USEDEP}]
73 - >=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
74 - >=dev-python/urllib3-1.24.2[${PYTHON_USEDEP}]
75 - <dev-python/urllib3-1.26[${PYTHON_USEDEP}]
76 - >=dev-python/voluptuous-0.9.3[${PYTHON_USEDEP}]"
77 -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
78 - >=dev-python/six-1.11.0[${PYTHON_USEDEP}]
79 - dev-python/sphinx
80 - dev-python/pyyaml[${PYTHON_USEDEP}]
81 - test? ( ${RDEPEND}
82 - virtual/jre
83 - dev-python/mock[${PYTHON_USEDEP}]
84 - dev-python/nose[${PYTHON_USEDEP}]
85 - dev-python/six[${PYTHON_USEDEP}] )"
86 -
87 -S="${WORKDIR}/${MY_PN}-${PV}"
88 -
89 -python_prepare_all() {
90 - # avoid downloading from net
91 - sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die
92 -
93 - # requests_aws4auth not in portage
94 - sed -e '/boto3/d' \
95 - -e '/requests_aws4auth/d' \
96 - -e 's/pyyaml==3.13/pyyaml/g' \
97 - -e '/tests_require/s/, "coverage", "nosexcover"//g' \
98 - -i setup.cfg setup.py || die
99 -
100 - # Bug 713342
101 - sed -i 's/yaml.load/yaml.unsafe_load/g' curator/utils.py test/unit/* || die
102 -
103 - distutils-r1_python_prepare_all
104 -}
105 -
106 -python_compile_all() {
107 - emake -C docs -j1 man $(usex doc html "")
108 -}
109 -
110 -# running tests in non-chroot environments:
111 -# FEATURES="test -usersandbox" emerge dev-python/elasticsearch-curator
112 -python_test_all() {
113 - # starts two ES instances (local,remote) and runs the tests
114 - # https://github.com/elastic/curator/blob/master/travis-run.sh
115 - local ES_INSTANCES="local remote"
116 - local ES_PATH="${WORKDIR}/elasticsearch-${ES_VERSION}"
117 -
118 - declare -A ES_PORT
119 - ES_PORT[local]=9200
120 - ES_PORT[remote]=9201
121 -
122 - local i transport
123 - declare -A ES_CONFIG_DIR ES_CONFIG_PATH ES_INSTANCE ES_LOG ES_PID
124 - for i in ${ES_INSTANCES}; do
125 - ES_CONFIG_DIR[$i]="${ES_PATH}/$i"
126 - ES_CONFIG_PATH[$i]="${ES_CONFIG_DIR[$i]}/elasticsearch.yml"
127 - ES_PID[$i]="${ES_PATH}/$i.pid"
128 - ES_LOG[$i]="${ES_PATH}/logs/$i.log"
129 - done
130 -
131 - # configure ES instances
132 - for i in ${ES_INSTANCES}; do
133 - mkdir -p "${ES_CONFIG_DIR[$i]}" || die
134 - cp ${ES_PATH}/config/{jvm.options,log4j2.properties} "${ES_CONFIG_DIR[$i]}"/ || die
135 - echo 'network.host: 127.0.0.1' > "${ES_CONFIG_PATH[$i]}" || die
136 - echo "http.port: ${ES_PORT[$i]}" >> "${ES_CONFIG_PATH[$i]}" || die
137 - echo "cluster.name: $i" >> "${ES_CONFIG_PATH[$i]}" || die
138 - echo "node.name: $i" >> "${ES_CONFIG_PATH[$i]}" || die
139 - echo 'node.max_local_storage_nodes: 2' >> "${ES_CONFIG_PATH[$i]}" || die
140 - transport=$((${ES_PORT[$i]}+100))
141 - echo "transport.port: ${transport}" >> "${ES_CONFIG_PATH[$i]}" || die
142 - echo "discovery.seed_hosts: [\"localhost:${transport}\"]" >> "${ES_CONFIG_PATH[$i]}" || die
143 - echo "discovery.type: single-node" >> "${ES_CONFIG_PATH[$i]}" || die
144 - done
145 -
146 - echo 'path.repo: /' >> "${ES_CONFIG_PATH[local]}" || die
147 - echo "reindex.remote.whitelist: localhost:${ES_PORT[remote]}" >> "${ES_CONFIG_PATH[local]}" || die
148 -
149 - # start ES instances
150 - for i in ${ES_INSTANCES}; do
151 - ES_PATH_CONF=${ES_CONFIG_DIR[$i]} "${ES_PATH}/bin/elasticsearch" -d -p "${ES_PID[$i]}" || die
152 -
153 - local j
154 - local es_started=0
155 - for j in {1..30}; do
156 - grep -q "started" "${ES_LOG[$i]}" 2> /dev/null
157 - if [[ $? -eq 0 ]]; then
158 - einfo "Elasticsearch $i started"
159 - es_started=1
160 - eend 0
161 - break
162 - elif grep -q 'BindException\[Address already in use\]' "${ES_LOG[$i]}" 2>/dev/null; then
163 - eend 1
164 - eerror "Elasticsearch $i already running"
165 - die "Cannot start Elasticsearch $i for tests"
166 - else
167 - einfo "Waiting for Elasticsearch $i"
168 - eend 1
169 - sleep 2
170 - continue
171 - fi
172 - done
173 -
174 - [[ $es_started -eq 0 ]] && die "Elasticsearch failed to start"
175 - done
176 -
177 - export TEST_ES_SERVER="localhost:${ES_PORT[local]}"
178 - export REMOTE_ES_SERVER="localhost:${ES_PORT[remote]}"
179 -
180 - # run tests
181 - nosetests -v || die
182 -
183 - for i in ${ES_INSTANCES}; do
184 - pkill -F ${ES_PID[$i]}
185 - done
186 -}
187 -
188 -python_install_all() {
189 - use doc && local HTML_DOCS=( docs/_build/html/. )
190 - doman docs/_build/man/*
191 - distutils-r1_python_install_all
192 -}
193 -
194 -pkg_postinst() {
195 - ewarn ""
196 - ewarn "For Python 3 support information please read: http://click.pocoo.org/latest/python3/"
197 - ewarn ""
198 - ewarn "Example usage on Python 3:"
199 - ewarn "export LC_ALL=en_US.UTF-8"
200 - ewarn "export LANG=en_US.UTF-8"
201 - ewarn "curator ..."
202 -}
203
204 diff --git a/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.1-r3.ebuild b/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.1-r3.ebuild
205 deleted file mode 100644
206 index 526bbb2aac4..00000000000
207 --- a/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.1-r3.ebuild
208 +++ /dev/null
209 @@ -1,165 +0,0 @@
210 -# Copyright 1999-2021 Gentoo Authors
211 -# Distributed under the terms of the GNU General Public License v2
212 -
213 -EAPI=7
214 -
215 -PYTHON_COMPAT=( python3_7 )
216 -
217 -MY_PN="curator"
218 -ES_VERSION="7.3.2"
219 -
220 -inherit distutils-r1
221 -
222 -DESCRIPTION="Tending time-series indices in Elasticsearch"
223 -HOMEPAGE="https://github.com/elastic/curator"
224 -SRC_URI="https://github.com/elastic/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
225 - test? ( https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz )"
226 -
227 -LICENSE="Apache-2.0"
228 -SLOT="0"
229 -KEYWORDS="~amd64 ~x86"
230 -# tests fail in chroot
231 -# https://github.com/elastic/elasticsearch/issues/12018
232 -RESTRICT="test"
233 -IUSE="doc test"
234 -
235 -# vulnerable pyyaml
236 -# https://github.com/elastic/curator/issues/1415
237 -RDEPEND="
238 - >=dev-python/elasticsearch-py-7.0.4[${PYTHON_USEDEP}]
239 - <dev-python/elasticsearch-py-8.0.0[${PYTHON_USEDEP}]
240 - >=dev-python/click-6.7[${PYTHON_USEDEP}]
241 - <dev-python/click-7.0[${PYTHON_USEDEP}]
242 - >=dev-python/certifi-2019.9.11[${PYTHON_USEDEP}]
243 - >=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
244 - >=dev-python/urllib3-1.24.2[${PYTHON_USEDEP}]
245 - <dev-python/urllib3-1.26[${PYTHON_USEDEP}]
246 - >=dev-python/voluptuous-0.9.3[${PYTHON_USEDEP}]"
247 -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
248 - >=dev-python/six-1.11.0[${PYTHON_USEDEP}]
249 - dev-python/sphinx
250 - dev-python/pyyaml[${PYTHON_USEDEP}]
251 - dev-python/cx_Freeze[${PYTHON_USEDEP}]
252 - dev-python/importlib_metadata[${PYTHON_USEDEP}]
253 - test? ( ${RDEPEND}
254 - virtual/jre
255 - dev-python/mock[${PYTHON_USEDEP}]
256 - dev-python/nose[${PYTHON_USEDEP}]
257 - dev-python/six[${PYTHON_USEDEP}] )"
258 -
259 -S="${WORKDIR}/${MY_PN}-${PV}"
260 -
261 -python_prepare_all() {
262 - # avoid downloading from net
263 - sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die
264 -
265 - # requests_aws4auth not in portage
266 - sed -e '/boto3/d' \
267 - -e '/requests_aws4auth/d' \
268 - -e 's/pyyaml==3.13/pyyaml/g' \
269 - -e '/tests_require/s/, "coverage", "nosexcover"//g' \
270 - -i setup.cfg setup.py || die
271 -
272 - # Bug 713342
273 - sed -i 's/yaml.load/yaml.unsafe_load/g' curator/utils.py test/unit/* || die
274 -
275 - distutils-r1_python_prepare_all
276 -}
277 -
278 -python_compile_all() {
279 - emake -C docs -j1 man $(usex doc html "")
280 -}
281 -
282 -# running tests in non-chroot environments:
283 -# FEATURES="test -usersandbox" emerge dev-python/elasticsearch-curator
284 -python_test_all() {
285 - # starts two ES instances (local,remote) and runs the tests
286 - # https://github.com/elastic/curator/blob/master/travis-run.sh
287 - local ES_INSTANCES="local remote"
288 - local ES_PATH="${WORKDIR}/elasticsearch-${ES_VERSION}"
289 -
290 - declare -A ES_PORT
291 - ES_PORT[local]=9200
292 - ES_PORT[remote]=9201
293 -
294 - local i transport
295 - declare -A ES_CONFIG_DIR ES_CONFIG_PATH ES_INSTANCE ES_LOG ES_PID
296 - for i in ${ES_INSTANCES}; do
297 - ES_CONFIG_DIR[$i]="${ES_PATH}/$i"
298 - ES_CONFIG_PATH[$i]="${ES_CONFIG_DIR[$i]}/elasticsearch.yml"
299 - ES_PID[$i]="${ES_PATH}/$i.pid"
300 - ES_LOG[$i]="${ES_PATH}/logs/$i.log"
301 - done
302 -
303 - # configure ES instances
304 - for i in ${ES_INSTANCES}; do
305 - mkdir -p "${ES_CONFIG_DIR[$i]}" || die
306 - cp ${ES_PATH}/config/{jvm.options,log4j2.properties} "${ES_CONFIG_DIR[$i]}"/ || die
307 - echo 'network.host: 127.0.0.1' > "${ES_CONFIG_PATH[$i]}" || die
308 - echo "http.port: ${ES_PORT[$i]}" >> "${ES_CONFIG_PATH[$i]}" || die
309 - echo "cluster.name: $i" >> "${ES_CONFIG_PATH[$i]}" || die
310 - echo "node.name: $i" >> "${ES_CONFIG_PATH[$i]}" || die
311 - echo 'node.max_local_storage_nodes: 2' >> "${ES_CONFIG_PATH[$i]}" || die
312 - transport=$((${ES_PORT[$i]}+100))
313 - echo "transport.port: ${transport}" >> "${ES_CONFIG_PATH[$i]}" || die
314 - echo "discovery.seed_hosts: [\"localhost:${transport}\"]" >> "${ES_CONFIG_PATH[$i]}" || die
315 - echo "discovery.type: single-node" >> "${ES_CONFIG_PATH[$i]}" || die
316 - done
317 -
318 - echo 'path.repo: /' >> "${ES_CONFIG_PATH[local]}" || die
319 - echo "reindex.remote.whitelist: localhost:${ES_PORT[remote]}" >> "${ES_CONFIG_PATH[local]}" || die
320 -
321 - # start ES instances
322 - for i in ${ES_INSTANCES}; do
323 - ES_PATH_CONF=${ES_CONFIG_DIR[$i]} "${ES_PATH}/bin/elasticsearch" -d -p "${ES_PID[$i]}" || die
324 -
325 - local j
326 - local es_started=0
327 - for j in {1..30}; do
328 - grep -q "started" "${ES_LOG[$i]}" 2> /dev/null
329 - if [[ $? -eq 0 ]]; then
330 - einfo "Elasticsearch $i started"
331 - es_started=1
332 - eend 0
333 - break
334 - elif grep -q 'BindException\[Address already in use\]' "${ES_LOG[$i]}" 2>/dev/null; then
335 - eend 1
336 - eerror "Elasticsearch $i already running"
337 - die "Cannot start Elasticsearch $i for tests"
338 - else
339 - einfo "Waiting for Elasticsearch $i"
340 - eend 1
341 - sleep 2
342 - continue
343 - fi
344 - done
345 -
346 - [[ $es_started -eq 0 ]] && die "Elasticsearch failed to start"
347 - done
348 -
349 - export TEST_ES_SERVER="localhost:${ES_PORT[local]}"
350 - export REMOTE_ES_SERVER="localhost:${ES_PORT[remote]}"
351 -
352 - # run tests
353 - nosetests -v || die
354 -
355 - for i in ${ES_INSTANCES}; do
356 - pkill -F ${ES_PID[$i]}
357 - done
358 -}
359 -
360 -python_install_all() {
361 - use doc && local HTML_DOCS=( docs/_build/html/. )
362 - doman docs/_build/man/*
363 - distutils-r1_python_install_all
364 -}
365 -
366 -pkg_postinst() {
367 - ewarn ""
368 - ewarn "For Python 3 support information please read: http://click.pocoo.org/latest/python3/"
369 - ewarn ""
370 - ewarn "Example usage on Python 3:"
371 - ewarn "export LC_ALL=en_US.UTF-8"
372 - ewarn "export LANG=en_US.UTF-8"
373 - ewarn "curator ..."
374 -}
375
376 diff --git a/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.3.ebuild b/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.3.ebuild
377 deleted file mode 100644
378 index 7f6b7f539bf..00000000000
379 --- a/dev-python/elasticsearch-curator/elasticsearch-curator-5.8.3.ebuild
380 +++ /dev/null
381 @@ -1,165 +0,0 @@
382 -# Copyright 1999-2021 Gentoo Authors
383 -# Distributed under the terms of the GNU General Public License v2
384 -
385 -EAPI=7
386 -
387 -PYTHON_COMPAT=( python3_{7..9} )
388 -
389 -MY_PN="curator"
390 -ES_VERSION="7.3.2"
391 -
392 -inherit distutils-r1
393 -
394 -DESCRIPTION="Tending time-series indices in Elasticsearch"
395 -HOMEPAGE="https://github.com/elastic/curator"
396 -SRC_URI="https://github.com/elastic/${MY_PN}/archive/V${PV}.tar.gz -> ${P}.tar.gz
397 - test? ( https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}-linux-x86_64.tar.gz )"
398 -
399 -LICENSE="Apache-2.0"
400 -SLOT="0"
401 -KEYWORDS="~amd64 ~x86"
402 -# tests fail in chroot
403 -# https://github.com/elastic/elasticsearch/issues/12018
404 -RESTRICT="test"
405 -IUSE="doc test"
406 -
407 -# vulnerable pyyaml
408 -# https://github.com/elastic/curator/issues/1415
409 -RDEPEND="
410 - >=dev-python/elasticsearch-py-7.0.4[${PYTHON_USEDEP}]
411 - <dev-python/elasticsearch-py-8.0.0[${PYTHON_USEDEP}]
412 - >=dev-python/click-6.7[${PYTHON_USEDEP}]
413 - <dev-python/click-7.0[${PYTHON_USEDEP}]
414 - >=dev-python/certifi-2019.9.11[${PYTHON_USEDEP}]
415 - >=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
416 - >=dev-python/urllib3-1.24.2[${PYTHON_USEDEP}]
417 - <dev-python/urllib3-1.26[${PYTHON_USEDEP}]
418 - >=dev-python/voluptuous-0.9.3[${PYTHON_USEDEP}]"
419 -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
420 - >=dev-python/six-1.11.0[${PYTHON_USEDEP}]
421 - dev-python/sphinx
422 - dev-python/pyyaml[${PYTHON_USEDEP}]
423 - dev-python/cx_Freeze[${PYTHON_USEDEP}]
424 - dev-python/importlib_metadata[${PYTHON_USEDEP}]
425 - test? ( ${RDEPEND}
426 - virtual/jre
427 - dev-python/mock[${PYTHON_USEDEP}]
428 - dev-python/nose[${PYTHON_USEDEP}]
429 - dev-python/six[${PYTHON_USEDEP}] )"
430 -
431 -S="${WORKDIR}/${MY_PN}-${PV}"
432 -
433 -python_prepare_all() {
434 - # avoid downloading from net
435 - sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die
436 -
437 - # requests_aws4auth not in portage
438 - sed -e '/boto3/d' \
439 - -e '/requests_aws4auth/d' \
440 - -e 's/pyyaml==3.13/pyyaml/g' \
441 - -e '/tests_require/s/, "coverage", "nosexcover"//g' \
442 - -i setup.cfg setup.py || die
443 -
444 - # Bug 713342
445 - sed -i 's/yaml.load/yaml.unsafe_load/g' curator/utils.py test/unit/* || die
446 -
447 - distutils-r1_python_prepare_all
448 -}
449 -
450 -python_compile_all() {
451 - emake -C docs -j1 man $(usex doc html "")
452 -}
453 -
454 -# running tests in non-chroot environments:
455 -# FEATURES="test -usersandbox" emerge dev-python/elasticsearch-curator
456 -python_test_all() {
457 - # starts two ES instances (local,remote) and runs the tests
458 - # https://github.com/elastic/curator/blob/master/travis-run.sh
459 - local ES_INSTANCES="local remote"
460 - local ES_PATH="${WORKDIR}/elasticsearch-${ES_VERSION}"
461 -
462 - declare -A ES_PORT
463 - ES_PORT[local]=9200
464 - ES_PORT[remote]=9201
465 -
466 - local i transport
467 - declare -A ES_CONFIG_DIR ES_CONFIG_PATH ES_INSTANCE ES_LOG ES_PID
468 - for i in ${ES_INSTANCES}; do
469 - ES_CONFIG_DIR[$i]="${ES_PATH}/$i"
470 - ES_CONFIG_PATH[$i]="${ES_CONFIG_DIR[$i]}/elasticsearch.yml"
471 - ES_PID[$i]="${ES_PATH}/$i.pid"
472 - ES_LOG[$i]="${ES_PATH}/logs/$i.log"
473 - done
474 -
475 - # configure ES instances
476 - for i in ${ES_INSTANCES}; do
477 - mkdir -p "${ES_CONFIG_DIR[$i]}" || die
478 - cp ${ES_PATH}/config/{jvm.options,log4j2.properties} "${ES_CONFIG_DIR[$i]}"/ || die
479 - echo 'network.host: 127.0.0.1' > "${ES_CONFIG_PATH[$i]}" || die
480 - echo "http.port: ${ES_PORT[$i]}" >> "${ES_CONFIG_PATH[$i]}" || die
481 - echo "cluster.name: $i" >> "${ES_CONFIG_PATH[$i]}" || die
482 - echo "node.name: $i" >> "${ES_CONFIG_PATH[$i]}" || die
483 - echo 'node.max_local_storage_nodes: 2' >> "${ES_CONFIG_PATH[$i]}" || die
484 - transport=$((${ES_PORT[$i]}+100))
485 - echo "transport.port: ${transport}" >> "${ES_CONFIG_PATH[$i]}" || die
486 - echo "discovery.seed_hosts: [\"localhost:${transport}\"]" >> "${ES_CONFIG_PATH[$i]}" || die
487 - echo "discovery.type: single-node" >> "${ES_CONFIG_PATH[$i]}" || die
488 - done
489 -
490 - echo 'path.repo: /' >> "${ES_CONFIG_PATH[local]}" || die
491 - echo "reindex.remote.whitelist: localhost:${ES_PORT[remote]}" >> "${ES_CONFIG_PATH[local]}" || die
492 -
493 - # start ES instances
494 - for i in ${ES_INSTANCES}; do
495 - ES_PATH_CONF=${ES_CONFIG_DIR[$i]} "${ES_PATH}/bin/elasticsearch" -d -p "${ES_PID[$i]}" || die
496 -
497 - local j
498 - local es_started=0
499 - for j in {1..30}; do
500 - grep -q "started" "${ES_LOG[$i]}" 2> /dev/null
501 - if [[ $? -eq 0 ]]; then
502 - einfo "Elasticsearch $i started"
503 - es_started=1
504 - eend 0
505 - break
506 - elif grep -q 'BindException\[Address already in use\]' "${ES_LOG[$i]}" 2>/dev/null; then
507 - eend 1
508 - eerror "Elasticsearch $i already running"
509 - die "Cannot start Elasticsearch $i for tests"
510 - else
511 - einfo "Waiting for Elasticsearch $i"
512 - eend 1
513 - sleep 2
514 - continue
515 - fi
516 - done
517 -
518 - [[ $es_started -eq 0 ]] && die "Elasticsearch failed to start"
519 - done
520 -
521 - export TEST_ES_SERVER="localhost:${ES_PORT[local]}"
522 - export REMOTE_ES_SERVER="localhost:${ES_PORT[remote]}"
523 -
524 - # run tests
525 - nosetests -v || die
526 -
527 - for i in ${ES_INSTANCES}; do
528 - pkill -F ${ES_PID[$i]}
529 - done
530 -}
531 -
532 -python_install_all() {
533 - use doc && local HTML_DOCS=( docs/_build/html/. )
534 - doman docs/_build/man/*
535 - distutils-r1_python_install_all
536 -}
537 -
538 -pkg_postinst() {
539 - ewarn ""
540 - ewarn "For Python 3 support information please read: http://click.pocoo.org/latest/python3/"
541 - ewarn ""
542 - ewarn "Example usage on Python 3:"
543 - ewarn "export LC_ALL=en_US.UTF-8"
544 - ewarn "export LANG=en_US.UTF-8"
545 - ewarn "curator ..."
546 -}
547
548 diff --git a/dev-python/elasticsearch-curator/metadata.xml b/dev-python/elasticsearch-curator/metadata.xml
549 deleted file mode 100644
550 index 31ed8d59699..00000000000
551 --- a/dev-python/elasticsearch-curator/metadata.xml
552 +++ /dev/null
553 @@ -1,9 +0,0 @@
554 -<?xml version="1.0" encoding="UTF-8"?>
555 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
556 -<pkgmetadata>
557 - <!--maintainer-needed-->
558 - <upstream>
559 - <remote-id type="github">elastic/curator</remote-id>
560 - <remote-id type="pypi">elasticsearch-curator</remote-id>
561 - </upstream>
562 -</pkgmetadata>
563
564 diff --git a/profiles/package.mask b/profiles/package.mask
565 index e71d4f1bc72..96b68fb61a2 100644
566 --- a/profiles/package.mask
567 +++ b/profiles/package.mask
568 @@ -358,12 +358,6 @@ x11-themes/nimbus
569 # Removal on 2021-04-25.
570 app-admin/system-tools-backends
571
572 -# Michał Górny <mgorny@g.o> (2021-03-26)
573 -# Pins to a vulnerable version of dev-python/urllib3. No maintainer
574 -# in Gentoo.
575 -# Removal on 2021-04-25. Bug #714860.
576 -dev-python/elasticsearch-curator
577 -
578 # Lars Wendler <polynomial-c@g.o> (2021-03-22)
579 # Has unidentified race condition on very fast CPUs that causes maintainer-
580 # mode to be triggered.