Closed greglucas closed 9 months ago
If the library can work fully without scipy installed, then I'd mark those tests to skip if the library isn't installed. pytest.importorskip
is probably helpful here.
I also think skipping the scipy tests is reasonable in this situation, given that: this is what is already done currently with fiona, and the CI test suite runs with the optional dependencies so those tests aren't neglected.
Description
Doing a clean install of Cartopy with
pip install .[test]
ends up with 5 failures and 3 errors due to missing scipy imports. We could either make these optional tests, or add scipy to the testing optional install. Further, would we want to add the other optional things to the test installation?test = ["cartopy[ows,plotting,speedups]", ...
i.e. should the testing option be as complete as possible, or should those truly only be if people want to test those branches?