[Python-modules-team] Bug#711532: GeoPy <0.95 not usable any more with current Google Maps API

Daniele Tricoli eriol at mornie.org
Mon Jun 24 01:15:33 UTC 2013


Hello,

On Friday 21 June 2013 09:59:07 Daniele Tricoli wrote:
> I will update geopy this weekend.

Just a quick update! I have updated geopy packaging adding also the Python3 
package since it is supported. I also fixed some trivial bug in upstream code, 
but there is one bug remaining: upstream is using __cmp__() and cmp()[²], both 
removed and unsupported in Python3[¹].

Since I will not have the time to work on this untill the end of the first 
week of July, we have several possibilities if you need an updated geopy 
before that date:

1) Use a quick&dirty patch like:

    def cmp(a, b):
        return (a > b) - (a < b)

2) I can revert the build of the Python3 package for now;
3) Someone can provide a proper patch :)
   Adding __lt__() and __eq__() should be enough.

Clearly I prefer option 3 :)

Obviously I will forward all the patches upstream.

I would also like to test (maybe Debian GIS Team can help me with this) 
switching to Beautiful Soap 4 since it supports also Python3: my plan is to 
create a test package which use Beautiful Soap 4 and ask to Debian GIS Team to 
help me testing it.

As said before, however, I can work on this only starting from the end of the 
first week of July.

Kind regards,

[¹] http://docs.python.org/release/3.0.1/whatsnew/3.0.html#ordering-comparisons

[²] https://github.com/geopy/geopy/blob/master/geopy/distance.py#L80

-- 
 Daniele Tricoli 'Eriol'
 http://mornie.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20130624/fd9dc1b0/attachment.sig>


More information about the Python-modules-team mailing list