update & bmp geopy from main repo (untested)

This commit is contained in:
Andreas Billmeier 2019-06-20 08:50:29 +02:00
parent ca6910d98a
commit 2810ebaf59
3 changed files with 123 additions and 19 deletions

View File

@ -1,3 +1,5 @@
DIST geopy-1.19.0.tar.gz 251957 BLAKE2B 59aed0677ea761eb11d82a6cadbff8d22ce6a7d5573c32e80b99c67d8336a7a44a7cfdfc06698ea7cb646249898a202c055fc398010930297eccd960649484c4 SHA512 c1cfbb3404c62168c964ad6d1252567c6e9b4d92657b2a170f0f4db7f2035f486e0205250cd9f7adf68e012e095070d511982f04409d145a1c8c03a5c99dabf0
DIST geopy-1.20.0.tar.gz 64920 BLAKE2B f5a6a141ef27820db2eef7d26417a27faec0a16201a1bb985dd5ed921052ca9913336e96d777ce5fef5f9c0adfb150c8d9931e22442af68e9a795c8e0c555731 SHA512 6d2aaab487e18b9342e3ce6b88469118b210c259d88725df1880a5f18f6e083e1350453229c85c97e26c62a77f29c717d6118a50b07b428130e91270c5983fc6
EBUILD geopy-1.20.0.ebuild 686 BLAKE2B a4a29a1de2248dcdf8c232639b976cf245d387d7cc96f187f53ccd76126274f4efa4f0c868e04c462a705a3d538bf3936c0e6a56e54089646112b85235a277e8 SHA512 ceef7d54cc6c7d1bb9bceac08afa82ab6c12a34a7a442e30d7be94365193b9b7bbe3a5da923296c7628cff6834a6afb2b4a36f536780212e66d205faaacd3114
EBUILD geopy-1.19.0.ebuild 2284 BLAKE2B b4d5abd4eb92734902130b001b48d860e0cb77a2f592b6c03721e2d9519da119abf3bd5d785689165d652fa0277e7439ba8db151e18b325b6d0611dc26367e47 SHA512 571b2f6bfa563130aba94b6ff73ff71fe680a1a8bc51a28476a007fab9cf415db2ffcca81758f86265ea4160b94b912af37e38e213dcfded9b0b901edfbc0fef
EBUILD geopy-1.20.0.ebuild 2284 BLAKE2B b4d5abd4eb92734902130b001b48d860e0cb77a2f592b6c03721e2d9519da119abf3bd5d785689165d652fa0277e7439ba8db151e18b325b6d0611dc26367e47 SHA512 571b2f6bfa563130aba94b6ff73ff71fe680a1a8bc51a28476a007fab9cf415db2ffcca81758f86265ea4160b94b912af37e38e213dcfded9b0b901edfbc0fef
MISC metadata.xml 460 BLAKE2B 0559eb1e21dfedbb304ab26140a558fd1a52fc38b99150faec80422c73cd5ee4faabb31b838332ad21806120f3cd092c8217958cf26eeb7510e33a751ae7faab SHA512 f302806548024ebbc8fb576eb15d0fa5aa74e41faa6442a1d1f04da8a0b94075719c9b0af501410f44c5f44120ebb1fa1965b74597cc0235abb02d01f48ff8f0

View File

@ -0,0 +1,66 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
inherit distutils-r1
DESCRIPTION="A Geocoding Toolbox for Python"
HOMEPAGE="http://www.geopy.org/ https://github.com/geopy/geopy"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
IUSE="test doc timezone yahoo"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
RDEPEND="yahoo? ( >=dev-python/requests-oauthlib-0.4.0[${PYTHON_USEDEP}]
dev-python/placefinder[${PYTHON_USEDEP}] )
timezone? ( dev-python/pytz[${PYTHON_USEDEP}] )"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/mock[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
dev-python/nose-cover3[${PYTHON_USEDEP}]
dev-python/pylint[${PYTHON_USEDEP}] )
doc? ( $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]' python2_7)
>=dev-python/python-docs-2.7.6-r1:2.7 )"
REQUIRED_USE="test? ( yahoo timezone )"
python_prepare_all() {
if use doc; then
local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
sed -i "s|'http://docs.python.org/': None|'${PYTHON_DOC}': '${PYTHON_DOC_INVENTORY}'|" docs/conf.py || die
fi
distutils-r1_python_prepare_all
# prevent install of test folder to avoid file collisions
sed -e "s:find_packages():find_packages(exclude=['test','test.*']):" -i setup.py || die
}
python_test() {
# broken tests
rm test/geocoders/openmapquest.py
sed -i -e 's/from .openmapquest import OpenMapQuestTestCase//' test/geocoders/__init__.py
# Ignore rogue class IGNFranceTestCase demanding elements beyond a normal testsuite
# i.e. "You should provide an api key and a username with a password"
# Cannot decipher how to skip or exclude this "context=IGNFranceTestCase"
# It appears it MAY stem from nose rather than geopy's suite
nosetests --verbose || die "Tests failed under ${EPYTHON}"
}
python_compile_all() {
use doc && emake -C docs html
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}

View File

@ -1,30 +1,66 @@
# Copyright 1999-2019 Gentoo Authors Andreas Billmeier b (at) edevau.net
# Distributed under the terms of the GNU General Public License v3.0
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
EAPI=5
PYTHON_COMPAT=( python3_{5,6,7} )
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
inherit distutils-r1
DESCRIPTION="Python Geocoding Toolbox"
HOMEPAGE="https://github.com/geopy/geopy https://pypi.org/project/geopy/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
DESCRIPTION="A Geocoding Toolbox for Python"
HOMEPAGE="http://www.geopy.org/ https://github.com/geopy/geopy"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
IUSE="test doc timezone yahoo"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
KEYWORDS="amd64 x86"
RDEPEND=""
DEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
RDEPEND="yahoo? ( >=dev-python/requests-oauthlib-0.4.0[${PYTHON_USEDEP}]
dev-python/placefinder[${PYTHON_USEDEP}] )
timezone? ( dev-python/pytz[${PYTHON_USEDEP}] )"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/mock[${PYTHON_USEDEP}]
dev-python/nose[${PYTHON_USEDEP}]
dev-python/nose-cover3[${PYTHON_USEDEP}]
dev-python/pylint[${PYTHON_USEDEP}] )
doc? ( $(python_gen_cond_dep 'dev-python/sphinx[${PYTHON_USEDEP}]' python2_7)
>=dev-python/python-docs-2.7.6-r1:2.7 )"
REQUIRED_USE="test? ( yahoo timezone )"
python_prepare_all() {
if use doc; then
local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7)
local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}"
local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html"
local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv"
sed -i "s|'http://docs.python.org/': None|'${PYTHON_DOC}': '${PYTHON_DOC_INVENTORY}'|" docs/conf.py || die
fi
distutils-r1_python_prepare_all
# prevent install of test folder to avoid file collisions
sed -e "s:find_packages():find_packages(exclude=['test','test.*']):" -i setup.py || die
}
python_test() {
nosetests --verbose || die
py.test -v -v || die
# broken tests
rm test/geocoders/openmapquest.py
sed -i -e 's/from .openmapquest import OpenMapQuestTestCase//' test/geocoders/__init__.py
# Ignore rogue class IGNFranceTestCase demanding elements beyond a normal testsuite
# i.e. "You should provide an api key and a username with a password"
# Cannot decipher how to skip or exclude this "context=IGNFranceTestCase"
# It appears it MAY stem from nose rather than geopy's suite
nosetests --verbose || die "Tests failed under ${EPYTHON}"
}
python_compile_all() {
use doc && emake -C docs html
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}