Permalink
Browse files

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

…distribution install
  • Loading branch information...
1 parent a33aa2d commit a827fdc933dc90e0a88d550798545ffbdf472ae9 @mLewisLogic committed Apr 18, 2012
Showing with 11 additions and 4 deletions.
  1. +3 −0 MANIFEST.in
  2. 0 readme.md → README.md
  3. 0 readme.txt → README.txt
  4. +7 −3 foursquare/__init__.py
  5. +1 −1 setup.py
View
3 MANIFEST.in
@@ -0,0 +1,3 @@
+include *.txt
+include *.md
+exclude foursquare/tests/_creds.py
View
0 readme.md → README.md
File renamed without changes.
View
0 readme.txt → README.txt
File renamed without changes.
View
10 foursquare/__init__.py
@@ -13,24 +13,26 @@
import datetime
import inspect
import math
-import poster
import re
import socket
import time
import urllib
import urllib2
import urlparse
-# Might not be present during initial install but we need to import for the version #
+# 3rd party libraries that might not be present during initial install
+# but we need to import for the version #
try:
import httplib2
+ import poster
except ImportError:
pass
+
# Default API version. Move this forward as the library is maintained and kept current
-API_VERSION = '20120328'
+API_VERSION = '20120418'
# Library versioning matches supported foursquare API version
__version__ = API_VERSION
@@ -57,6 +59,7 @@ class NotAuthorized(FoursquareException): pass
class RateLimitExceeded(FoursquareException): pass
class Deprecated(FoursquareException): pass
class ServerError(FoursquareException): pass
+class FailedGeocode(FoursquareException): pass
class Other(FoursquareException): pass
error_types = {
@@ -67,6 +70,7 @@ class Other(FoursquareException): pass
'rate_limit_exceeded': RateLimitExceeded,
'deprecated': Deprecated,
'server_error': ServerError,
+ 'failed_geocode': FailedGeocode,
'other': Other,
}
View
2 setup.py
@@ -14,7 +14,7 @@
author_email='mike@fondu.com',
url='http://github.com/mLewisLogic/foursquare',
description='easy-as-pie foursquare wrapper library',
- long_description=open('./readme.txt', 'r').read(),
+ long_description=open('./README.txt', 'r').read(),
download_url='http://github.com/mLewisLogic/foursquare/tarball/master',
classifiers=[
'Development Status :: 5 - Production/Stable',

0 comments on commit a827fdc

Please sign in to comment.