Skip to content

Commit

Permalink
MAINT: rebrand with dserver
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Feb 13, 2024
1 parent 36e5516 commit d8f2abf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = dtool_lookup_client
SPHINXPROJ = dserver_client
SOURCEDIR = source
BUILDDIR = build

Expand Down
8 changes: 4 additions & 4 deletions dserver_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import dtoolcore
import dtoolcore.utils
import dtool_config.cli
import dtool_lookup_api
import dserver_api


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -69,7 +69,7 @@ def urljoin(*args):
@click.argument("uuid")
def lookup(uuid):
"""Print the URIs associated with a UUID in the lookup server."""
r = dtool_lookup_api.lookup(uuid)
r = dserver_api.lookup(uuid)
for uri in uris_from_lookup_response(r):
click.secho(uri)

Expand All @@ -78,7 +78,7 @@ def lookup(uuid):
@click.argument("keyword", default="")
def search(keyword):
"""Print metadata matching keyword(s) on the lookup server."""
r = dtool_lookup_api.search(keyword)
r = dserver_api.search(keyword)
formatted_json = json.dumps(r, indent=2)
colorful_json = pygments.highlight(
formatted_json,
Expand All @@ -92,7 +92,7 @@ def search(keyword):
@click.argument("query", default="")
def query(query):
"""Print metadata associated with a query in the lookup server."""
r = dtool_lookup_api.query(query)
r = dserver_api.query(query)
formatted_json = json.dumps(r, indent=2)
colorful_json = pygments.highlight(
formatted_json,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def local_scheme(version):
"dtoolcore>=3.9.0",
"dtool-cli>=0.7.1",
"dtool_config>=0.1.1",
"dtool-lookup-api>=0.5.0",
"dserver-api>=0.5.0",
"pygments",
],
entry_points={
Expand Down

0 comments on commit d8f2abf

Please sign in to comment.