Skip to content

Commit 82aeefc

Browse files
committed
Drop support for Python 3.8
1 parent ecaa07a commit 82aeefc

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
if: ${{ needs.changes.outputs.changes == 'true' }}
5353
strategy:
5454
matrix:
55-
python-version: ["3.8", "3.9", "3.10", "3.11"]
55+
python-version: ["3.9", "3.10", "3.11"]
5656
steps:
5757
- uses: actions/checkout@v3
5858
- uses: actions/setup-python@v4
@@ -70,7 +70,7 @@ jobs:
7070
strategy:
7171
fail-fast: false
7272
matrix:
73-
python-version: ["3.8", "3.11"]
73+
python-version: ["3.9", "3.11"]
7474
fast-compile: [0,1]
7575
float32: [0,1]
7676
install-numba: [0]
@@ -86,17 +86,17 @@ jobs:
8686
- "tests/tensor/test_basic.py tests/tensor/test_inplace.py"
8787
- "tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py"
8888
exclude:
89-
- python-version: "3.8"
89+
- python-version: "3.9"
9090
fast-compile: 1
91-
- python-version: "3.8"
91+
- python-version: "3.9"
9292
float32: 1
93-
- python-version: "3.8"
93+
- python-version: "3.9"
9494
part: "tests/tensor/test_math.py"
9595
- fast-compile: 1
9696
float32: 1
9797
include:
9898
- install-numba: 1
99-
python-version: "3.8"
99+
python-version: "3.9"
100100
fast-compile: 0
101101
float32: 0
102102
part: "tests/link/numba"
@@ -106,7 +106,7 @@ jobs:
106106
float32: 0
107107
part: "tests/link/numba"
108108
- install-jax: 1
109-
python-version: "3.8"
109+
python-version: "3.9"
110110
fast-compile: 0
111111
float32: 0
112112
part: "tests/link/jax"
@@ -140,11 +140,11 @@ jobs:
140140
shell: bash -l {0}
141141
run: |
142142
mamba install --yes -q "python~=${PYTHON_VERSION}=*_cpython" mkl numpy scipy pip mkl-service graphviz cython pytest coverage pytest-cov pytest-benchmark sympy
143-
# numba-scipy downgrades the installed scipy to 1.7.3 in Python 3.8, but
143+
# numba-scipy downgrades the installed scipy to 1.7.3 in Python 3.9, but
144144
# not numpy, even though scipy 1.7 requires numpy<1.23. When installing
145145
# PyTensor next, pip installs a lower version of numpy via the PyPI.
146-
if [[ $INSTALL_NUMBA == "1" ]] && [[ $PYTHON_VERSION == "3.8" ]]; then mamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" "numpy<1.23" "numba>=0.57" numba-scipy; fi
147-
if [[ $INSTALL_NUMBA == "1" ]] && [[ $PYTHON_VERSION != "3.8" ]]; then mamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" "numba>=0.57" numba-scipy; fi
146+
if [[ $INSTALL_NUMBA == "1" ]] && [[ $PYTHON_VERSION == "3.9" ]]; then mamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" "numpy<1.23" "numba>=0.57" numba-scipy; fi
147+
if [[ $INSTALL_NUMBA == "1" ]] && [[ $PYTHON_VERSION != "3.9" ]]; then mamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" "numba>=0.57" numba-scipy; fi
148148
if [[ $INSTALL_JAX == "1" ]]; then mamba install --yes -q -c conda-forge "python~=${PYTHON_VERSION}=*_cpython" jax jaxlib numpyro; fi
149149
pip install -e ./
150150
mamba list && pip freeze

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ name = "pytensor"
1212
dynamic = [
1313
'version'
1414
]
15-
requires-python = ">=3.8"
15+
requires-python = ">=3.9"
1616
authors = [
1717
{name = "pymc-devs", email = "[email protected]"}
1818
]
@@ -34,7 +34,6 @@ classifiers = [
3434
"Operating System :: Unix",
3535
"Operating System :: MacOS",
3636
"Programming Language :: Python :: 3",
37-
"Programming Language :: Python :: 3.8",
3837
"Programming Language :: Python :: 3.9",
3938
"Programming Language :: Python :: 3.10",
4039
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)