Skip to content

Commit

Permalink
Add Ember instance types for DANDI CLI
Browse files Browse the repository at this point in the history
By adding an ember instance type (and ember-staging), the DANDI CLI
should be able to be used as-is rather than requiring a custom PyPI.

#1517
#1527
  • Loading branch information
asmacdo committed Jan 15, 2025
1 parent ba384c6 commit e9728d9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
6 changes: 6 additions & 0 deletions dandi/cli/tests/test_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ def test_cmd_instances(monkeypatch):
"linc-staging:\n"
" api: https://staging-api.lincbrain.org/api\n"
" gui: https://staging.lincbrain.org\n"
"ember:\n"
" api: https://api.ember-archive.org/api\n"
" gui: https://ember-archive.org\n"
"ember-staging:\n"
" api: https://staging-api.ember-archive.org/api\n"
" gui: https://staging.ember-archive.org\n"
)
12 changes: 11 additions & 1 deletion dandi/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,17 @@ def urls(self) -> Iterator[str]:
"linc-staging",
"https://staging.lincbrain.org",
"https://staging-api.lincbrain.org/api",
)
),
"ember": DandiInstance(
"ember",
"https://ember-archive.org",
"https://api.ember-archive.org/api",
),
"ember-staging": DandiInstance(
"ember-staging",
"https://staging.ember-archive.org",
"https://staging-api.ember-archive.org/api",
),
}
# to map back url: name
known_instances_rev = {
Expand Down
8 changes: 7 additions & 1 deletion docs/source/cmdline/instances.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@ Example output:
gui: https://staging.lincbrain.org
linc:
api: https://api.lincbrain.org/api
gui: https://lincbrain.org
gui: https://lincbrain.org
ember-staging:
api: https://staging-api.ember-archive.org/api
gui: https://staging.ember-archive.org
ember:
api: https://api.ember-archive.org/api
gui: https://ember-archive.org

0 comments on commit e9728d9

Please sign in to comment.