Repository: numba/numba-scipy (language: python)

Issue:
update max SciPy to 1.7.0
As title


Discussion / hints:
My guess is that the CI config doesn't activate, because the changes need to be on master?

> Thanks for the patch, will the conda recipes also need updating?
> https://github.com/numba/numba-scipy/blob/9764341cf392090f08faa3052bc2a5d9b174e2d4/buildscripts/conda_recipes/numba-scipy/meta.yaml#L21-L30

fixed in ed96485dbf521a5a7b5a8eebf6f8299b2f71c1df
Fixes #66 
Thanks for this PR 👍 Is it possible to get this merged anytime soon?
@stuartarchibald I believe I have addressed everything in this pull-request. Let's get this merged and make a new PR if broken?
@de846 thank you for the ping on this issue.
@stuartarchibald thank you for approval, will merge now and see what happens.
So, after merging this, it seems like SciPy 1.7.0 isn't being picked up at all. Neither during build nor during  test:

During build I see:

```
Run conda install -c numba conda-build python=3.8 numba>=0.45 'scipy>=1.4,<=1.7.0' flake8 pytest pip
Obtaining file:///home/runner/work/numba-scipy/numba-scipy
Installing collected packages: numba-scipy
  Running setup.py develop for numba-scipy
Successfully installed numba-scipy
```

But this doesn't actually matter, because we do build with `conda-build` eventually. 

There we get:

```
Run conda build -c defaults -c numba --python 3.8 buildscripts/conda_recipes/numba-scipy/
...
    scipy:            1.6.2-py38had2a1c9_1     
```

Then during one of the test runs, I get:

```
Run conda install -c numba python=3.8 numba>=0.45 'scipy>=1.4,<=1.7.0' flake8 pytest
...
  scipy                     1.6.2            py38had2a1c9_1  
```

Probably it would make sense if someone else could confirm what I am seeing, to make sure I am not looking at the wrong output.
@esc is there a scipy 1.7.0 build in defaults?
> @esc is there a scipy 1.7.0 build in defaults?

Anaconda.org does seem to imply this exists:

https://anaconda.org/anaconda/scipy
I see, it's an off by one error, we should have used `1.7.1` not `1.7.0` apparently. I just tried making that change locally on my Mac and that got me the correct version.
> I see, it's an off by one error, we should have used `1.7.1` not `1.7.0` apparently. I just tried making that change locally on my Mac and that got me the correct version.

Correct version yes, but I was unable to complete the package build:

```
Traceback (most recent call last):
  File "/Users/vhaenel/miniconda3/bin/conda-build", line 11, in <module>
    sys.exit(main())
  File "/Users/vhaenel/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 474, in main
    execute(sys.argv[1:])
  File "/Users/vhaenel/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 465, in execute
    verify=args.verify, variants=args.variants)
  File "/Users/vhaenel/miniconda3/lib/python3.7/site-packages/conda_build/api.py", line 195, in build
    variants=variants
  File "/Users/vhaenel/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 3013, in build_tree
    notest=notest,
  File "/Users/vhaenel/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 2291, in build
    newly_built_packages = bundlers[pkg_type](output_d, m, env, stats)
  File "/Users/vhaenel/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 1565, in bundle_conda
    "run that executable.".format(dep, env_var_name))
conda_build.exceptions.CondaBuildException: Empty package; python present in build and host deps.  You probably picked up the build environment's python  executable.  You need to alter your recipe to  use the PYTHON env var in your recipe to run that executable.
```

Fix patch:
diff --git a/buildscripts/conda_recipes/numba-scipy/meta.yaml b/buildscripts/conda_recipes/numba-scipy/meta.yaml
index 249f084..6300639 100644
--- a/buildscripts/conda_recipes/numba-scipy/meta.yaml
+++ b/buildscripts/conda_recipes/numba-scipy/meta.yaml
@@ -18,16 +18,16 @@ requirements:
   host:
     - python
     - numba
-    - scipy<=1.7.0
+    - scipy<=1.7.1
     - setuptools
   run:
     - python
     - numba
-    - scipy<=1.7.0
+    - scipy<=1.7.1
 
 test:
   requires:
-    - scipy<=1.7.0
+    - scipy<=1.7.1
     - pytest
     - setuptools
     - faulthandler             # [py27 and (not (armv6l or armv7l))]
diff --git a/setup.py b/setup.py
index 3b9f8f6..86d3f44 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
 import versioneer
 
 
-_install_requires = ['scipy>=0.16,<=1.7.0', 'numba>=0.45']
+_install_requires = ['scipy>=0.16,<=1.7.1', 'numba>=0.45']
 
 
 metadata = dict(


Test patch:
diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml
index 9334d7f..5b54b41 100644
--- a/.github/workflows/test_and_deploy.yml
+++ b/.github/workflows/test_and_deploy.yml
@@ -18,7 +18,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        scipy-version: [">=0.16,<1.4", ">=1.4,<=1.7.0"]
+        scipy-version: [">=0.16,<1.4", ">=1.4,<=1.7.1"]
     steps:
       - name: Checkout
         uses: actions/checkout@v2
@@ -63,7 +63,7 @@ jobs:
     needs: build
     strategy:
       matrix:
-        scipy-version: [">=0.16,<1.4", ">=1.4,<=1.7.0"]
+        scipy-version: [">=0.16,<1.4", ">=1.4,<=1.7.1"]
         pyver: [3.6, 3.7, 3.8]
         runs-on: [macos-latest, ubuntu-latest, windows-latest]
     runs-on: ${{ matrix.runs-on }}