Skip to content

Pin SciPy to >=1.7.3,<1.8.0 #5450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
+ `pm.Lognormal` is now available as an alias for `pm.Lognormal` (see [#5389](https://github.com/pymc-devs/pymc/pull/5389)).

### Bugfixes
+ The upper limit for the SciPy version is `<1.8.0` and will most probably remain for all future `3.x.x` releases. For compatibility with newer SciPy versions please update to `pymc>=4.0.0`. Also see [#5448](https://github.com/pymc-devs/pymc/pull/5448).
+ A hotfix is applied on import to remain compatible with NumPy 1.22 (see [#5316](https://github.com/pymc-devs/pymc/pull/5316)).

## PyMC3 3.11.4 (20 August 2021)
Expand Down
5 changes: 2 additions & 3 deletions conda-envs/environment-dev-py37.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ dependencies:
- libblas=*=*mkl
- mkl-service
- nbsphinx>=0.4
- numpy=1.15
- numpy>=1.15,<1.22.2
- numpydoc<1.2
- pandas=0.24
- pip
- pre-commit>=2.8.0
- pytest-cov>=2.5
- pytest>=3.0
- python-graphviz
- python=3.7
- recommonmark>=0.4
- scipy=1.2
- scipy>=1.4.1,<1.8.0
- sphinx-autobuild>=0.7
- sphinx>=1.5
- watermark
Expand Down
2 changes: 2 additions & 0 deletions conda-envs/environment-dev-py38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- libblas=*=*mkl
- mkl-service
- nbsphinx>=0.4
- numpy>=1.15,<1.22.2
- numpydoc<1.2
- pip
- pre-commit>=2.8.0
Expand All @@ -16,6 +17,7 @@ dependencies:
- python-graphviz
- python=3.8
- recommonmark>=0.4
- scipy>=1.4.1,<1.8.0
- sphinx-autobuild>=0.7
- sphinx>=1.5
- watermark
Expand Down
2 changes: 2 additions & 0 deletions conda-envs/environment-dev-py39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- libblas=*=*mkl
- mkl-service
- nbsphinx>=0.4
- numpy>=1.15,<1.22.2
- numpydoc<1.2
- pip
- pre-commit>=2.8.0
Expand All @@ -16,6 +17,7 @@ dependencies:
- python-graphviz
- python=3.9
- recommonmark>=0.4
- scipy>=1.4.1,<1.8.0
- sphinx-autobuild>=0.7
- sphinx>=1.5
- watermark
Expand Down
2 changes: 2 additions & 0 deletions conda-envs/windows-environment-dev-py38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ dependencies:
# Extra stuff for dev, testing and docs build
- ipython>=7.16
- nbsphinx>=0.4
- numpy>=1.15,<1.22.2
- numpydoc<1.2
- pre-commit>=2.8.0
- pytest-cov>=2.5
- pytest>=3.0
- recommonmark>=0.4
- scipy>=1.4.1,<1.8.0
- sphinx-autobuild>=0.7
- sphinx>=1.5
- watermark
Expand Down
4 changes: 4 additions & 0 deletions pymc3/tests/test_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,10 @@ def modified_scipy_hypergeom_logcdf(value, N, k, n):
{"N": NatSmall, "k": NatSmall, "n": NatSmall},
)

@pytest.mark.xfail(
condition=(theano.config.floatX == "float32"),
reason="Fails on float32 due to a float casting problem in the logcdf",
)
def test_negative_binomial(self):
def scipy_mu_alpha_logpmf(value, mu, alpha):
return sp.nbinom.logpmf(value, alpha, 1 - mu / (mu + alpha))
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ deprecat
h5py>=2.7
ipython>=7.16
nbsphinx>=0.4
numpy>=1.15,<1.22.2
numpydoc<1.2
pre-commit>=2.8.0
pytest-cov>=2.5
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ cachetools>=4.2.1
deprecat
dill
fastprogress>=0.2.0
numpy>=1.15.0
numpy>=1.15.0,<1.22.2
pandas>=0.24.0
patsy>=0.5.1
scipy>=1.2.0
scipy>=1.7.3,<1.8.0
semver>=2.13.0
theano-pymc==1.1.2
typing-extensions>=3.7.4