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/pysolr/
Date: Sun, 11 Aug 2019 15:32:57
Message-Id: 1565537567.3ca448f5c3f8cb5826ae023a1d8b11f844b16ab7.mgorny@gentoo
1 commit: 3ca448f5c3f8cb5826ae023a1d8b11f844b16ab7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 10 10:24:49 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 11 15:32:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ca448f5
7
8 dev-python/pysolr: Bump to 3.8.1, enable tests
9
10 Closes: https://bugs.gentoo.org/591128
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 dev-python/pysolr/Manifest | 2 ++
14 dev-python/pysolr/pysolr-3.8.1.ebuild | 59 +++++++++++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/dev-python/pysolr/Manifest b/dev-python/pysolr/Manifest
18 index d67ecbb77b4..f47f34d1b4e 100644
19 --- a/dev-python/pysolr/Manifest
20 +++ b/dev-python/pysolr/Manifest
21 @@ -1,2 +1,4 @@
22 DIST pysolr-3.3.2.tar.gz 14193 BLAKE2B 855adfa730a05facdd1a0aab529f7e52a3c052c2b558195616267704691bf91b3b70a123604063c1b818574046cd6d412affc0fe1dc5d43890ea2ca52d8a41e6 SHA512 7252efc42987bdf999d122404e63e6410d2efe7b1a49d378c8ad16c9171d8f26cd5ecd891a8a9daa205333b914ec4f95af105fe1bee25312aa05bb884811aebb
23 DIST pysolr-3.6.0.tar.gz 28485 BLAKE2B 3994f1586a16ab8a65013d7412c71581448f15356db077f39b87ba780606d508702e0650b9165b96d2bb2064ba4c03d9dd715bcf1f8e802a18bc19ab3aea69f6 SHA512 15d2599bdfe5b364d0c0497f3125945c8a14a61baca6d32bb775d32fac8a8c2bb9ae46e90e4a08ba144e5f6cc83efba7e456ff7ff617c9af34116432bafbac36
24 +DIST pysolr-3.8.1.tar.gz 46775 BLAKE2B 978869ec1e65699f61c2c33ebe1448c020aec0dee8e65780727a455e25058be6bb0ab7b5d44559d361df09cf338c0dd8b8db164273dc77da2348b6f5118b9c87 SHA512 34489f32cdcbcb7e8109d6d94339fcb200b1367a188a0b9fedf587a77cd64412570b3a796a4da4e0abe6fa3e443a401c4dc0e4946bdc437dd810fee7eabd54a4
25 +DIST solr-4.10.4.tgz 150059757 BLAKE2B e0f74016b6a92b4c10538ce816b566c17dbf0f7e68a7f1209bb477a2dcf06153da86bbb86d6ceeabda93d79a8c0595e4c96d873fdca8f0baee5fd58890c84da1 SHA512 f7a83504e0f9a4c81b0acafdf452c0c05fcbdf185375f383450bef4fd478812b5259705b55203460d03da46add12cec2442d399ad3716e4e11c393a9a9a01b03
26
27 diff --git a/dev-python/pysolr/pysolr-3.8.1.ebuild b/dev-python/pysolr/pysolr-3.8.1.ebuild
28 new file mode 100644
29 index 00000000000..6f727c05e82
30 --- /dev/null
31 +++ b/dev-python/pysolr/pysolr-3.8.1.ebuild
32 @@ -0,0 +1,59 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{5,6} )
39 +
40 +inherit distutils-r1
41 +
42 +SOLR_PV=4.10.4
43 +DESCRIPTION="Lightweight python wrapper for Apache Solr"
44 +HOMEPAGE="https://pypi.org/project/pysolr/ https://github.com/toastdriven/pysolr/"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
46 + test? ( https://archive.apache.org/dist/lucene/solr/${SOLR_PV}/solr-${SOLR_PV}.tgz )"
47 +
48 +SLOT="0"
49 +LICENSE="BSD"
50 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
51 +IUSE="test"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + dev-python/requests[${PYTHON_USEDEP}]"
56 +DEPEND="
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
59 + test? (
60 + ${RDEPEND}
61 + dev-python/kazoo[${PYTHON_USEDEP}]
62 + dev-python/pytest[${PYTHON_USEDEP}]
63 + net-misc/curl
64 + virtual/jre:*
65 + $(python_gen_cond_dep '
66 + dev-python/faulthandler[${PYTHON_USEDEP}]
67 + dev-python/mock[${PYTHON_USEDEP}]
68 + ' -2)
69 + )"
70 +
71 +src_unpack() {
72 + unpack "${P}.tar.gz"
73 +}
74 +
75 +src_prepare() {
76 + # utf8 breaks py2.7 for us
77 + sed -i -e 's/…/.../' run-tests.py || die
78 +
79 + distutils-r1_src_prepare
80 +}
81 +
82 +python_configure_all() {
83 + if use test; then
84 + mkdir -p "${HOME}/download-cache" || die
85 + cp "${DISTDIR}/solr-${SOLR_PV}.tgz" "${HOME}/download-cache" || die
86 + fi
87 +}
88 +
89 +python_test() {
90 + "${EPYTHON}" run-tests.py -v || die "Tests fail with ${EPYTHON}"
91 +}