Skip to content

Commit 6955631

Browse files
ricardoV94twiecki
authored andcommitted
Bump PyTensor version and drop Python 3.9
1 parent 034b9a4 commit 6955631

12 files changed

+14
-15
lines changed

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
1515
- uses: actions/setup-python@v5
1616
with:
17-
python-version: "3.9" # Run pre-commit on oldest supported Python version
17+
python-version: "3.10" # Run pre-commit on oldest supported Python version
1818
- uses: pre-commit/[email protected]
1919
mypy:
2020
runs-on: ubuntu-latest
@@ -52,7 +52,7 @@ jobs:
5252
activate-environment: pymc-test
5353
channel-priority: strict
5454
environment-file: conda-envs/environment-test.yml
55-
python-version: "3.9" # Run pre-commit on oldest supported Python version
55+
python-version: "3.10" # Run pre-commit on oldest supported Python version
5656
use-mamba: true
5757
use-only-tar-bz2: false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
5858
- name: Install-pymc and mypy dependencies

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
matrix:
189189
os: [windows-latest]
190190
floatx: [float64]
191-
python-version: ["3.9"]
191+
python-version: ["3.10"]
192192
test-subset:
193193
- 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
194194
- tests/model/test_core.py tests/sampling/test_mcmc.py

conda-envs/environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
- numpy>=1.15.0
1414
- pandas>=0.24.0
1515
- pip
16-
- pytensor>=2.19,<2.20
16+
- pytensor>=2.20,<2.21
1717
- python-graphviz
1818
- networkx
1919
- 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.15.0
1212
- pandas>=0.24.0
1313
- pip
14-
- pytensor>=2.19,<2.20
14+
- pytensor>=2.20,<2.21
1515
- python-graphviz
1616
- rich>=13.7.1
1717
- scipy>=1.4.1

conda-envs/environment-jax.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies:
2020
- numpyro>=0.8.0
2121
- pandas>=0.24.0
2222
- pip
23-
- pytensor>=2.19,<2.20
23+
- pytensor>=2.20,<2.21
2424
- python-graphviz
2525
- networkx
2626
- rich>=13.7.1

conda-envs/environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- numpy>=1.15.0
1717
- pandas>=0.24.0
1818
- pip
19-
- pytensor>=2.19,<2.20
19+
- pytensor>=2.20,<2.21
2020
- python-graphviz
2121
- networkx
2222
- rich>=13.7.1

conda-envs/windows-environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
- numpy>=1.15.0
1414
- pandas>=0.24.0
1515
- pip
16-
- pytensor>=2.19,<2.20
16+
- pytensor>=2.20,<2.21
1717
- python-graphviz
1818
- networkx
1919
- rich>=13.7.1

conda-envs/windows-environment-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- numpy>=1.15.0
1717
- pandas>=0.24.0
1818
- pip
19-
- pytensor>=2.19,<2.20
19+
- pytensor>=2.20,<2.21
2020
- python-graphviz
2121
- networkx
2222
- rich>=13.7.1

pymc/pytensorf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
from pytensor.tensor.rewriting.shape import ShapeFeature
5454
from pytensor.tensor.sharedvar import SharedVariable, TensorSharedVariable
5555
from pytensor.tensor.subtensor import AdvancedIncSubtensor, AdvancedIncSubtensor1
56-
from pytensor.tensor.variable import TensorConstant, TensorVariable
56+
from pytensor.tensor.variable import TensorVariable
5757

5858
from pymc.exceptions import NotConstantValueError
5959
from pymc.util import makeiter
@@ -245,7 +245,7 @@ def inputvars(a):
245245
return [
246246
v
247247
for v in graph_inputs(makeiter(a))
248-
if isinstance(v, TensorVariable) and not isinstance(v, TensorConstant)
248+
if isinstance(v, Variable) and not isinstance(v, Constant | SharedVariable)
249249
]
250250

251251

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ numpydoc
1717
pandas>=0.24.0
1818
polyagamma
1919
pre-commit>=2.8.0
20-
pytensor>=2.19,<2.20
20+
pytensor>=2.20,<2.21
2121
pytest-cov>=2.5
2222
pytest>=3.0
2323
rich>=13.7.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cachetools>=4.2.1
33
cloudpickle
44
numpy>=1.15.0
55
pandas>=0.24.0
6-
pytensor>=2.19,<2.20
6+
pytensor>=2.20,<2.21
77
rich>=13.7.1
88
scipy>=1.4.1
99
typing-extensions>=3.7.4

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"Development Status :: 5 - Production/Stable",
3131
"Programming Language :: Python",
3232
"Programming Language :: Python :: 3",
33-
"Programming Language :: Python :: 3.9",
3433
"Programming Language :: Python :: 3.10",
3534
"Programming Language :: Python :: 3.11",
3635
"Programming Language :: Python :: 3.12",
@@ -71,7 +70,7 @@
7170
# Also see MANIFEST.in
7271
# package_data={'docs': ['*']},
7372
classifiers=classifiers,
74-
python_requires=">=3.9",
73+
python_requires=">=3.10",
7574
install_requires=install_reqs,
7675
tests_require=test_reqs,
7776
)

0 commit comments

Comments
 (0)