mapado / haversine

Calculate the distance between 2 points on Earth
MIT License
330 stars 62 forks source link

No longer py2 compatible #41

Closed md384 closed 3 years ago

md384 commented 3 years ago

A recent change https://github.com/mapado/haversine/commit/cc57838981da029afb8c3fec2fe6fbeedf437b60#diff-aac46069c41f551819527065ee5717c7767fa1a3ec7fb2b4cde307d1a01e78c3R158 added type hinting syntax that is not py2 compatible.

Either the type hints should be removed, converted to comment style or the setup.py updated to only allow py3.

Thanks!

jdeniau commented 3 years ago

Thanks @md384 for the report.

I released a 2.4.1 version compatible with python 2.7, and dropped support of python <3.5 and reset the type hinting in the 2.5.1.

See https://github.com/mapado/haversine/blob/master/CHANGELOG.md#251 for more informations.