Skip to content

Commit

Permalink
Merge pull request #61 from MAAP-Project/fix/broken-setup-cfg
Browse files Browse the repository at this point in the history
add packages find options for data disc
  • Loading branch information
emmalu authored May 16, 2023
2 parents 9714971 + b9c3091 commit 2bc5e15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ collect_ignore = ['setup.py']

[options]
packages = find:
package_dir =
= stac_ipyleaflet
include_package_data=True
zip_safe=False
tests_require=[pytest>=3]
Expand Down
2 changes: 1 addition & 1 deletion stac_ipyleaflet/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import requests

from ipyleaflet import Map, DrawControl, WidgetControl, TileLayer, Popup
from stac_discovery.stac_widget import StacDiscoveryWidget
from stac_ipyleaflet.stac_discovery.stac_widget import StacDiscoveryWidget
from importlib.resources import files
from IPython.display import display
import ipywidgets
Expand Down
4 changes: 2 additions & 2 deletions stac_ipyleaflet/stac_discovery/stac_widget.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ipywidgets import VBox, Output, Layout, Text, ToggleButtons, Dropdown, DatePicker, HBox, Textarea, Checkbox
import pandas as pd
import ipyevents
from importlib.resources import files
from datetime import datetime
from pathlib import Path
from typing import Any
Expand All @@ -21,7 +21,7 @@ def template(self) -> VBox():
padding = "0px 0px 0px 5px"
style = {"description_width": "initial"}

nasa_cmr_path = Path("stac_ipyleaflet/stac_discovery/catalogs/nasa_maap_stac.tsv")
nasa_cmr_path = files("stac_ipyleaflet") / "stac_discovery" / "catalogs" / "nasa_maap_stac.tsv"
stac_info = {
"MAAP STAC": {
"filename": nasa_cmr_path,
Expand Down

0 comments on commit 2bc5e15

Please sign in to comment.