diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/geopy |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/geopy')
-rw-r--r-- | dev-python/geopy/Manifest | 7 | ||||
-rw-r--r-- | dev-python/geopy/geopy-1.11.0.ebuild | 66 | ||||
-rw-r--r-- | dev-python/geopy/geopy-1.8.1.ebuild | 59 | ||||
-rw-r--r-- | dev-python/geopy/metadata.xml | 17 |
4 files changed, 149 insertions, 0 deletions
diff --git a/dev-python/geopy/Manifest b/dev-python/geopy/Manifest new file mode 100644 index 000000000000..0edf2c71a36c --- /dev/null +++ b/dev-python/geopy/Manifest @@ -0,0 +1,7 @@ +DIST geopy-1.11.0.tar.gz 72035 SHA256 4602a662855656551dec7bf86868f1557cc3435b7ff6bbb607f26a86dee5b718 SHA512 b3abbf0ce4ca08eadc03a97876a662bbda1901660ea03329aace30bfb5f8af17c82653273e4d2eab9aca5e817f50768dd742b4865083709e10b8599331d5573b WHIRLPOOL 2016a26bffc07e8c1466331f017cbdf04299aab6bf81cb715538ac766bf2beeba97d2fac42856f44f9701040807727e09fa18fcdb757b5406c4e50a9e710347a +DIST geopy-1.8.1.tar.gz 67542 SHA256 63b805535cbe178367ee8f5e0221fab9fa691eef5797decac1e0851d16173dcf SHA512 0df2e67ed35d5cc3f796e3188df3a37d8fa101a4b6feb6b760ea08087ba44c350765a8c1032012b5e762454fa15c520f97d59ff942f07047927ef4872232a57c WHIRLPOOL 44c3f68a26ba23ca3ffae52dba5dc575a1cf54a53ea1e39d9566d97c58bcdb26b98934befc7cf012adbd266cee8a10b72d6880d1765af7f23486292b249c91a2 +EBUILD geopy-1.11.0.ebuild 2291 SHA256 3a1c7f84e2c4f4aba233eb5c4ad6599dfa3420e4a417b333af05e82b809af105 SHA512 6e7dd83a59537d0665d3cb90483d3287d54753c9069a52ef2ddfdfbb437956d0538c5583aa496e756afac680a235761e8def6e31161a93378b8f27bf3b04c7c9 WHIRLPOOL 5dadb4f65737a6be1da41d0728d2bedb0fd37c466116cbf726071be706cec884a8fe8c53458ebfcfcc433428b1b8e323a3656994e919d5c20f53dab1793908f0 +EBUILD geopy-1.8.1.ebuild 2005 SHA256 f553bcfd37c46dcc9d63a22fba7fa9aa5d30abc89f9dd1c22a7e9febbc842451 SHA512 de16f758bac7b8bbc7e41393d9614c27c46e52af9d77a2ea4c3d9673b5024f91474a774d0d5d21740bc0f6561f429f4eb42763c2ec5e926c6bc21c6b2e5e9090 WHIRLPOOL fa2310a04b0521499a107c0445cfc2dbc38193c1402c337733817b9271e3db2efe457710a96d2551c4cc200f3cabd7c55a0fce0cbec282c4dc866e097847b254 +MISC ChangeLog 3237 SHA256 bed7cfcf0cf7e9c743e3532ba47c00f614112babe62c34786e3ee79d264183a5 SHA512 47d79ebb320f1ac1f30c1618c96f09c970e664884084dc131254de0af5dac7f3fb121832cf17f2b79a432ba5d413565257d18db9c3bbd420295f840651dab0da WHIRLPOOL 3f34c07447fa57f632002dfc9d959ca99e7fe9b948998e513e5706cf08c0e987620762b3611fb408c6731d30d8541ea730a024d38d7fe886e3f0a7b9128f7525 +MISC ChangeLog-2015 4042 SHA256 f94ad554be5d88780a7c8505db0f50f6c548c8b69483c2a72a7ba1856d0d7e37 SHA512 e1c6f5ec20539d92a981f184e7723588b9fcc253facb4d31c8d0b0e4f6af9e950cdcfad0f8f33bebc9d5d13257ceaa683dfe24453e278e7e21e498d7baf2330e WHIRLPOOL 4fb59da20879e2ecd94986e239826bf23ccc467b195a68da832f93c8a7c3c9e6704b670ef3c3ae410ae62a80b6b3fc6e5a905eeb8764b479d3f3aad8de57a3f5 +MISC metadata.xml 566 SHA256 f5d0f98af606dbab8f9ed635847cfa39b7cac5344465d25e81b1d3972a4859e0 SHA512 37c883926b9a90ea8357aa2c307bef10ce6f419acb6bae4f4bef43604e699476dc1d5a258a3279e3b029d16097168bda3beeec924111fbe185be82017dbb8843 WHIRLPOOL bc81856e49aaf8b6e225d1b926cadbf33dd72dede0bde3dc93f36f42d70d8c5d6406169d7eb46ac6a9ad018ed1ab4b08d4f9c3faa7065ac762dcbf63d3e95502 diff --git a/dev-python/geopy/geopy-1.11.0.ebuild b/dev-python/geopy/geopy-1.11.0.ebuild new file mode 100644 index 000000000000..cac709dd0f81 --- /dev/null +++ b/dev-python/geopy/geopy-1.11.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,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 +} diff --git a/dev-python/geopy/geopy-1.8.1.ebuild b/dev-python/geopy/geopy-1.8.1.ebuild new file mode 100644 index 000000000000..43bd2cdb513e --- /dev/null +++ b/dev-python/geopy/geopy-1.8.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4} ) + +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 yahoo" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND="yahoo? ( >=dev-python/requests-oauthlib-0.4.0[${PYTHON_USEDEP}] + dev-python/placefinder[${PYTHON_USEDEP}] )" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( 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 )" + +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() { + # 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 +} diff --git a/dev-python/geopy/metadata.xml b/dev-python/geopy/metadata.xml new file mode 100644 index 000000000000..8e4022f6fcb3 --- /dev/null +++ b/dev-python/geopy/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="google-code">geopy</remote-id> + <remote-id type="pypi">geopy</remote-id> + <remote-id type="github">geopy/geopy</remote-id> + </upstream> + <use> + <flag name="yahoo">Enables use of YahooPlaceFinder</flag> + <flag name="timezone">Enables localized date support</flag> + </use> +</pkgmetadata> |