Skip to content

Commit b935d0d

Browse files
Update PyTensor dependency
Drops support for Python 3.10 and Numpy<2.0 Co-authored-by: Jesse Grabowski <[email protected]>
1 parent 4e76f0d commit b935d0d

32 files changed

+47
-45
lines changed

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
environment-file: conda-envs/environment-test.yml
2121
create-args: >-
22-
python=3.10
22+
python=3.11
2323
environment-name: pymc-test
2424
init-shell: bash
2525
cache-environment: true

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ jobs:
185185
matrix:
186186
os: [windows-latest]
187187
floatx: [float64]
188-
python-version: ["3.10"]
188+
python-version: ["3.11"]
189189
test-subset:
190190
- tests/variational/test_approximations.py tests/variational/test_callbacks.py tests/variational/test_inference.py tests/variational/test_opvi.py tests/test_initial_point.py
191191
- tests/model/test_core.py tests/sampling/test_mcmc.py

conda-envs/environment-alternative-backends.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
- numpyro>=0.8.0
2323
- pandas>=0.24.0
2424
- pip
25-
- pytensor>=2.32.0,<2.33
25+
- pytensor>=2.35.0,<2.36
2626
- python-graphviz
2727
- networkx
2828
- rich>=13.7.1

conda-envs/environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- numpy>=1.25.0
1313
- pandas>=0.24.0
1414
- pip
15-
- pytensor>=2.32.0,<2.33
15+
- pytensor>=2.35.0,<2.36
1616
- python-graphviz
1717
- networkx
1818
- scipy>=1.4.1

conda-envs/environment-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- numpy>=1.25.0
1212
- pandas>=0.24.0
1313
- pip
14-
- pytensor>=2.32.0,<2.33
14+
- pytensor>=2.35.0,<2.36
1515
- python-graphviz
1616
- rich>=13.7.1
1717
- scipy>=1.4.1

conda-envs/environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
- pandas>=0.24.0
1515
- pip
1616
- polyagamma
17-
- pytensor>=2.32.0,<2.33
17+
- pytensor>=2.35.0,<2.36
1818
- python-graphviz
1919
- networkx
2020
- rich>=13.7.1

conda-envs/windows-environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- numpy>=1.25.0
1313
- pandas>=0.24.0
1414
- pip
15-
- pytensor>=2.32.0,<2.33
15+
- pytensor>=2.35.0,<2.36
1616
- python-graphviz
1717
- networkx
1818
- rich>=13.7.1

conda-envs/windows-environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- pandas>=0.24.0
1616
- pip
1717
- polyagamma
18-
- pytensor>=2.32.0,<2.33
18+
- pytensor>=2.35.0,<2.36
1919
- python-graphviz
2020
- networkx
2121
- rich>=13.7.1

pymc/distributions/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
from pytensor import Variable, clone_replace
2020
from pytensor import tensor as pt
21-
from pytensor.graph.basic import io_toposort
2221
from pytensor.graph.features import ReplaceValidate
2322
from pytensor.graph.rewriting.basic import GraphRewriter
23+
from pytensor.graph.traversal import io_toposort
2424
from pytensor.scan.op import Scan
2525
from pytensor.tensor import TensorVariable, as_tensor_variable
2626
from pytensor.tensor.random.op import RandomVariable

pymc/distributions/timeseries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
import pytensor
2222
import pytensor.tensor as pt
2323

24-
from pytensor.graph.basic import Apply, ancestors
24+
from pytensor.graph.basic import Apply
2525
from pytensor.graph.replace import clone_replace
26+
from pytensor.graph.traversal import ancestors
2627
from pytensor.tensor import TensorVariable
2728
from pytensor.tensor.random.op import RandomVariable
2829
from pytensor.tensor.random.utils import normalize_size_param

0 commit comments

Comments
 (0)