-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
759 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Main CLI module.""" | ||
|
||
|
||
def main() -> None: | ||
"""Run provided CLI.""" | ||
try: | ||
from overturemaestro import __app_name__, cli | ||
except ImportError as exc: | ||
raise | ||
error_msg = ( | ||
"Missing optional dependencies required for the CLI." | ||
" Please install required packages using `pip install overturemaestro[cli]`." | ||
) | ||
raise ImportError(error_msg) from exc | ||
|
||
cli.app(prog_name=__app_name__) # pragma: no cover | ||
|
||
|
||
if __name__ == "__main__": # pragma: no cover | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
class QueryNotGeocodedError(ValueError): ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import geopandas as gpd | ||
from packaging import version | ||
|
||
GEOPANDAS_NEW_API = version.parse(gpd.__version__) >= version.parse("1.0.0") |
Oops, something went wrong.