mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
dev-python/geopy: fix deps, rework tests, drop old
Closes: https://bugs.gentoo.org/777810 Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8,9} )
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
@@ -19,10 +19,7 @@ LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
<sci-geosciences/GeographicLib-2
|
||||
>=sci-geosciences/GeographicLib-1.49
|
||||
"
|
||||
RDEPEND="dev-python/geographiclib[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-aiohttp[${PYTHON_USEDEP}]
|
||||
@@ -38,21 +35,41 @@ distutils_enable_sphinx docs \
|
||||
">=dev-python/sphinx_rtd_theme-0.4.0" \
|
||||
dev-python/readme_renderer
|
||||
|
||||
python_prepare_all() {
|
||||
# [Errno -3] Temporary failure in name resolution
|
||||
rm test/test_adapters.py || die
|
||||
rm test/geocoders/algolia.py || die
|
||||
rm test/geocoders/arcgis.py || die
|
||||
rm test/geocoders/banfrance.py || die
|
||||
rm test/geocoders/databc.py || die
|
||||
rm test/geocoders/geocodefarm.py || die
|
||||
rm test/geocoders/geonames.py || die
|
||||
rm test/geocoders/nominatim.py || die
|
||||
rm test/geocoders/photon.py || die
|
||||
|
||||
# depend on the above and now fail to import
|
||||
rm test/geocoders/openmapquest.py || die
|
||||
rm test/geocoders/pickpoint.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
python_test() {
|
||||
epytest \
|
||||
--deselect test/test_adapters.py::test_not_available_adapters_raise \
|
||||
--deselect test/test_adapters.py::test_geocoder_constructor_uses_https_proxy \
|
||||
--deselect test/test_adapters.py::test_geocoder_https_proxy_auth_is_respected \
|
||||
--deselect test/test_adapters.py::test_ssl_context_with_proxy_is_respected \
|
||||
--deselect test/test_adapters.py::test_ssl_context_without_proxy_is_respected[URLLibAdapter] \
|
||||
--deselect test/test_adapters.py::test_ssl_context_without_proxy_is_respected[RequestsAdapter] \
|
||||
--deselect test/geocoders/algolia.py \
|
||||
--deselect test/geocoders/arcgis.py \
|
||||
--deselect test/geocoders/azure.py \
|
||||
--deselect test/geocoders/baidu.py \
|
||||
--deselect test/geocoders/banfrance.py \
|
||||
--deselect test/geocoders/bing.py::TestBing \
|
||||
--deselect test/geocoders/databc.py \
|
||||
--deselect test/geocoders/geocodeearth.py \
|
||||
--deselect test/geocoders/geocodefarm.py \
|
||||
--deselect test/geocoders/geolake.py::TestGeolake \
|
||||
--deselect test/geocoders/geonames.py::TestGeoNames \
|
||||
--deselect test/geocoders/geonames.py::TestGeoNamesInvalidAccount \
|
||||
--deselect test/geocoders/googlev3.py \
|
||||
--deselect test/geocoders/here.py::TestHereApiKey \
|
||||
--deselect test/geocoders/here.py::TestHereLegacyAuth \
|
||||
--deselect test/geocoders/ignfrance.py \
|
||||
--deselect test/geocoders/mapbox.py \
|
||||
--deselect test/geocoders/mapquest.py \
|
||||
--deselect test/geocoders/maptiler.py \
|
||||
--deselect test/geocoders/nominatim.py \
|
||||
--deselect test/geocoders/opencage.py::TestOpenCage \
|
||||
--deselect test/geocoders/openmapquest.py::TestOpenMapQuest \
|
||||
--deselect test/geocoders/pelias.py \
|
||||
--deselect test/geocoders/photon.py \
|
||||
--deselect test/geocoders/pickpoint.py \
|
||||
--deselect test/geocoders/smartystreets.py::TestLiveAddress::test_geocode \
|
||||
--deselect test/geocoders/tomtom.py \
|
||||
--deselect test/geocoders/what3words.py \
|
||||
--deselect test/geocoders/yandex.py
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user