Repository: SciTools/iris (language: python)

Issue:
Pin shapely
Should fix ReadTheDocs build fauilures https://readthedocs.org/projects/scitools-iris/builds/17821229/, see also here https://github.com/SciTools/cartopy/issues/2067 for a description of the error.


Discussion / hints:
From the output of the docs build, it looks like we are still getting shapely 1.8.3.
Although mamba installs 1.8.2, later on there is the command to install iris:
```
python -m pip install --upgrade --upgrade-strategy eager --no-cache-dir .[docs]
```
the output of which mentions installing a newer version of shapely:
```
Installing collected packages: xxhash, shapely, scitools-iris
  Attempting uninstall: xxhash
    Found existing installation: xxhash 0.0.0
    Uninstalling xxhash-0.0.0:
      Successfully uninstalled xxhash-0.0.0
  Attempting uninstall: shapely
    Found existing installation: Shapely 1.8.2
    Uninstalling Shapely-1.8.2:
      Successfully uninstalled Shapely-1.8.2
Successfully installed scitools-iris-3.2.2.dev187+dirty shapely-1.8.3 xxhash-3.0.0
```
(captured from https://readthedocs.org/projects/scitools-iris/builds/17822879/)

So we need to stop pip from installing that
Does `pip` use the `setup.cfg`?

Fix patch:
diff --git a/setup.cfg b/setup.cfg
index 2fe615e72a..25b0ecca5a 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -53,6 +53,7 @@ install_requires =
     netcdf4
     numpy>=1.19
     scipy
+    shapely<1.8.3
     xxhash
 packages = find_namespace:
 package_dir =


Test patch:
diff --git a/docs/src/whatsnew/latest.rst b/docs/src/whatsnew/latest.rst
index 13c5f069f0..abce4f520c 100644
--- a/docs/src/whatsnew/latest.rst
+++ b/docs/src/whatsnew/latest.rst
@@ -220,8 +220,9 @@ This document explains the changes made to Iris for this release
 #. `@trexfeathers`_ updated the install process to work with setuptools `>=v64`,
    making `v64` the minimum compatible version. (:pull:`4903`)
 
-#. `@stephenworsley`_ introduced the ``shapely < 1.8.3`` maximum pin, avoiding a
-   bug caused by its interaction with cartopy. (:pull:`4911`)
+#. `@stephenworsley`_ and `@trexfeathers`_ introduced the ``shapely < 1.8.3``
+   maximum pin, avoiding a bug caused by its interaction with cartopy.
+   (:pull:`4911`, :pull:`4917`)
 
 
 📚 Documentation