diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9677615206..931117f8d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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] @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: diff --git a/doc/environment.yml b/doc/environment.yml index d58af79cc6..e5008dff39 100644 --- a/doc/environment.yml +++ b/doc/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge - nodefaults dependencies: - - python=3.10 + - python=3.11 - gcc_linux-64 - gxx_linux-64 - numpy diff --git a/environment-osx-arm64.yml b/environment-osx-arm64.yml index c9dc703dcc..51744b13e7 100644 --- a/environment-osx-arm64.yml +++ b/environment-osx-arm64.yml @@ -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 diff --git a/environment.yml b/environment.yml index 9bdddfb6f6..c5f4f274a5 100644 --- a/environment.yml +++ b/environment.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index f37b3de84b..73bfc110e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "pymc.devs@gmail.com" }] description = "Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs." readme = "README.rst" @@ -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", @@ -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 diff --git a/scripts/slowest_tests/update-slowest-times-issue.sh b/scripts/slowest_tests/update-slowest-times-issue.sh index a87ce19ec3..02ab67f881 100644 --- a/scripts/slowest_tests/update-slowest-times-issue.sh +++ b/scripts/slowest_tests/update-slowest-times-issue.sh @@ -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