From 783e0a86f890ed77fc4db05f51575f5aad084ff8 Mon Sep 17 00:00:00 2001 From: Chris Lee Date: Mon, 29 Jun 2015 17:34:24 -0400 Subject: [PATCH 1/4] FIX: PIL req 2.8.1 -> 2.8.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 998be30..0893ade 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ six>=1.3.0 requests>=2.2.1 -Pillow>=2.8.1 \ No newline at end of file +Pillow>=2.8.2 From 381aa854a3e4dd502a6c3abf73ee11536c5cffdf Mon Sep 17 00:00:00 2001 From: Chris Lee Date: Mon, 29 Jun 2015 17:49:13 -0400 Subject: [PATCH 2/4] FIX: political unittest --- tests/test_remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_remote.py b/tests/test_remote.py index 580247f..b4b262d 100644 --- a/tests/test_remote.py +++ b/tests/test_remote.py @@ -214,7 +214,7 @@ class FullAPIRun(unittest.TestCase): response = political(test_string) self.assertTrue(isinstance(response, dict)) - assert response['Liberal'] > 0.25 + assert response['Libertarian'] > 0.25 def test_posneg(self): test_string = "Worst song ever." From 1186a52c6f13c4d0524d290413d5c12f17461e81 Mon Sep 17 00:00:00 2001 From: Madison May Date: Wed, 1 Jul 2015 15:33:37 -0400 Subject: [PATCH 3/4] FIX: allow access to sentimenthq API --- indicoio/utils/api.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/indicoio/utils/api.py b/indicoio/utils/api.py index 664e441..836b243 100644 --- a/indicoio/utils/api.py +++ b/indicoio/utils/api.py @@ -29,11 +29,6 @@ def api_handler(arg, cloud, api, url_params = {"batch":False, "api_key":None}, * if apis: url += "&apis=%s" % ",".join(apis) - # private beta - if host == config.PUBLIC_API_HOST: - if (api == 'sentimenthq') or ('sentimenthq' in apis): - raise IndicoError("The high quality sentiment API is currently in private beta.") - response = requests.post(url, data=json_data, headers=JSON_HEADERS) if response.status_code == 503 and cloud != None: raise IndicoError("Private cloud '%s' does not include api '%s'" % (cloud, api)) From c4b8a1dd6b256eaa8b453fdc7e089e386d3eb540 Mon Sep 17 00:00:00 2001 From: Madison May Date: Wed, 1 Jul 2015 15:55:26 -0400 Subject: [PATCH 4/4] UPDATE: Tick version number and update CHANGES.txt --- CHANGES.txt | 1 + indicoio/__init__.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index b8d3766..79f806a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -28,3 +28,4 @@ v0.7.1 Thu Jun 11 -- High quality sentiment API for private beta, fix for multi v0.7.2 Thu Jun 11 -- Remove sentiment_hq from text apis by default v0.7.3 Wed Jun 17 -- Fixes for handling of specific image types v0.7.4 Mon Jun 22 -- Fix for setup.py issues +v0.7.5 Wed Jul 1 -- Public access to sentimentHQ api diff --git a/indicoio/__init__.py b/indicoio/__init__.py index 162ede4..3c06929 100644 --- a/indicoio/__init__.py +++ b/indicoio/__init__.py @@ -1,6 +1,6 @@ from functools import partial -Version, version, __version__, VERSION = ('0.7.4',) * 4 +Version, version, __version__, VERSION = ('0.7.5',) * 4 JSON_HEADERS = { 'Content-type': 'application/json', diff --git a/setup.py b/setup.py index 3dca9cc..eb0b590 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ except ImportError: setup( name="IndicoIo", - version="0.7.4", + version="0.7.5", packages=[ "indicoio", "indicoio.text",