From cf3af4e14bfa65d6f1dc97a45f3295213e387a4d Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Wed, 22 Oct 2025 12:46:43 -0700 Subject: [PATCH] drop support for Python 3.9 bump minimum Python version to 3.10 --- .github/workflows/conda-package.yml | 12 ++++++------ .github/workflows/run-tests-from-dppy-bits.yaml | 4 ++-- cmake/dpctl-config.cmake | 2 +- pyproject.toml | 3 +-- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index e7f93692cf..15de40bc79 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -24,7 +24,7 @@ jobs: strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14'] steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1 @@ -85,7 +85,7 @@ jobs: strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14'] steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1 @@ -156,7 +156,7 @@ jobs: strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14'] experimental: [false] runner: [ubuntu-22.04] continue-on-error: ${{ matrix.experimental }} @@ -252,7 +252,7 @@ jobs: shell: cmd /C CALL {0} strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14'] experimental: [false] runner: [windows-latest] continue-on-error: ${{ matrix.experimental }} @@ -423,7 +423,7 @@ jobs: timeout-minutes: 20 strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14'] steps: - name: Download conda artifact uses: actions/download-artifact@v5 @@ -467,7 +467,7 @@ jobs: timeout-minutes: 20 strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14'] steps: - name: Download artifact uses: actions/download-artifact@v5 diff --git a/.github/workflows/run-tests-from-dppy-bits.yaml b/.github/workflows/run-tests-from-dppy-bits.yaml index 15f7213334..0ee861aea1 100644 --- a/.github/workflows/run-tests-from-dppy-bits.yaml +++ b/.github/workflows/run-tests-from-dppy-bits.yaml @@ -27,7 +27,7 @@ jobs: strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14'] experimental: [false] runner: [ubuntu-22.04, ubuntu-24.04] continue-on-error: ${{ matrix.experimental }} @@ -78,7 +78,7 @@ jobs: shell: cmd /C CALL {0} strategy: matrix: - python: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python: ['3.10', '3.11', '3.12', '3.13', '3.14'] experimental: [false] runner: [windows-latest] diff --git a/cmake/dpctl-config.cmake b/cmake/dpctl-config.cmake index fa3f136b47..ea2b72c903 100644 --- a/cmake/dpctl-config.cmake +++ b/cmake/dpctl-config.cmake @@ -20,7 +20,7 @@ # if(NOT Dpctl_FOUND) - find_package(Python 3.9 REQUIRED + find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module) if(Python_EXECUTABLE) diff --git a/pyproject.toml b/pyproject.toml index efb10b7f31..92be4c0771 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.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -58,7 +57,7 @@ keywords = [ license = "Apache-2.0" name = "dpctl" readme = {file = "README.md", content-type = "text/markdown"} -requires-python = ">=3.9" +requires-python = ">=3.10" [project.optional-dependencies] coverage = ["Cython", "pytest", "pytest-cov", "coverage", "tomli"]