diff options
author | Tomas Mozes <hydrapolic@gmail.com> | 2018-01-05 14:46:10 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-01-31 23:10:38 +0100 |
commit | 5a522e9f8d6c247360c74e843b4e40a8d00ee249 (patch) | |
tree | 6c34560c61bba77153d8f1f84bfb8ab8643a82f0 /dev-python/elasticsearch-curator | |
parent | dev-lisp/sbcl: Bumps version to 1.4.4 (diff) | |
download | gentoo-5a522e9f8d6c247360c74e843b4e40a8d00ee249.tar.gz gentoo-5a522e9f8d6c247360c74e843b4e40a8d00ee249.tar.bz2 gentoo-5a522e9f8d6c247360c74e843b4e40a8d00ee249.zip |
dev-python/elasticsearch-curator: version bump to 5.4.1
Package-Manager: Portage-2.3.18, Repoman-2.3.6
Diffstat (limited to 'dev-python/elasticsearch-curator')
-rw-r--r-- | dev-python/elasticsearch-curator/Manifest | 2 | ||||
-rw-r--r-- | dev-python/elasticsearch-curator/elasticsearch-curator-5.4.1.ebuild | 118 |
2 files changed, 120 insertions, 0 deletions
diff --git a/dev-python/elasticsearch-curator/Manifest b/dev-python/elasticsearch-curator/Manifest index b395a7fb65e8..2efbf014eaa3 100644 --- a/dev-python/elasticsearch-curator/Manifest +++ b/dev-python/elasticsearch-curator/Manifest @@ -1,6 +1,8 @@ DIST elasticsearch-5.5.1.tar.gz 33476827 BLAKE2B 4f37f13fcd0a236c5da5b74c4eec5ac9ce40234059643bed69b56e93a9d5b9758ebaf0f6d50155b7338c0c203cdd7296816d6c7bc5cb0ee5455e406e586c4bf8 SHA512 9bedd48396cdd6c39c107a7951eba8446b8574493bd44c17a79ba3443670a48b72c053006821cf69dc17bf49ff1c05904db14a07d8a6403b2d2061fc605937bd DIST elasticsearch-5.6.3.tar.gz 33774486 BLAKE2B 167b50e9565b1c67f0b8b31ea2b19aacbc2def62dabd84bee6e5fbd90f1a76d3d777edb17132fdae9d5b00ada1e895c7ca90566fb2675234789e1e028c448a58 SHA512 ee57d010e196eb25e5296fe95ab2de5e503d4d66f7eec8c8f6ac2ff9ddbc1a8dc1514202d705e291ee49d3e04650b597a9afc5f92f179b8faa5e2fe3c662f33e DIST elasticsearch-6.0.0.tar.gz 28017602 BLAKE2B cea47a17109eb5d46b1d94c3763f19923d97392c4a39a8dffb157b8ce60cf959e4680c2a54c5a9d204db64393f3f22dc52c0de94888753e817d808575ff352fd SHA512 25bb622d2fc557d8b8eded634a9b333766f7b58e701359e1bcfafee390776eb323cb7ea7a5e02e8803e25d8b1d3aabec0ec1b0cf492d0bab5689686fe440181c +DIST elasticsearch-6.1.1.tar.gz 28462503 BLAKE2B a3ac6edf6ed110fc3832bc6b1c5e4d7acbc67ee2faeba35d9dc7215bbcf10fb3617cfbc050687d7361fc4b6f644afe9cbfc23591b5ae26e692f38dbf13872e7d SHA512 dcc23ef80ad2545490508d3e9db2fd0e6ae9a99cece0990f537c522265961dad234734548d1d86288af7f65a6ee681f5624d2c0e71df0e1dcc32fdb56dcefe92 DIST elasticsearch-curator-5.1.2.tar.gz 290616 BLAKE2B 57c02ddaf188b8dd08286e47d4eaf4e0af05d65d89139f77f5d71274c394defe491393a7043bb426fa4b260c199e92221c1e57b6d24922898e5e3b8e9e2de58b SHA512 4ac0ae789fe662d352c3d228acc6aaf78873bb02b7108f985fd0a048d0b90cb2b30572eaa5f984025ab0d4209eda9d6fe6ac66cd8cc856f0707e3f12bb2e574d DIST elasticsearch-curator-5.3.0.tar.gz 292274 BLAKE2B e7830db810ab1fabbbf580db5e15d7ffe11d4bb85923c0e51fd8cc0b0a640c71664198ddcb0b9a3cc1ef92f06856854295063947ddc23a857f4d4701f5528427 SHA512 23a94c0a8b78cd0f3a27af76131c267c407dbafb504a4503e8c954e69cdb527ed334fbfcda068b2f1d28479762c430f665f661f827bdf3066f5bcdd50c82dc53 DIST elasticsearch-curator-5.4.0.tar.gz 293915 BLAKE2B 0af2816ff760c3e3ec83ad328b6743079cfaacb455d8cce42316a5ae189832474428d9a993c12a49ad7273e3031d86dc731b50b6900e74f85e5d3ae637aa8d62 SHA512 ce29430e72a5f7d4dce98fff88c4357e3689bf2de3b4d95d56b24908ea9d71d92cdb0be145fa4ecc264b53a5824f2abf808a6b0d82af85967a5d7154e5b1c4aa +DIST elasticsearch-curator-5.4.1.tar.gz 294363 BLAKE2B 180882cee9ed3424569705beda727f823cea0cfc47897d06b1cb8258166e40fc9913eb266481b09155a0f5f88b52a680b9187f69417983c2d78b5d24874489c3 SHA512 a2f187d99ebcf8069bfd472316aefe501719400268120c250812670e5525209cebffa913f5fb988305d963bb2a7b61cf47426905b856e34f41afd3a9d67d28f3 diff --git a/dev-python/elasticsearch-curator/elasticsearch-curator-5.4.1.ebuild b/dev-python/elasticsearch-curator/elasticsearch-curator-5.4.1.ebuild new file mode 100644 index 000000000000..c76378f179c7 --- /dev/null +++ b/dev-python/elasticsearch-curator/elasticsearch-curator-5.4.1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +MY_PN="curator" +ES_VERSION="6.1.1" + +inherit distutils-r1 + +DESCRIPTION="Tending time-series indices in Elasticsearch" +HOMEPAGE="https://github.com/elasticsearch/curator" +SRC_URI="https://github.com/elasticsearch/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz )" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="test" +IUSE="doc test" + +RDEPEND=" + >=dev-python/elasticsearch-py-5.4.0[${PYTHON_USEDEP}] + <dev-python/elasticsearch-py-7.0.0[${PYTHON_USEDEP}] + >=dev-python/click-6.7[${PYTHON_USEDEP}] + >=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.20[${PYTHON_USEDEP}] + >=dev-python/voluptuous-0.9.3[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}] + test? ( ${RDEPEND} + virtual/jre:1.8 + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/nosexcover[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +python_prepare_all() { + # avoid downloading from net + sed -e '/^intersphinx_mapping/,+3d' -i docs/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + emake -C docs -j1 man $(usex doc html "") +} + +# tests fail in chroot +# https://github.com/elastic/elasticsearch/issues/12018 +# +# running tests in non-chroot environments: +# FEATURES="test -usersandbox" emerge dev-python/elasticsearch-curator +python_test() { + ES="${WORKDIR}/elasticsearch-${ES_VERSION}" + ES_PORT="25123" + ES_INSTANCE="gentoo-es-curator-test" + ES_LOG="${ES}/logs/${ES_INSTANCE}.log" + PID="${ES}/elasticsearch.pid" + + # run Elasticsearch instance on custom port + sed -i "s/#http.port: 9200/http.port: ${ES_PORT}/g; \ + s/#cluster.name: my-application/cluster.name: ${ES_INSTANCE}/g" \ + "${ES}/config/elasticsearch.yml" || die + + # start local instance of elasticsearch + "${ES}/bin/elasticsearch" -d -p "${PID}" -Epath.repo=/ || die + + local i + local es_started=0 + for i in {1..20}; do + grep -q "started" "${ES_LOG}" 2> /dev/null + if [[ $? -eq 0 ]]; then + einfo "Elasticsearch started" + es_started=1 + eend 0 + break + elif grep -q 'BindException\[Address already in use\]' "${ES_LOG}" 2>/dev/null; then + eend 1 + eerror "Elasticsearch already running" + die "Cannot start Elasticsearch for tests" + else + einfo "Waiting for Elasticsearch" + eend 1 + sleep 2 + continue + fi + done + + [[ $es_started -eq 0 ]] && die "Elasticsearch failed to start" + + export TEST_ES_SERVER="localhost:${ES_PORT}" + esetup.py test || die + + pkill -F ${PID} +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + doman docs/_build/man/* + distutils-r1_python_install_all +} + +pkg_postinst() { + ewarn "" + ewarn "For Python 3 support information please read: http://click.pocoo.org/latest/python3/" + ewarn "" + ewarn "Example usage on Python 3:" + ewarn "export LC_ALL=en_US.UTF-8" + ewarn "export LANG=en_US.UTF-8" + ewarn "curator ..." +} |