Skip to content

Commit

Permalink
Tagged 0.5.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
wackou committed Dec 4, 2017
1 parent 4c4e2f1 commit 390eca3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
8 changes: 8 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
History
=======


0.5.2 (2017-12-04)
------------------

* [bts] added Uphold and Binance feed providers
* refactored feed providers plugin system to be more easily extended


0.5.1 (2017-11-20)
------------------

Expand Down
4 changes: 2 additions & 2 deletions bts_tools/feed_providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def wrapper(*args, **kwargs):

except Exception as e:
if PROVIDER_STATES.get(name) != 'offline':
log.warning('Feed provider %s went offline (%s)' % (name, e.__class__.__name__))
log.warning('Feed provider {} went offline: {}'.format(name, e))
log.debug(e)
log.exception(e)
#log.exception(e)
PROVIDER_STATES[name] = 'offline'
raise

Expand Down
10 changes: 8 additions & 2 deletions bts_tools/feed_providers/bitcoinaverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@
def get(cur, base):
log.debug('checking feeds for %s/%s at %s' % (cur, base, NAME))

secret_key = core.config['credentials']['bitcoinaverage']['secret_key']
public_key = core.config['credentials']['bitcoinaverage']['public_key']

try:
secret_key = core.config['credentials']['bitcoinaverage']['secret_key']
public_key = core.config['credentials']['bitcoinaverage']['public_key']
except KeyError:
raise KeyError('config.yaml does not specify both "credentials.bitcoinaverage.secret_key" and '
'"credentials.bitcoinaverage.public_key" variables')


client = RestfulClient(secret_key=secret_key, public_key=public_key)
r = client.ticker_short_local()[cur + base]
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
# The short X.Y version.
version = '0.5'
# The full version, including alpha/beta/rc tags.
release = '0.5.1'
release = '0.5.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
README = open(os.path.join(here, 'README.rst')).read()
HISTORY = open(os.path.join(here, 'HISTORY.rst')).read()

VERSION = '0.5.1'
VERSION = '0.5.2'


install_requires = ['Flask', 'requests', 'psutil', 'pyyaml', 'dogpile.cache',
Expand Down

0 comments on commit 390eca3

Please sign in to comment.