Skip to content

Commit

Permalink
Merge pull request #651 from ungarj/aiohttp_dependency
Browse files Browse the repository at this point in the history
add aiohttp to dependencies
  • Loading branch information
ungarj authored Sep 17, 2024
2 parents 952c36e + 6ffb568 commit f8ccd2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mapchete/commands/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def execute(
executor_getter: AbstractContextManager = Executor,
profiling: bool = False,
observers: Optional[List[ObserverProtocol]] = None,
retry_on_exception: Tuple[Type[Exception], Type[Exception]] = Exception,
retry_on_exception: Union[Tuple[Type[Exception], ...], Type[Exception]] = Exception,
cancel_on_exception: Type[Exception] = JobCancelledError,
retries: int = 0,
):
Expand Down
3 changes: 1 addition & 2 deletions mapchete/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from io import TextIOWrapper
from typing import IO, Generator, List, Optional, Set, TextIO, Tuple, Union

from aiohttp import BasicAuth
import fiona
import fsspec
import oyaml as yaml
Expand Down Expand Up @@ -175,8 +176,6 @@ def fs(self) -> fsspec.AbstractFileSystem:
elif self._path_str.startswith(("http://", "https://")):
username = self._storage_options.get("username")
if username:
from aiohttp import BasicAuth

auth = BasicAuth(
login=username,
password=self._storage_options.get("password", ""),
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: GIS",
]
dependencies = [
"aiohttp",
"cachetools",
"click-plugins",
"click-spinner",
Expand Down

6 comments on commit f8ccd2f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

missing coverage
FileStmtsMissCoverMissing
__init__.py300100% 
enums.py310100% 
errors.py170100% 
index.py1790100% 
log.py500100% 
path.py3850100% 
pretty.py160100% 
protocols.py140100% 
registered.py50100% 
settings.py320100% 
stac.py1470100% 
testing.py980100% 
tile.py1710100% 
timer.py370100% 
types.py2160100% 
validate.py630100% 
cli
   __init__.py00100% 
   main.py90100% 
   mpath.py820100% 
   options.py1270100% 
   progress_bar.py370100% 
cli/default
   __init__.py00100% 
   convert.py630100% 
   cp.py330100% 
   create.py360100% 
   execute.py420100% 
   formats.py190100% 
   index.py420100% 
   processes.py180100% 
   rm.py250100% 
   serve.py690100% 
   stac.py600100% 
commands
   __init__.py60100% 
   convert.py780100% 
   cp.py650100% 
   execute.py700100% 
   index.py340100% 
   observer.py90100% 
   parser.py890100% 
   rm.py440100% 
config
   __init__.py40100% 
   base.py3550100% 
   models.py1770100% 
   parse.py760100% 
   process_func.py890100% 
executor
   __init__.py170100% 
   base.py770100% 
   concurrent_futures.py700100% 
   dask.py1050100% 
   future.py820100% 
   sequential.py330100% 
   types.py130100% 
formats
   __init__.py30100% 
   base.py1740100% 
   drivers.py00100% 
   loaders.py430100% 
   protocols.py130100% 
   tools.py1530100% 
formats/default
   __init__.py00100% 
   _fiona_base.py510100% 
   flatgeobuf.py140100% 
   geojson.py120100% 
   gtiff.py1950100% 
   mapchete_input.py160100% 
   png.py660100% 
   png_hillshade.py560100% 
   raster_file.py850100% 
   tile_directory.py1010100% 
   vector_file.py750100% 
geometry
   __init__.py100100% 
   filter.py280100% 
   footprints.py390100% 
   latlon.py300100% 
   repair.py80100% 
   reproject.py690100% 
   segmentize.py230100% 
   shape.py90100% 
   transform.py280100% 
   types.py300100% 
io
   __init__.py70100% 
   _json.py60100% 
   _misc.py780100% 
   _path.py00100% 
   profiles.py60100% 
   vector.py2910100% 
io/raster
   __init__.py80100% 
   array.py1040100% 
   convert.py230100% 
   mosaic.py1020100% 
   open.py140100% 
   read.py1670100% 
   referenced_raster.py950100% 
   write.py1010100% 
processes
   __init__.py170100% 
   clip.py170100% 
   contours.py520100% 
   convert.py380100% 
   hillshade.py490100% 
processes/examples
   __init__.py00100% 
   example_process.py60100% 
processing
   __init__.py30100% 
   base.py2620100% 
   execute.py710100% 
   mp.py260100% 
   tasks.py2890100% 
   types.py450100% 
processing/profilers
   __init__.py50100% 
   memory.py600100% 
   requests.py250100% 
   time.py220100% 
static
   __init__.py00100% 
   process_template.py10100% 
TOTAL69670100% 

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

missing coverage
FileStmtsMissCoverMissing
__init__.py300100% 
enums.py310100% 
errors.py170100% 
index.py1790100% 
log.py500100% 
path.py3850100% 
pretty.py160100% 
protocols.py140100% 
registered.py50100% 
settings.py320100% 
stac.py1470100% 
testing.py980100% 
tile.py1710100% 
timer.py370100% 
types.py2160100% 
validate.py630100% 
cli
   __init__.py00100% 
   main.py90100% 
   mpath.py820100% 
   options.py1270100% 
   progress_bar.py370100% 
cli/default
   __init__.py00100% 
   convert.py630100% 
   cp.py330100% 
   create.py360100% 
   execute.py420100% 
   formats.py190100% 
   index.py420100% 
   processes.py180100% 
   rm.py250100% 
   serve.py690100% 
   stac.py600100% 
commands
   __init__.py60100% 
   convert.py780100% 
   cp.py650100% 
   execute.py700100% 
   index.py340100% 
   observer.py90100% 
   parser.py890100% 
   rm.py440100% 
config
   __init__.py40100% 
   base.py3550100% 
   models.py1770100% 
   parse.py760100% 
   process_func.py890100% 
executor
   __init__.py170100% 
   base.py770100% 
   concurrent_futures.py700100% 
   dask.py1050100% 
   future.py820100% 
   sequential.py330100% 
   types.py130100% 
formats
   __init__.py30100% 
   base.py1740100% 
   drivers.py00100% 
   loaders.py430100% 
   protocols.py130100% 
   tools.py1530100% 
formats/default
   __init__.py00100% 
   _fiona_base.py510100% 
   flatgeobuf.py140100% 
   geojson.py120100% 
   gtiff.py1950100% 
   mapchete_input.py160100% 
   png.py660100% 
   png_hillshade.py560100% 
   raster_file.py850100% 
   tile_directory.py1010100% 
   vector_file.py750100% 
geometry
   __init__.py100100% 
   filter.py280100% 
   footprints.py390100% 
   latlon.py300100% 
   repair.py80100% 
   reproject.py690100% 
   segmentize.py230100% 
   shape.py90100% 
   transform.py280100% 
   types.py300100% 
io
   __init__.py70100% 
   _json.py60100% 
   _misc.py780100% 
   _path.py00100% 
   profiles.py60100% 
   vector.py2910100% 
io/raster
   __init__.py80100% 
   array.py1040100% 
   convert.py230100% 
   mosaic.py1020100% 
   open.py140100% 
   read.py1670100% 
   referenced_raster.py950100% 
   write.py1010100% 
processes
   __init__.py170100% 
   clip.py170100% 
   contours.py520100% 
   convert.py380100% 
   hillshade.py490100% 
processes/examples
   __init__.py00100% 
   example_process.py60100% 
processing
   __init__.py30100% 
   base.py2620100% 
   execute.py710100% 
   mp.py260100% 
   tasks.py2890100% 
   types.py450100% 
processing/profilers
   __init__.py50100% 
   memory.py600100% 
   requests.py250100% 
   time.py220100% 
static
   __init__.py00100% 
   process_template.py10100% 
TOTAL69670100% 

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

missing coverage
FileStmtsMissCoverMissing
__init__.py300100% 
enums.py310100% 
errors.py170100% 
index.py1790100% 
log.py500100% 
path.py3850100% 
pretty.py160100% 
protocols.py140100% 
registered.py50100% 
settings.py320100% 
stac.py1470100% 
testing.py980100% 
tile.py1710100% 
timer.py370100% 
types.py2160100% 
validate.py630100% 
cli
   __init__.py00100% 
   main.py90100% 
   mpath.py820100% 
   options.py1270100% 
   progress_bar.py370100% 
cli/default
   __init__.py00100% 
   convert.py630100% 
   cp.py330100% 
   create.py360100% 
   execute.py420100% 
   formats.py190100% 
   index.py420100% 
   processes.py180100% 
   rm.py250100% 
   serve.py690100% 
   stac.py600100% 
commands
   __init__.py60100% 
   convert.py780100% 
   cp.py650100% 
   execute.py700100% 
   index.py340100% 
   observer.py90100% 
   parser.py890100% 
   rm.py440100% 
config
   __init__.py40100% 
   base.py3550100% 
   models.py1770100% 
   parse.py760100% 
   process_func.py890100% 
executor
   __init__.py170100% 
   base.py770100% 
   concurrent_futures.py700100% 
   dask.py1050100% 
   future.py820100% 
   sequential.py330100% 
   types.py130100% 
formats
   __init__.py30100% 
   base.py1740100% 
   drivers.py00100% 
   loaders.py430100% 
   protocols.py130100% 
   tools.py1530100% 
formats/default
   __init__.py00100% 
   _fiona_base.py510100% 
   flatgeobuf.py140100% 
   geojson.py120100% 
   gtiff.py1950100% 
   mapchete_input.py160100% 
   png.py660100% 
   png_hillshade.py560100% 
   raster_file.py850100% 
   tile_directory.py1010100% 
   vector_file.py750100% 
geometry
   __init__.py100100% 
   filter.py280100% 
   footprints.py390100% 
   latlon.py300100% 
   repair.py80100% 
   reproject.py690100% 
   segmentize.py230100% 
   shape.py90100% 
   transform.py280100% 
   types.py300100% 
io
   __init__.py70100% 
   _json.py60100% 
   _misc.py780100% 
   _path.py00100% 
   profiles.py60100% 
   vector.py2910100% 
io/raster
   __init__.py80100% 
   array.py1040100% 
   convert.py230100% 
   mosaic.py1020100% 
   open.py140100% 
   read.py1670100% 
   referenced_raster.py950100% 
   write.py1010100% 
processes
   __init__.py170100% 
   clip.py170100% 
   contours.py520100% 
   convert.py380100% 
   hillshade.py490100% 
processes/examples
   __init__.py00100% 
   example_process.py60100% 
processing
   __init__.py30100% 
   base.py2620100% 
   execute.py710100% 
   mp.py260100% 
   tasks.py2890100% 
   types.py450100% 
processing/profilers
   __init__.py50100% 
   memory.py600100% 
   requests.py250100% 
   time.py220100% 
static
   __init__.py00100% 
   process_template.py10100% 
TOTAL69670100% 

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

missing coverage
FileStmtsMissCoverMissing
__init__.py300100% 
enums.py310100% 
errors.py170100% 
index.py1790100% 
log.py500100% 
path.py3850100% 
pretty.py160100% 
protocols.py140100% 
registered.py50100% 
settings.py320100% 
stac.py1470100% 
testing.py980100% 
tile.py1710100% 
timer.py370100% 
types.py2160100% 
validate.py630100% 
cli
   __init__.py00100% 
   main.py90100% 
   mpath.py820100% 
   options.py1270100% 
   progress_bar.py370100% 
cli/default
   __init__.py00100% 
   convert.py630100% 
   cp.py330100% 
   create.py360100% 
   execute.py420100% 
   formats.py190100% 
   index.py420100% 
   processes.py180100% 
   rm.py250100% 
   serve.py690100% 
   stac.py600100% 
commands
   __init__.py60100% 
   convert.py780100% 
   cp.py650100% 
   execute.py700100% 
   index.py340100% 
   observer.py90100% 
   parser.py890100% 
   rm.py440100% 
config
   __init__.py40100% 
   base.py3550100% 
   models.py1770100% 
   parse.py760100% 
   process_func.py890100% 
executor
   __init__.py170100% 
   base.py770100% 
   concurrent_futures.py700100% 
   dask.py1050100% 
   future.py820100% 
   sequential.py330100% 
   types.py130100% 
formats
   __init__.py30100% 
   base.py1740100% 
   drivers.py00100% 
   loaders.py430100% 
   protocols.py130100% 
   tools.py1530100% 
formats/default
   __init__.py00100% 
   _fiona_base.py510100% 
   flatgeobuf.py140100% 
   geojson.py120100% 
   gtiff.py1950100% 
   mapchete_input.py160100% 
   png.py660100% 
   png_hillshade.py560100% 
   raster_file.py850100% 
   tile_directory.py1010100% 
   vector_file.py750100% 
geometry
   __init__.py100100% 
   filter.py280100% 
   footprints.py390100% 
   latlon.py300100% 
   repair.py80100% 
   reproject.py690100% 
   segmentize.py230100% 
   shape.py90100% 
   transform.py280100% 
   types.py300100% 
io
   __init__.py70100% 
   _json.py60100% 
   _misc.py780100% 
   _path.py00100% 
   profiles.py60100% 
   vector.py2910100% 
io/raster
   __init__.py80100% 
   array.py1040100% 
   convert.py230100% 
   mosaic.py1020100% 
   open.py140100% 
   read.py1670100% 
   referenced_raster.py950100% 
   write.py1010100% 
processes
   __init__.py170100% 
   clip.py170100% 
   contours.py520100% 
   convert.py380100% 
   hillshade.py490100% 
processes/examples
   __init__.py00100% 
   example_process.py60100% 
processing
   __init__.py30100% 
   base.py2620100% 
   execute.py710100% 
   mp.py260100% 
   tasks.py2890100% 
   types.py450100% 
processing/profilers
   __init__.py50100% 
   memory.py600100% 
   requests.py250100% 
   time.py220100% 
static
   __init__.py00100% 
   process_template.py10100% 
TOTAL69670100% 

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

missing coverage
FileStmtsMissCoverMissing
__init__.py300100% 
enums.py310100% 
errors.py170100% 
index.py1790100% 
log.py500100% 
path.py3850100% 
pretty.py160100% 
protocols.py140100% 
registered.py50100% 
settings.py320100% 
stac.py1470100% 
testing.py980100% 
tile.py1710100% 
timer.py370100% 
types.py2160100% 
validate.py630100% 
cli
   __init__.py00100% 
   main.py90100% 
   mpath.py820100% 
   options.py1270100% 
   progress_bar.py370100% 
cli/default
   __init__.py00100% 
   convert.py630100% 
   cp.py330100% 
   create.py360100% 
   execute.py420100% 
   formats.py190100% 
   index.py420100% 
   processes.py180100% 
   rm.py250100% 
   serve.py690100% 
   stac.py600100% 
commands
   __init__.py60100% 
   convert.py780100% 
   cp.py650100% 
   execute.py700100% 
   index.py340100% 
   observer.py90100% 
   parser.py890100% 
   rm.py440100% 
config
   __init__.py40100% 
   base.py3550100% 
   models.py1770100% 
   parse.py760100% 
   process_func.py890100% 
executor
   __init__.py170100% 
   base.py770100% 
   concurrent_futures.py700100% 
   dask.py1050100% 
   future.py820100% 
   sequential.py330100% 
   types.py130100% 
formats
   __init__.py30100% 
   base.py1740100% 
   drivers.py00100% 
   loaders.py430100% 
   protocols.py130100% 
   tools.py1530100% 
formats/default
   __init__.py00100% 
   _fiona_base.py510100% 
   flatgeobuf.py140100% 
   geojson.py120100% 
   gtiff.py1950100% 
   mapchete_input.py160100% 
   png.py660100% 
   png_hillshade.py560100% 
   raster_file.py850100% 
   tile_directory.py1010100% 
   vector_file.py750100% 
geometry
   __init__.py100100% 
   filter.py280100% 
   footprints.py390100% 
   latlon.py300100% 
   repair.py80100% 
   reproject.py690100% 
   segmentize.py230100% 
   shape.py90100% 
   transform.py280100% 
   types.py300100% 
io
   __init__.py70100% 
   _json.py60100% 
   _misc.py780100% 
   _path.py00100% 
   profiles.py60100% 
   vector.py2910100% 
io/raster
   __init__.py80100% 
   array.py1040100% 
   convert.py230100% 
   mosaic.py1020100% 
   open.py140100% 
   read.py1670100% 
   referenced_raster.py950100% 
   write.py1010100% 
processes
   __init__.py170100% 
   clip.py170100% 
   contours.py520100% 
   convert.py380100% 
   hillshade.py490100% 
processes/examples
   __init__.py00100% 
   example_process.py60100% 
processing
   __init__.py30100% 
   base.py2620100% 
   execute.py710100% 
   mp.py260100% 
   tasks.py2890100% 
   types.py450100% 
processing/profilers
   __init__.py50100% 
   memory.py600100% 
   requests.py250100% 
   time.py220100% 
static
   __init__.py00100% 
   process_template.py10100% 
TOTAL69670100% 

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

missing coverage
FileStmtsMissCoverMissing
__init__.py300100% 
enums.py310100% 
errors.py170100% 
index.py1790100% 
log.py500100% 
path.py3850100% 
pretty.py160100% 
protocols.py140100% 
registered.py50100% 
settings.py320100% 
stac.py1470100% 
testing.py980100% 
tile.py1710100% 
timer.py370100% 
types.py2160100% 
validate.py630100% 
cli
   __init__.py00100% 
   main.py90100% 
   mpath.py820100% 
   options.py1270100% 
   progress_bar.py370100% 
cli/default
   __init__.py00100% 
   convert.py630100% 
   cp.py330100% 
   create.py360100% 
   execute.py420100% 
   formats.py190100% 
   index.py420100% 
   processes.py180100% 
   rm.py250100% 
   serve.py690100% 
   stac.py600100% 
commands
   __init__.py60100% 
   convert.py780100% 
   cp.py650100% 
   execute.py700100% 
   index.py340100% 
   observer.py90100% 
   parser.py890100% 
   rm.py440100% 
config
   __init__.py40100% 
   base.py3550100% 
   models.py1770100% 
   parse.py760100% 
   process_func.py890100% 
executor
   __init__.py170100% 
   base.py770100% 
   concurrent_futures.py700100% 
   dask.py1050100% 
   future.py820100% 
   sequential.py330100% 
   types.py130100% 
formats
   __init__.py30100% 
   base.py1740100% 
   drivers.py00100% 
   loaders.py430100% 
   protocols.py130100% 
   tools.py1530100% 
formats/default
   __init__.py00100% 
   _fiona_base.py510100% 
   flatgeobuf.py140100% 
   geojson.py120100% 
   gtiff.py1950100% 
   mapchete_input.py160100% 
   png.py660100% 
   png_hillshade.py560100% 
   raster_file.py850100% 
   tile_directory.py1010100% 
   vector_file.py750100% 
geometry
   __init__.py100100% 
   filter.py280100% 
   footprints.py390100% 
   latlon.py300100% 
   repair.py80100% 
   reproject.py690100% 
   segmentize.py230100% 
   shape.py90100% 
   transform.py280100% 
   types.py300100% 
io
   __init__.py70100% 
   _json.py60100% 
   _misc.py780100% 
   _path.py00100% 
   profiles.py60100% 
   vector.py2910100% 
io/raster
   __init__.py80100% 
   array.py1040100% 
   convert.py230100% 
   mosaic.py1020100% 
   open.py140100% 
   read.py1670100% 
   referenced_raster.py950100% 
   write.py1010100% 
processes
   __init__.py170100% 
   clip.py170100% 
   contours.py520100% 
   convert.py380100% 
   hillshade.py490100% 
processes/examples
   __init__.py00100% 
   example_process.py60100% 
processing
   __init__.py30100% 
   base.py2620100% 
   execute.py710100% 
   mp.py260100% 
   tasks.py2890100% 
   types.py450100% 
processing/profilers
   __init__.py50100% 
   memory.py600100% 
   requests.py250100% 
   time.py220100% 
static
   __init__.py00100% 
   process_template.py10100% 
TOTAL69670100% 

Please sign in to comment.