diff --git a/dev-environment.yml b/dev-environment.yml index d0cf75765..7d45fa5d3 100644 --- a/dev-environment.yml +++ b/dev-environment.yml @@ -29,7 +29,7 @@ dependencies: # Doc dependencies - sphinx - - pydata-sphinx-theme==0.13.3 + - pydata-sphinx-theme - sphinx-book-theme>=1.0 - sphinx-gallery - sphinx-design diff --git a/examples/analysis/point_extraction/reduction.py b/examples/analysis/point_extraction/reduction.py index 32496554c..5684b2c6b 100644 --- a/examples/analysis/point_extraction/reduction.py +++ b/examples/analysis/point_extraction/reduction.py @@ -52,7 +52,7 @@ coords = rast.coords(grid=True) x_closest = rast.copy(new_array=coords[0]).value_at_coords(x=x_coords, y=y_coords).squeeze() y_closest = rast.copy(new_array=coords[1]).value_at_coords(x=x_coords, y=y_coords).squeeze() -from shapely import box +from shapely.geometry import box geometry = [ box(x - 2 * rast.res[0], y - 2 * rast.res[1], x + 2 * rast.res[0], y + 2 * rast.res[1]) diff --git a/tests/test_doc.py b/tests/test_doc.py index 3e6cc1bb3..28aa90d10 100644 --- a/tests/test_doc.py +++ b/tests/test_doc.py @@ -12,10 +12,10 @@ class TestDocs: def test_build(self) -> None: """Try building the documentation and see if it works.""" - # Remove the build directory if it exists. - # Test only on Linux - if platform.system() == "Linux": + # Building the doc fails on Windows for the CLI section + if (platform.system() == "Linux") or (platform.system() == "Darwin"): + # Remove the build directory if it exists. if os.path.isdir(os.path.join(self.docs_dir, "build/")): shutil.rmtree(os.path.join(self.docs_dir, "build/"))