Gentoo Archives: gentoo-commits

From: Patrick Lauer <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/geopy/
Date: Thu, 18 Feb 2016 19:03:51
Message-Id: 1455822156.92293ddd101e25b5fc438b613d16d4a6b571e452.patrick@gentoo
1 commit: 92293ddd101e25b5fc438b613d16d4a6b571e452
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 19:02:36 2016 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 19:02:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92293ddd
7
8 dev-python/geopy: Bump
9
10 Package-Manager: portage-2.2.27
11
12 dev-python/geopy/Manifest | 1 +
13 dev-python/geopy/geopy-1.11.0.ebuild | 66 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-python/geopy/Manifest b/dev-python/geopy/Manifest
17 index 2900b61..0d9e20a 100644
18 --- a/dev-python/geopy/Manifest
19 +++ b/dev-python/geopy/Manifest
20 @@ -1,3 +1,4 @@
21 DIST geopy-1.10.0.tar.gz 69671 SHA256 d1445731b20762b4e1d13e98d6370ff39a58fb29bd526afe1a44d510e91ee815 SHA512 943eb188090597786d5df9d1dac652dda81dd85d8edc57d9ffd4197b8a9a89c54a01ae4d6263eae64f69dc8437234a1ca797e869856d978c367b8db4c2c82f54 WHIRLPOOL f996abff6aaab85b98267d39c9284cb45e0d5d636e8df14baa8bae8b67c97ca8472076fac5f30fae0f19a7a390ae6247afcac3afc91d14197f51d44249ce6eb2
22 +DIST geopy-1.11.0.tar.gz 72035 SHA256 4602a662855656551dec7bf86868f1557cc3435b7ff6bbb607f26a86dee5b718 SHA512 b3abbf0ce4ca08eadc03a97876a662bbda1901660ea03329aace30bfb5f8af17c82653273e4d2eab9aca5e817f50768dd742b4865083709e10b8599331d5573b WHIRLPOOL 2016a26bffc07e8c1466331f017cbdf04299aab6bf81cb715538ac766bf2beeba97d2fac42856f44f9701040807727e09fa18fcdb757b5406c4e50a9e710347a
23 DIST geopy-1.8.1.tar.gz 67542 SHA256 63b805535cbe178367ee8f5e0221fab9fa691eef5797decac1e0851d16173dcf SHA512 0df2e67ed35d5cc3f796e3188df3a37d8fa101a4b6feb6b760ea08087ba44c350765a8c1032012b5e762454fa15c520f97d59ff942f07047927ef4872232a57c WHIRLPOOL 44c3f68a26ba23ca3ffae52dba5dc575a1cf54a53ea1e39d9566d97c58bcdb26b98934befc7cf012adbd266cee8a10b72d6880d1765af7f23486292b249c91a2
24 DIST geopy-1.9.1.tar.gz 67158 SHA256 e95989f5baf2cc5c2cee6186355f24b3fa8ce01faabea4e2bfcb083109416462 SHA512 ad6281626a03778754bec2e776419327609b3e6e47d6641520787ed2af87106fb2842a89667da680317a6c745970ac23b66c9b0fe8e50a2d223fc3169fe013b9 WHIRLPOOL e0f6fef1a061ff2d88e6ea1a37786405b1b0cac7d0982cb7bd650582b10726a6fa682c9c6577be6cec1d90b52d3f4828d221ac07d4aff6b04b93ff95f2c69110
25
26 diff --git a/dev-python/geopy/geopy-1.11.0.ebuild b/dev-python/geopy/geopy-1.11.0.ebuild
27 new file mode 100644
28 index 0000000..52550f3
29 --- /dev/null
30 +++ b/dev-python/geopy/geopy-1.11.0.ebuild
31 @@ -0,0 +1,66 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=( python{2_7,3_3,3_4} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="A Geocoding Toolbox for Python"
43 +HOMEPAGE="http://www.geopy.org/ https://github.com/geopy/geopy"
44 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +IUSE="test doc timezone yahoo"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +
52 +RDEPEND="yahoo? ( >=dev-python/requests-oauthlib-0.4.0[${PYTHON_USEDEP}]
53 + dev-python/placefinder[${PYTHON_USEDEP}] )
54 + timezone? ( dev-python/pytz[${PYTHON_USEDEP}] )"
55 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
56 + test? ( dev-python/nose[${PYTHON_USEDEP}]
57 + dev-python/nose-cover3[${PYTHON_USEDEP}]
58 + dev-python/pylint[${PYTHON_USEDEP}] )
59 + doc? ( $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]' python2_7)
60 + >=dev-python/python-docs-2.7.6-r1:2.7 )"
61 +
62 +REQUIRED_USE="test? ( yahoo timezone )"
63 +
64 +python_prepare_all() {
65 + if use doc; then
66 + local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
67 + local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
68 + local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
69 + local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
70 + sed -i "s|'http://docs.python.org/': None|'${PYTHON_DOC}': '${PYTHON_DOC_INVENTORY}'|" docs/conf.py || die
71 + fi
72 +
73 + distutils-r1_python_prepare_all
74 +
75 + # prevent install of test folder to avoid file collisions
76 + sed -e "s:find_packages():find_packages(exclude=['test','test.*']):" -i setup.py || die
77 +}
78 +
79 +python_test() {
80 + # broken tests
81 + rm test/geocoders/openmapquest.py
82 + sed -i -e 's/from .openmapquest import OpenMapQuestTestCase//' test/geocoders/__init__.py
83 + # Ignore rogue class IGNFranceTestCase demanding elements beyond a normal testsuite
84 + # i.e. "You should provide an api key and a username with a password"
85 + # Cannot decipher how to skip or exclude this "context=IGNFranceTestCase"
86 + # It appears it MAY stem from nose rather than geopy's suite
87 + nosetests --verbose || die "Tests failed under ${EPYTHON}"
88 +}
89 +
90 +python_compile_all() {
91 + use doc && emake -C docs html
92 +}
93 +
94 +python_install_all() {
95 + use doc && local HTML_DOCS=( docs/_build/html/. )
96 + distutils-r1_python_install_all
97 +}