Skip to content

Commit

Permalink
Make ipywidgets and scipy properly optional (#100)
Browse files Browse the repository at this point in the history
Typo on `ipywidgets` was causing the whole jupyter stack to get installed for the base stackstac installation!

Scipy is only needed for `reproject_array`, which isn't in the core API IMO. And xarray already raises a decent error when it's missing.
  • Loading branch information
gjoseph92 authored Dec 3, 2021
1 parent 0239a5d commit d3a78c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pystac-client = {version = "^0.3", optional = true}
python = "^3.8"
rasterio = "^1.2.3"
sat-search = {version = "^0.3.0", optional = true}
scipy = "^1.6.1"
scipy = {version = "^1.6.1", optional = true}
sphinx-autodoc-typehints = {version = "^1.11.1", optional = true}
xarray = ">=0.18,<1"

Expand Down Expand Up @@ -66,7 +66,7 @@ binder = [
"distributed",
"geogif",
"ipyleaflet",
"ipywidets",
"ipywidgets",
"jupyterlab-geojson",
"jupyter-server-proxy",
"jupyterlab-system-monitor",
Expand Down Expand Up @@ -95,6 +95,7 @@ viz = [
"matplotlib",
"mercantile",
"Pillow",
"scipy",
]

[build-system]
Expand Down

0 comments on commit d3a78c4

Please sign in to comment.