Repository: dask/dask
Pull request #9655 (2022-11-14 18:56:13)

Run `upstream` build with Python 3.10
Possibly closes https://github.com/dask/dask/issues/9654


Patch:
diff --git a/.github/workflows/additional.yml b/.github/workflows/additional.yml
index 6e91e9bbe..7f4441ff0 100644
--- a/.github/workflows/additional.yml
+++ b/.github/workflows/additional.yml
@@ -49,8 +49,8 @@ jobs:
           miniforge-version: latest
           use-mamba: true
           channel-priority: strict
-          python-version: "3.9"
-          environment-file: continuous_integration/environment-3.9.yaml
+          python-version: "3.10"
+          environment-file: continuous_integration/environment-3.10.yaml
           activate-environment: test-environment
           auto-activate-base: false
 
diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml
index f961de69e..978970d81 100644
--- a/.github/workflows/upstream.yml
+++ b/.github/workflows/upstream.yml
@@ -51,8 +51,8 @@ jobs:
           miniforge-version: latest
           use-mamba: true
           channel-priority: strict
-          python-version: "3.9"
-          environment-file: continuous_integration/environment-3.9.yaml
+          python-version: "3.10"
+          environment-file: continuous_integration/environment-3.10.yaml
           activate-environment: test-environment
           auto-activate-base: false
 
diff --git a/continuous_integration/environment-3.10.yaml b/continuous_integration/environment-3.10.yaml
index c028dc50c..87a5d148f 100644
--- a/continuous_integration/environment-3.10.yaml
+++ b/continuous_integration/environment-3.10.yaml
@@ -68,5 +68,8 @@ dependencies:
   - mmh3
   - jinja2
   - pip
+  # The nightly pyarrow / arrow-cpp packages currently don't install with latest
+  # protobuf / abseil, see https://github.com/dask/dask/issues/9449
+  - libprotobuf=3.19
   - pip:
     - git+https://github.com/dask/distributed
diff --git a/continuous_integration/environment-3.9.yaml b/continuous_integration/environment-3.9.yaml
index d762b116c..7340d5c9d 100644
--- a/continuous_integration/environment-3.9.yaml
+++ b/continuous_integration/environment-3.9.yaml
@@ -67,9 +67,6 @@ dependencies:
   - python-xxhash
   - mmh3
   - jinja2
-  # The nightly pyarrow / arrow-cpp packages currently don't install with latest
-  # protobuf / abseil, see https://github.com/dask/dask/issues/9449
-  - libprotobuf=3.19
   - pip
   - pip:
     - git+https://github.com/dask/distributed
diff --git a/dask/array/wrap.py b/dask/array/wrap.py
index 3ce8eef9a..e8dbac49c 100644
--- a/dask/array/wrap.py
+++ b/dask/array/wrap.py
@@ -202,6 +202,10 @@ if _full.__doc__ is not None:
         "array([0.1,  0.1,  0.1,  0.1,  0.1,  0.1])",
         "array([0.1, 0.1, 0.1, 0.1, 0.1, 0.1])",
     )
+    _full.__doc__ = _full.__doc__.replace(
+        ">>> np.full_like(y, [0, 0, 255])",
+        ">>> np.full_like(y, [0, 0, 255])  # doctest: +NORMALIZE_WHITESPACE",
+    )
 
 
 def full(shape, fill_value, *args, **kwargs):
diff --git a/docs/source/develop.rst b/docs/source/develop.rst
index 1efa14d3a..625823f26 100644
--- a/docs/source/develop.rst
+++ b/docs/source/develop.rst
@@ -108,7 +108,7 @@ pip or conda_
 
 ``conda``::
 
-  conda env create -n dask-dev -f continuous_integration/environment-3.9.yaml
+  conda env create -n dask-dev -f continuous_integration/environment-3.10.yaml
   conda activate dask-dev
   python -m pip install --no-deps -e .
 


Test patch:
diff --git a/dask/tests/test_docs.py b/dask/tests/test_docs.py
index 4bd196838..8e68455c1 100644
--- a/dask/tests/test_docs.py
+++ b/dask/tests/test_docs.py
@@ -8,7 +8,7 @@ def test_development_guidelines_matches_ci():
     development_doc_file = root_dir / "docs" / "source" / "develop.rst"
     additional_ci_file = root_dir / ".github" / "workflows" / "additional.yml"
     upstream_ci_file = root_dir / ".github" / "workflows" / "upstream.yml"
-    latest_env = "environment-3.9.yaml"
+    latest_env = "environment-3.10.yaml"
 
     for filename in [development_doc_file, additional_ci_file, upstream_ci_file]:
         with open(filename, encoding="utf8") as f: