Open-EO / openeo-processes-python

A Python representation of (most) openEO processes
Apache License 2.0
11 stars 4 forks source link

Wrap difficult imports with try-except #121

Closed LukeWeidenwalker closed 2 years ago

LukeWeidenwalker commented 2 years ago

We've introduced the gdal dependency in https://github.com/Open-EO/openeo-processes-python/pull/108, but this cannot be (easily) installed by pip. This prevents running the tests from my current dev environment, wrapping it in try/except is a hack to enable running the tests without gdal installed. I'll revamp how to build this repo as part of #99 as soon as I get time, so this is a very temporary quality-of-life fix.

Removing the code-coverage line, because it messes up test discovery with pytest. This isn't a root-cause fix, but we're not using code coverage at all, so no point to spend time on fixing this right now.