From 38111d61eac7d33b6044315e7eb60aac26fb3230 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Mon, 4 May 2026 15:15:35 -0700 Subject: [PATCH 1/3] drop Python 3.10 --- .github/workflows/generate-docs.yml | 2 +- .github/workflows/run-tests-from-dppy-bits.yaml | 4 ++-- cmake/dpctl-config.cmake | 2 +- conda-recipe/conda_build_config.yaml | 1 - pyproject.toml | 3 +-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index 3e68540506..79ba36e6c3 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -53,7 +53,7 @@ jobs: if: ${{ !github.event.pull_request || github.event.action != 'closed' }} uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: - python-version: '3.10' + python-version: '3.11' architecture: x64 - name: Install sphinx dependencies if: ${{ !github.event.pull_request || github.event.action != 'closed' }} diff --git a/.github/workflows/run-tests-from-dppy-bits.yaml b/.github/workflows/run-tests-from-dppy-bits.yaml index 51105c85f2..59ec46b752 100644 --- a/.github/workflows/run-tests-from-dppy-bits.yaml +++ b/.github/workflows/run-tests-from-dppy-bits.yaml @@ -28,7 +28,7 @@ jobs: strategy: matrix: - python_spec: ['3.10', '3.11', '3.12', '3.13', '3.14.* *_cp314', '3.14.* *_cp314t', '3.15.* *_cp315', '3.15.* *_cp315t'] + python_spec: ['3.11', '3.12', '3.13', '3.14.* *_cp314', '3.14.* *_cp314t', '3.15.* *_cp315', '3.15.* *_cp315t'] runner: [ubuntu-22.04, ubuntu-24.04] steps: @@ -77,7 +77,7 @@ jobs: shell: cmd /C CALL {0} strategy: matrix: - python_spec: ['3.10', '3.11', '3.12', '3.13', '3.14.* *_cp314', '3.14.* *_cp314t', '3.15.* *_cp315', '3.15.* *_cp315t'] + python_spec: ['3.11', '3.12', '3.13', '3.14.* *_cp314', '3.14.* *_cp314t', '3.15.* *_cp315', '3.15.* *_cp315t'] runner: [windows-latest] env: workdir: '${{ github.workspace }}' diff --git a/cmake/dpctl-config.cmake b/cmake/dpctl-config.cmake index 2fc3197f2f..af3752c6ce 100644 --- a/cmake/dpctl-config.cmake +++ b/cmake/dpctl-config.cmake @@ -17,7 +17,7 @@ # if(NOT Dpctl_FOUND) - find_package(Python 3.10 REQUIRED + find_package(Python 3.11 REQUIRED COMPONENTS Interpreter Development.Module) if(Python_EXECUTABLE) diff --git a/conda-recipe/conda_build_config.yaml b/conda-recipe/conda_build_config.yaml index b9b33386e1..c1ff6fabaf 100644 --- a/conda-recipe/conda_build_config.yaml +++ b/conda-recipe/conda_build_config.yaml @@ -1,6 +1,5 @@ # Python versions for ci/matrix.py, one per line, without selectors python: - - "3.10.* *_cpython" - "3.11.* *_cpython" - "3.12.* *_cpython" - "3.13.* *_cp313" diff --git a/pyproject.toml b/pyproject.toml index 8b1ad79d77..284fa572f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,6 @@ classifiers = [ "Programming Language :: C", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", @@ -59,7 +58,7 @@ keywords = [ license = "Apache-2.0" name = "dpctl" readme = { file = "README.md", content-type = "text/markdown" } -requires-python = ">=3.10" +requires-python = ">=3.11" [project.optional-dependencies] benchmark = ["asv>=0.6", "numpy"] From 29a0df4890f782373e3e7cc19823d08fff4c647e Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Wed, 2 Dec 2026 15:36:19 -0800 Subject: [PATCH 2/3] add gh-2424 to the changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36469b7c3f..2cbd0eaec8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed * Removed the deprecated `dpctl.program` submodule, use `dpctl.compiler` instead [gh-2407](https://github.com/IntelPython/dpctl/pull/2407) +* Removed support for Python 3.10 [gh-2424](https://github.com/IntelPython/dpctl/pull/2424) ### Fixed * Removed stale `select_host_device` and `has_host_device` names from `dpctl.__all__`, which made `from dpctl import *` fail with `AttributeError` [gh-2410](https://github.com/IntelPython/dpctl/pull/2410) From e1a320302efbd16ae88327d9ece0b1fcdc60c51c Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Thu, 3 Dec 2026 11:38:37 -0800 Subject: [PATCH 3/3] drop tomli now that Python 3.11 is the minimum tomllib is always available, so the backport is no longer needed in the coverage extra, the conda recipe, or the codespell hook --- .pre-commit-config.yaml | 2 -- conda-recipe/meta.yaml | 2 -- pyproject.toml | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24432d5c40..73a302a606 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -50,8 +50,6 @@ repos: hooks: - id: codespell args: ["-L", "ba,som,xWindows"] # ignore some variable names - additional_dependencies: - - tomli exclude: "docs/doxyrest-config.lua.in" - repo: https://github.com/psf/black rev: 26.10.1 diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index dc1095d3d1..0a4459221f 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -42,8 +42,6 @@ requirements: - numpy # WARNING: check with doc how to upgrade - versioneer ==0.29 - # versioneer dependency - - tomli # [py<311] run: - python - {{ pin_compatible('intel-sycl-rt', min_pin='x.x', max_pin='x') }} diff --git a/pyproject.toml b/pyproject.toml index 284fa572f2..d5f9f0af32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ requires-python = ">=3.11" [project.optional-dependencies] benchmark = ["asv>=0.6", "numpy"] -coverage = ["Cython>=3.1.0", "pytest", "coverage", "tomli"] +coverage = ["Cython>=3.1.0", "pytest", "coverage"] docs = [ "Cython>=3.1.0", "graphviz",