Skip to content

Commit

Permalink
Merge pull request #39 from Anaconda-Platform/upload-commandlines
Browse files Browse the repository at this point in the history
Include windows and unix commandlines in publication_info()
  • Loading branch information
havocp committed Mar 8, 2017
2 parents 61ef8ee + 539b54f commit ddc769c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions anaconda_project/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,10 @@ def publication_info(self):
commands[key]['bokeh_app'] = command.bokeh_app
if command.notebook is not None:
commands[key]['notebook'] = command.notebook
if command.windows_cmd_commandline is not None:
commands[key]['windows'] = command.windows_cmd_commandline
if command.unix_shell_commandline is not None:
commands[key]['unix'] = command.unix_shell_commandline
if command is self.default_command:
commands[key]['default'] = True
commands[key]['env_spec'] = command.default_env_spec_name
Expand Down
2 changes: 2 additions & 0 deletions anaconda_project/test/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2255,13 +2255,15 @@ def check_publication_info_from_complex(dirname):
'anaconda_project_version': version,
'commands': {'bar': {'description': 'echo boo',
'env_spec': 'lol',
'windows': 'echo boo',
'supports_http_options': False},
'baz': {'description': 'echo blah',
'env_spec': 'default',
'supports_http_options': False},
'foo': {'description': 'say hi',
'default': True,
'env_spec': 'default',
'unix': 'echo hi',
'supports_http_options': True},
'myapp': {'description': 'Bokeh app main.py',
'bokeh_app': 'main.py',
Expand Down

0 comments on commit ddc769c

Please sign in to comment.