提交 df999e20 authored 作者: Virgile Andreani's avatar Virgile Andreani 提交者: Ricardo Vieira

Drop Python 3.10

上级 b6a9b68e
...@@ -54,7 +54,7 @@ jobs: ...@@ -54,7 +54,7 @@ jobs:
if: ${{ needs.changes.outputs.changes == 'true' }} if: ${{ needs.changes.outputs.changes == 'true' }}
strategy: strategy:
matrix: matrix:
python-version: ["3.10", "3.13"] python-version: ["3.11", "3.13"]
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
with: with:
...@@ -75,7 +75,7 @@ jobs: ...@@ -75,7 +75,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: ["ubuntu-latest"] os: ["ubuntu-latest"]
python-version: ["3.10", "3.13"] python-version: ["3.11", "3.13"]
numpy-version: ["~=1.26.0", ">=2.0"] numpy-version: ["~=1.26.0", ">=2.0"]
fast-compile: [0, 1] fast-compile: [0, 1]
float32: [0, 1] float32: [0, 1]
...@@ -92,9 +92,9 @@ jobs: ...@@ -92,9 +92,9 @@ jobs:
- "tests/tensor/test_basic.py tests/tensor/test_inplace.py tests/tensor/conv" - "tests/tensor/test_basic.py tests/tensor/test_inplace.py tests/tensor/conv"
- "tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py" - "tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py"
exclude: exclude:
- python-version: "3.10" - python-version: "3.11"
fast-compile: 1 fast-compile: 1
- python-version: "3.10" - python-version: "3.11"
float32: 1 float32: 1
- fast-compile: 1 - fast-compile: 1
float32: 1 float32: 1
...@@ -117,7 +117,7 @@ jobs: ...@@ -117,7 +117,7 @@ jobs:
install-xarray: 0 install-xarray: 0
- install-numba: 1 - install-numba: 1
os: "ubuntu-latest" os: "ubuntu-latest"
python-version: "3.10" python-version: "3.11"
numpy-version: "~=2.1.0" numpy-version: "~=2.1.0"
fast-compile: 0 fast-compile: 0
float32: 0 float32: 0
...@@ -138,7 +138,7 @@ jobs: ...@@ -138,7 +138,7 @@ jobs:
part: "tests/link/numba/test_slinalg.py" part: "tests/link/numba/test_slinalg.py"
- install-jax: 1 - install-jax: 1
os: "ubuntu-latest" os: "ubuntu-latest"
python-version: "3.10" python-version: "3.11"
numpy-version: ">=2.0" numpy-version: ">=2.0"
fast-compile: 0 fast-compile: 0
float32: 0 float32: 0
...@@ -152,7 +152,7 @@ jobs: ...@@ -152,7 +152,7 @@ jobs:
part: "tests/link/jax" part: "tests/link/jax"
- install-torch: 1 - install-torch: 1
os: "ubuntu-latest" os: "ubuntu-latest"
python-version: "3.10" python-version: "3.11"
numpy-version: ">=2.0" numpy-version: ">=2.0"
fast-compile: 0 fast-compile: 0
float32: 0 float32: 0
...@@ -265,7 +265,7 @@ jobs: ...@@ -265,7 +265,7 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
persist-credentials: false persist-credentials: false
- name: Set up Python 3.10 - name: Set up Python 3.11
uses: mamba-org/setup-micromamba@v2 uses: mamba-org/setup-micromamba@v2
with: with:
environment-name: pytensor-test environment-name: pytensor-test
...@@ -281,7 +281,7 @@ jobs: ...@@ -281,7 +281,7 @@ jobs:
python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))' python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))'
python -c 'import pytensor; assert pytensor.config.blas__ldflags != "", "Blas flags are empty"' python -c 'import pytensor; assert pytensor.config.blas__ldflags != "", "Blas flags are empty"'
env: env:
PYTHON_VERSION: 3.10 PYTHON_VERSION: 3.11
- name: Download previous benchmark data - name: Download previous benchmark data
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
......
...@@ -3,7 +3,7 @@ channels: ...@@ -3,7 +3,7 @@ channels:
- conda-forge - conda-forge
- nodefaults - nodefaults
dependencies: dependencies:
- python=3.10 - python=3.11
- gcc_linux-64 - gcc_linux-64
- gxx_linux-64 - gxx_linux-64
- numpy - numpy
......
...@@ -7,7 +7,7 @@ name: pytensor-dev ...@@ -7,7 +7,7 @@ name: pytensor-dev
channels: channels:
- conda-forge - conda-forge
dependencies: dependencies:
- python>=3.10 - python>=3.11
- compilers - compilers
- numpy>=1.17.0 - numpy>=1.17.0
- scipy>=1,<2 - scipy>=1,<2
......
...@@ -7,7 +7,7 @@ name: pytensor-dev ...@@ -7,7 +7,7 @@ name: pytensor-dev
channels: channels:
- conda-forge - conda-forge
dependencies: dependencies:
- python>=3.10 - python>=3.11
- compilers - compilers
- numpy>=1.17.0 - numpy>=1.17.0
- scipy>=1,<2 - scipy>=1,<2
......
...@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta" ...@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "pytensor" name = "pytensor"
dynamic = ['version'] dynamic = ['version']
requires-python = ">=3.10,<3.14" requires-python = ">=3.11,<3.14"
authors = [{ name = "pymc-devs", email = "pymc.devs@gmail.com" }] authors = [{ name = "pymc-devs", email = "pymc.devs@gmail.com" }]
description = "Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs." description = "Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."
readme = "README.rst" readme = "README.rst"
...@@ -30,7 +30,6 @@ classifiers = [ ...@@ -30,7 +30,6 @@ classifiers = [
"Operating System :: Unix", "Operating System :: Unix",
"Operating System :: MacOS", "Operating System :: MacOS",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.13",
...@@ -169,7 +168,7 @@ lines-after-imports = 2 ...@@ -169,7 +168,7 @@ lines-after-imports = 2
[tool.mypy] [tool.mypy]
python_version = "3.10" python_version = "3.11"
ignore_missing_imports = true ignore_missing_imports = true
strict_equality = true strict_equality = true
warn_redundant_casts = true warn_redundant_casts = true
......
...@@ -21,10 +21,10 @@ jobs=$(gh api /repos/$owner/$repo/actions/runs/$latest_id/jobs --jq ' ...@@ -21,10 +21,10 @@ jobs=$(gh api /repos/$owner/$repo/actions/runs/$latest_id/jobs --jq '
| map({name: .name, run_id: .run_id, id: .id, started_at: .started_at, completed_at: .completed_at}) | map({name: .name, run_id: .run_id, id: .id, started_at: .started_at, completed_at: .completed_at})
') ')
# Skip 3.10, float32, and Benchmark tests # Skip oldest supported Python version, float32, and Benchmark tests
function skip_job() { function skip_job() {
name=$1 name=$1
if [[ $name == *"py3.10"* ]]; then if [[ $name == *"py3.11"* ]]; then
return 0 return 0
fi fi
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论