Skip to content

Commit

Permalink
refactor: replace bgserve with servir (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt authored Apr 19, 2023
1 parent 6766bc3 commit cf97878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions gosling/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from gosling.utils.core import _compute_data_hash

if typing.TYPE_CHECKING:
from bgserve import Provider
from bgserve._provide import Resource, TilesetResource
from servir import Provider, Resource, TilesetResource


def _hash_path(path: pathlib.Path):
Expand Down Expand Up @@ -38,7 +37,7 @@ def _extract_url(resource: Resource | TilesetResource) -> str:
str
The URL for Gosling.
"""
from bgserve._provide import TilesetResource
from servir import TilesetResource

if isinstance(resource, TilesetResource):
return f"{resource.server.rstrip('/')}/tileset_info/?d={resource.uid}"
Expand Down Expand Up @@ -74,7 +73,7 @@ def __call__(
**kwargs: typing.Any,
) -> str:
if self._provider is None:
from bgserve import Provider
from servir import Provider

self._provider = Provider()
self._provider.start(port=port)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [

[project.optional-dependencies]
all = [
"bgserve>=0.0.0",
"servir>=0.0.3",
"gosling-widget>=0.0.2",
"clodius>=0.20.0",
]
Expand Down

0 comments on commit cf97878

Please sign in to comment.