Skip to content

Commit

Permalink
Correct build version extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Duberstein committed Aug 26, 2019
1 parent 46d9797 commit 0ba4974
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bindings/python/pydeck/dependency_managers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This file handles the creation of a config for RequireJS
"""
This file handles the creation of a config for RequireJS
pydeck supports two strategies to render deck.gl maps:
- A Juypter Notebook Widget
Expand Down Expand Up @@ -36,14 +37,11 @@ def _is_open(url):
_is_open(dev_server_url)
WIDGET_PATH = os.path.join(here, '../../../../modules/jupyter-widget/dist')


def get_deckgl_version():
with open(os.path.join(WIDGET_PATH, '../..', 'lerna.json') as f:
with open(os.path.join(WIDGET_PATH, '../..', 'lerna.json')) as f:
lerna_json = json.loads(f.read())
version = lerna_json['version']
minor_version = version.split('.')
return '~{}.{}.0'.format(*minor_version.split('.')[0:2])

return version

def create_notebook_requirejs(dependencies, base_path, setup_environment='development'):
'''Embeds environment-appropriate RequireJS configuration into the Jupyter widget's module'''
Expand Down

0 comments on commit 0ba4974

Please sign in to comment.