Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Bump geopy from 1.11.0 to 2.0.0 #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps geopy from 1.11.0 to 2.0.0.

Release notes

Sourced from geopy's releases.

2.0.0

geopy 2.0 is a major release with lots of cleanup and inner refactorings. The public interface of the library is mostly the same, and the set of supported geocoders didn't change.

If you have checked your code on the latest 1.x release with enabled warnings (i.e. with -Wd key of the python command) and fixed all of them, then it should be safe to upgrade.

New Features

  • geopy.adapters module. Previously all geocoders used urllib for HTTP requests, which doesn't support keepalives. Adapters is a new mechanism which allows to use other HTTP client implementations.

    There are 3 implementations coming out of the box:

    • geopy.adapters.RequestsAdapter -- uses requests library which supports keepalives (thus it is significantly more effective than urllib). It is used by default if requests package is installed.
    • geopy.adapters.URLLibAdapter -- uses urllib, basically it provides the same behavior as in geopy 1.x. It is used by default if requests package is not installed.
    • geopy.adapters.AioHTTPAdapter -- uses aiohttp library.
  • Added optional asyncio support in all geocoders via .AioHTTPAdapter, see the new Async Mode doc section.

  • .AsyncRateLimiter -- an async counterpart of .RateLimiter.

  • .RateLimiter is now thread-safe.

Packaging Changes

  • Dropped support for Python 2.7 and 3.4.

  • New extras:

    • geopy[requests] for geopy.adapters.RequestsAdapter.
    • geopy[aiohttp] for geopy.adapters.AioHTTPAdapter.

Breaking Changes

  • geopy.distance algorithms now raise ValueError for points with different altitudes, because altitude is ignored in calculations.
  • Removed geopy.distance.vincenty, use geopy.distance.geodesic instead.
  • timeout=None now disables request timeout, previously a default timeout has been used in this case.
  • Removed GoogleV3.timezone, use .GoogleV3.reverse_timezone instead.
  • Removed format_string param from all geocoders. See Specifying Parameters Once doc section for alternatives.
Changelog

Sourced from geopy's changelog.

orphan

:

Changelog of the 1.x series

1.23.0

2020-06-27

This is the last feature release for the 1.x series, as geopy 2.0 has been released. The 1.x series will not receive any new features or bugfixes unless explicitly asked on the issue tracker.

  • ADDED: Units Conversion docs section.
  • ADDED: Docs now explicitly clarify that geocoding services don't consider altitudes. (#165)
  • ADDED: Point.format_unicode method. It was always present as __unicode__ magic for Python 2.7, and now it can be accessed as a public method.
  • ADDED: geopy.__version_info__ tuple which can be used to dynamically compare geopy version.
  • ADDED: pytest --skip-tests-requiring-internet switch (might be useful for downstream package maintainers). (#413)
  • CHANGED: Points with different altitudes now emit a warning in distance computations. In geopy 2.0 the warning would become an exception. (#387)
  • CHANGED: Improved Point docs: added missing public methods, added more examples.
  • CHANGED: Nominatim started emitting warnings for a number of sample user agents mentioned in the docs, such as specify_your_app_name_here.
  • FIXED: IGNFrance ignored proxies with username + password auth. (#289)

1.22.0

2020-05-11

  • ADDED: AlgoliaPlaces geocoder. Contributed by Álvaro Mondéjar. (#405)
  • ADDED: BaiduV3 geocoder. (#394)
  • ADDED: MapQuest geocoder. Contributed by Pratheek Rebala. (#399)
  • ADDED: MapTiler geocoder. Contributed by chilfing. (#397)
  • ADDED: Nominatim-based geocoders: zoom parameter has been added to the reverse method. Contributed by David Mueller. (#406)
  • ADDED: GoogleV3 added support for lists in components param which allows to specify multiple components with the same name. Contributed by Pratheek Rebala. (#409)
  • CHANGED: Updated links to Nominatim documentation. Contributed by Sarah Hoffmann. (#403)
  • CHANGED: Yandex now issues a deprecation warning when lang parameter is specified in __init__. lang should be passed to geocode and reverse instead. (#350)
  • CHANGED: format_string param has been marked as deprecated in all geocoders and will be removed in geopy 2.0. See the new Specifying Parameters Once doc section for alternatives.
  • FIXED: IGNFrance incorrectly processed empty results: geocode has been raising an IndexError, reverse was returning an empty list. Now they both return None. (#244)
  • FIXED: TomTom geocoder has been raising GeocoderInsufficientPrivileges exception for rate limiting errors instead of GeocoderQuotaExceeded.

1.21.0

2020-02-02

  • ADDED: HERE geocoder now supports the new API KEY authentication method. The old one is marked as deprecated and now issues a warning. Contributed by deeplook. (#388)
  • ADDED: Nominatim-based geocoders: featuretype parameter has been added to the geocode method. Contributed by Sergio Martín Morillas. (#365)
  • ADDED: Nominatim-based geocoders: namedetails parameter has been added to the geocode method. Contributed by enrique a. (#368)
  • ADDED: `Pelias`: language parameter has been added to the geocode and reverse methods. Contributed by Armin Leuprecht. (#378)
Commits
  • 5362fa1 2.0.0
  • 93727b4 Merge branch 'v1'
  • c853031 1.23.0
  • 83d0ea3 README: add v1 deprecation warning
  • 54c30bb Merge pull request #421 from geopy/v2/osm-to-nominatim
  • c264a08 Nominatim: add osm.py shim
  • 317b69c Nominatim: move from geopy.geocoders.osm to geopy.geocoders.nominatim
  • eaec27e v1 docs: replace geopy 2.0 announce with a EOL message
  • 0d83574 setup.cfg: drop universal wheel (no longer required for py3)
  • 0268b05 Release 2.0.0rc1 (#292)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [geopy](https://github.com/geopy/geopy) from 1.11.0 to 2.0.0.
- [Release notes](https://github.com/geopy/geopy/releases)
- [Changelog](https://github.com/geopy/geopy/blob/master/docs/changelog_1xx.rst)
- [Commits](geopy/geopy@1.11.0...2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Jun 29, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 29, 2020
@jpoehnelt jpoehnelt removed their assignment Sep 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement. dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants