Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from lincbrain/ak-linc
Browse files Browse the repository at this point in the history
Modify dandi-cli to work as linc-cli
  • Loading branch information
aaronkanzer authored Nov 20, 2023
2 parents 10d076e + 68e3a66 commit 57ab95e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
7 changes: 5 additions & 2 deletions dandi/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@ def urls(self) -> Iterator[str]:
# to test against instance running outside of current environment
instancehost = os.environ.get("DANDI_INSTANCEHOST", "localhost")

# TODO: Aaron: Abstract as env variables that domains can be sent as
# TODO: Also add docs for what each of these values should map to
known_instances = {
"dandi": DandiInstance(
"dandi",
"https://dandiarchive.org",
"https://api.dandiarchive.org/api",
"https://lincbrain.org",
"https://api.lincbrain.org/api",
),
"dandi-staging": DandiInstance(
"dandi-staging",
Expand All @@ -133,6 +135,7 @@ def urls(self) -> Iterator[str]:
f"http://{instancehost}:8000/api",
),
}

# to map back url: name
known_instances_rev = {
vv: k for k, v in known_instances.items() for vv in v.urls() if vv
Expand Down
16 changes: 8 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[metadata]
name = dandi
url = http://dandiarchive.org
author = DANDI developers
author_email = team@dandiarchive.org
maintainer = Yaroslav O. Halchenko
maintainer_email = [email protected]
name = lincbrain
url = http://lincbrain.org
author = LINC developers
author_email = team@lincbrain.org
maintainer = Aaron Kanzer
maintainer_email = [email protected]
classifiers =
Development Status :: 1 - Planning
Environment :: Console
Expand All @@ -18,12 +18,12 @@ classifiers =
Programming Language :: Python :: 3.11
Topic :: Scientific/Engineering
license = Apache 2.0
description = Command line client for interaction with DANDI archive elements
description = Command line client for interaction with LINC Brain archive elements
long_description = file:README.md
long_description_content_type = text/markdown; charset=UTF-8
platforms = OS Independent
project_urls =
Source Code = https://github.com/dandi/dandi-cli
Source Code = https://github.com/lincbrain/linc-cli
Documentation = https://dandi.readthedocs.io

[options]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

if sys.version_info < (3,):
raise RuntimeError(
"dandi-cli's setup.py requires python 3 or later. "
"linc-cli's setup.py requires python 3 or later. "
"You are using %s" % sys.version
)

Expand All @@ -38,4 +38,4 @@
setup_kw = {}

if __name__ == "__main__":
setup(name="dandi", **setup_kw)
setup(name="lincbrain", **setup_kw)

0 comments on commit 57ab95e

Please sign in to comment.