Skip to content

Commit

Permalink
Merge branch 'master' into release/0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
twojustin committed Jul 17, 2018
2 parents 966d44d + 33785c0 commit eced404
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.11.6
current_version = 0.11.7
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "floyd-cli" %}
{% set version = "0.11.6" %}
{% set version = "0.11.7" %}
{% set file_ext = "tar.gz" %}

package:
Expand Down
4 changes: 4 additions & 0 deletions floyd/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def normalize_data_name(raw_name, default_username='', default_dataset_name='',
raw_name = raw_name or ''
if raw_name.endswith('/output'):
return normalize_job_name(raw_name[:-len('/output')], default_username, default_dataset_name) + '/output'
elif raw_name.endswith('/home'):
return normalize_job_name(raw_name[:-len('/home')], default_username, default_dataset_name) + '/home'
elif '/projects/' in raw_name:
return normalize_job_name(raw_name, default_username, default_dataset_name)

name_parts = raw_name.split('/')

Expand Down
4 changes: 2 additions & 2 deletions floyd/development/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def cli(verbose):
Floyd CLI interacts with FloydHub server and executes your commands.
More help is available under each command listed below.
"""
floyd.floyd_host = "https://127.0.0.1:8080"
floyd.floyd_host = "http://127.0.0.1:8080"
floyd.floyd_web_host = "https://127.0.0.1:3000"
floyd.tus_server_endpoint = "https://127.0.0.1:1080"
floyd.tus_server_endpoint = "http://127.0.0.1:1080"
configure_logger(verbose)
check_cli_version()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import find_packages, setup

project = "floyd-cli"
version = "0.11.6"
version = "0.11.7"

with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_normalize_data_name(self, _0, _1, _2, _3, mock_get_config):
assert normalize_data_name('1', 'yoyo', 'ma') == 'yoyo/datasets/ma/1'

# Full job names are returned unchanged
assert normalize_data_name('foo/projects/bar/1') == 'foo/datasets/bar/1'
assert normalize_data_name('foo/projects/bar/1') == 'foo/projects/bar/1'

# If no job number is passed, it is not used
assert normalize_data_name('foo/datasets/bar') == 'foo/datasets/bar'
Expand Down

0 comments on commit eced404

Please sign in to comment.