Skip to content
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

Drop Python 3.10 #1253

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
if: ${{ needs.changes.outputs.changes == 'true' }}
strategy:
matrix:
python-version: ["3.10", "3.13"]
python-version: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -75,7 +75,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10", "3.13"]
python-version: ["3.11", "3.13"]
numpy-version: ["~=1.26.0", ">=2.0"]
fast-compile: [0, 1]
float32: [0, 1]
Expand All @@ -93,9 +93,9 @@ jobs:
- "tests/tensor/test_basic.py tests/tensor/test_inplace.py"
- "tests/tensor/test_blas.py tests/tensor/test_elemwise.py tests/tensor/test_math_scipy.py"
exclude:
- python-version: "3.10"
- python-version: "3.11"
fast-compile: 1
- python-version: "3.10"
- python-version: "3.11"
float32: 1
- fast-compile: 1
float32: 1
Expand All @@ -117,7 +117,7 @@ jobs:
install-torch: 0
- install-numba: 1
os: "ubuntu-latest"
python-version: "3.10"
python-version: "3.11"
numpy-version: "~=2.1.0"
fast-compile: 0
float32: 0
Expand All @@ -131,7 +131,7 @@ jobs:
part: "tests/link/numba"
- install-jax: 1
os: "ubuntu-latest"
python-version: "3.10"
python-version: "3.11"
numpy-version: ">=2.0"
fast-compile: 0
float32: 0
Expand All @@ -145,7 +145,7 @@ jobs:
part: "tests/link/jax"
- install-torch: 1
os: "ubuntu-latest"
python-version: "3.10"
python-version: "3.11"
numpy-version: ">=2.0"
fast-compile: 0
float32: 0
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: mamba-org/setup-micromamba@v2
with:
environment-name: pytensor-test
Expand All @@ -266,7 +266,7 @@ jobs:
python -c 'import pytensor; print(pytensor.config.__str__(print_doc=False))'
python -c 'import pytensor; assert pytensor.config.blas__ldflags != "", "Blas flags are empty"'
env:
PYTHON_VERSION: 3.10
PYTHON_VERSION: 3.11
- name: Download previous benchmark data
uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion doc/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- nodefaults
dependencies:
- python=3.10
- python=3.11
- gcc_linux-64
- gxx_linux-64
- numpy
Expand Down
2 changes: 1 addition & 1 deletion environment-osx-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: pytensor-dev
channels:
- conda-forge
dependencies:
- python=>3.10
- python=>3.11
- compilers
- numpy>=1.17.0
- scipy>=1,<2
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: pytensor-dev
channels:
- conda-forge
dependencies:
- python>=3.10
- python>=3.11
- compilers
- numpy>=1.17.0
- scipy>=1,<2
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "pytensor"
dynamic = ['version']
requires-python = ">=3.10,<3.14"
requires-python = ">=3.11,<3.14"
authors = [{ name = "pymc-devs", email = "[email protected]" }]
description = "Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs."
readme = "README.rst"
Expand All @@ -30,7 +30,6 @@ classifiers = [
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand Down Expand Up @@ -169,7 +168,7 @@ lines-after-imports = 2


[tool.mypy]
python_version = "3.10"
python_version = "3.11"
ignore_missing_imports = true
strict_equality = true
warn_redundant_casts = true
Expand Down
6 changes: 1 addition & 5 deletions scripts/slowest_tests/update-slowest-times-issue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ 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})
')

# Skip 3.10, float32, and Benchmark tests
# Skip float32, and Benchmark tests
function skip_job() {
name=$1
if [[ $name == *"py3.10"* ]]; then
return 0
fi

if [[ $name == *"float32 1"* ]]; then
return 0
fi
Expand Down
Loading