Skip to content

Commit

Permalink
My birthday! Updated version, added failed_geocode error, fixed pypi …
Browse files Browse the repository at this point in the history
…distribution install
  • Loading branch information
Mike Lewis committed Apr 18, 2012
1 parent a33aa2d commit a827fdc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include *.txt
include *.md
exclude foursquare/tests/_creds.py
File renamed without changes.
File renamed without changes.
10 changes: 7 additions & 3 deletions foursquare/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = {
Expand All @@ -67,6 +70,7 @@ class Other(FoursquareException): pass
'rate_limit_exceeded': RateLimitExceeded,
'deprecated': Deprecated,
'server_error': ServerError,
'failed_geocode': FailedGeocode,
'other': Other,
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
author_email='[email protected]',
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',
Expand Down

0 comments on commit a827fdc

Please sign in to comment.