Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

My birthday! Updated version, added failed_geocode error, fixed pypi …

…distribution install
  • Loading branch information...
commit a827fdc933dc90e0a88d550798545ffbdf472ae9 1 parent a33aa2d
Mike Lewis authored
3  MANIFEST.in
... ...
@@ -0,0 +1,3 @@
  1
+include *.txt
  2
+include *.md
  3
+exclude foursquare/tests/_creds.py
0  readme.md → README.md
Source Rendered
File renamed without changes
0  readme.txt → README.txt
File renamed without changes
10  foursquare/__init__.py
@@ -13,7 +13,6 @@
13 13
 import datetime
14 14
 import inspect
15 15
 import math
16  
-import poster
17 16
 import re
18 17
 import socket
19 18
 import time
@@ -21,16 +20,19 @@
21 20
 import urllib2
22 21
 import urlparse
23 22
 
24  
-# Might not be present during initial install but we need to import for the version #
  23
+# 3rd party libraries that might not be present during initial install
  24
+#  but we need to import for the version #
25 25
 try:
26 26
     import httplib2
  27
+    import poster
27 28
 except ImportError:
28 29
     pass
29 30
 
30 31
 
31 32
 
  33
+
32 34
 # Default API version. Move this forward as the library is maintained and kept current
33  
-API_VERSION = '20120328'
  35
+API_VERSION = '20120418'
34 36
 
35 37
 # Library versioning matches supported foursquare API version
36 38
 __version__ = API_VERSION
@@ -57,6 +59,7 @@ class NotAuthorized(FoursquareException): pass
57 59
 class RateLimitExceeded(FoursquareException): pass
58 60
 class Deprecated(FoursquareException): pass
59 61
 class ServerError(FoursquareException): pass
  62
+class FailedGeocode(FoursquareException): pass
60 63
 class Other(FoursquareException): pass
61 64
 
62 65
 error_types = {
@@ -67,6 +70,7 @@ class Other(FoursquareException): pass
67 70
     'rate_limit_exceeded': RateLimitExceeded,
68 71
     'deprecated': Deprecated,
69 72
     'server_error': ServerError,
  73
+    'failed_geocode': FailedGeocode,
70 74
     'other': Other,
71 75
 }
72 76
 
2  setup.py
@@ -14,7 +14,7 @@
14 14
     author_email='mike@fondu.com',
15 15
     url='http://github.com/mLewisLogic/foursquare',
16 16
     description='easy-as-pie foursquare wrapper library',
17  
-    long_description=open('./readme.txt', 'r').read(),
  17
+    long_description=open('./README.txt', 'r').read(),
18 18
     download_url='http://github.com/mLewisLogic/foursquare/tarball/master',
19 19
     classifiers=[
20 20
         'Development Status :: 5 - Production/Stable',

0 notes on commit a827fdc

Please sign in to comment.
Something went wrong with that request. Please try again.