From 48bb9054695b7b90731502bac9b23052dfa2543f Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Wed, 29 Oct 2025 13:02:35 -0700 Subject: [PATCH 1/4] Bump NumPy version in conda-package workflow to 2.3 --- .github/workflows/conda-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 5c237ac..679843b 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -113,9 +113,9 @@ jobs: - python: '3.10' numpy: '2.2' - python: '3.11' - numpy: '2.2' + numpy: '2.3' - python: '3.12' - numpy: '2.2' + numpy: '2.3' env: CHANNELS: -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels @@ -185,9 +185,9 @@ jobs: - python: '3.10' numpy: '2.2' - python: '3.11' - numpy: '2.2' + numpy: '2.3' - python: '3.12' - numpy: '2.2' + numpy: '2.3' env: CHANNELS: -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels From 24ec173a0e5213a226571203014e34f610b36d0b Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Wed, 29 Oct 2025 14:29:55 -0700 Subject: [PATCH 2/4] drop Python 3.9 --- .github/workflows/build-with-clang.yml | 4 ++-- .github/workflows/conda-package-cf.yml | 12 ++++++------ .github/workflows/conda-package.yml | 8 ++------ pyproject.toml | 3 +-- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-with-clang.yml b/.github/workflows/build-with-clang.yml index 5715d24..98c06a3 100644 --- a/.github/workflows/build-with-clang.yml +++ b/.github/workflows/build-with-clang.yml @@ -12,8 +12,8 @@ jobs: strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12", "3.13"] - numpy_version: ["numpy'<2'", "numpy'>=2'"] + python: ["3.10", "3.11", "3.12", "3.13"] + numpy_version: ["numpy'>=2'"] env: ONEAPI_ROOT: /opt/intel/oneapi diff --git a/.github/workflows/conda-package-cf.yml b/.github/workflows/conda-package-cf.yml index 743622b..fd24198 100644 --- a/.github/workflows/conda-package-cf.yml +++ b/.github/workflows/conda-package-cf.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12"] + python: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 with: @@ -66,7 +66,7 @@ jobs: strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12"] + python: ["3.10", "3.11", "3.12"] env: conda-bld: C:\Miniconda\conda-bld\win-64\ steps: @@ -108,8 +108,8 @@ jobs: strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12"] - numpy: ["1.26*", "2*"] + python: ["3.10", "3.11", "3.12"] + numpy: ["2*"] experimental: [false] runner: [ubuntu-latest] continue-on-error: ${{ matrix.experimental }} @@ -176,8 +176,8 @@ jobs: strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12"] - numpy: ["1.26*", "2*"] + python: ["3.10", "3.11", "3.12"] + numpy: ["2*"] experimental: [false] runner: [windows-latest] continue-on-error: ${{ matrix.experimental }} diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 679843b..8b480bf 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12"] + python: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 with: @@ -66,7 +66,7 @@ jobs: strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12"] + python: ["3.10", "3.11", "3.12", "3.13"] env: conda-bld: C:\Miniconda\conda-bld\win-64\ steps: @@ -108,8 +108,6 @@ jobs: strategy: matrix: include: - - python: '3.9' - numpy: '1.26' - python: '3.10' numpy: '2.2' - python: '3.11' @@ -180,8 +178,6 @@ jobs: strategy: matrix: include: - - python: '3.9' - numpy: '1.26' - python: '3.10' numpy: '2.2' - python: '3.11' diff --git a/pyproject.toml b/pyproject.toml index b0a133c..6bd503e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,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", @@ -60,7 +59,7 @@ keywords = ["MKL", "VSL", "true randomness", "pseudorandomness", license = "BSD-3-Clause" name = "mkl_random" readme = {file = "README.md", content-type = "text/markdown"} -requires-python = ">=3.9,<3.15" +requires-python = ">=3.10,<3.15" [project.optional-dependencies] test = ["pytest"] From 9390996a7509ac27e9b98b93ce9d273cd2fbc14a Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Thu, 30 Oct 2025 11:36:15 -0700 Subject: [PATCH 3/4] Update CHANGELOG --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c7af74..0e84b64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added * Enabled support of Python 3.14 [gh-79](https://github.com/IntelPython/mkl_random/pull/79) +### Removed +* Dropped support for Python 3.9 [gh-81](https://github.com/IntelPython/mkl_random/pull/81) + ## [1.3.0] (10/06/2025) ### Changed From d5049d73342fa0b8ec367274e240ac3399d332a6 Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Thu, 30 Oct 2025 12:28:08 -0700 Subject: [PATCH 4/4] Add Python 3.13 to conda-package workflows --- .github/workflows/conda-package-cf.yml | 54 +++++++++++++++++++------- .github/workflows/conda-package.yml | 28 +++++++------ 2 files changed, 56 insertions(+), 26 deletions(-) diff --git a/.github/workflows/conda-package-cf.yml b/.github/workflows/conda-package-cf.yml index fd24198..810873b 100644 --- a/.github/workflows/conda-package-cf.yml +++ b/.github/workflows/conda-package-cf.yml @@ -19,7 +19,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.10", "3.11", "3.12"] + include: + - python: "3.10" + numpy: "2.2" + - python: "3.11" + numpy: "2.3" + - python: "3.12" + numpy: "2.3" + - python: "3.13" + numpy: "2.3" steps: - uses: actions/checkout@v4 with: @@ -47,7 +55,7 @@ jobs: - name: Build conda package run: | CHANNELS="-c conda-forge --override-channels" - VERSIONS="--python ${{ matrix.python }} --numpy 2.0" + VERSIONS="--python ${{ matrix.python }} --numpy ${{ matrix.numpy }}" TEST="--no-test" conda build \ @@ -66,7 +74,15 @@ jobs: strategy: matrix: - python: ["3.10", "3.11", "3.12"] + include: + - python: "3.10" + numpy: "2.2" + - python: "3.11" + numpy: "2.3" + - python: "3.12" + numpy: "2.3" + - python: "3.13" + numpy: "2.3" env: conda-bld: C:\Miniconda\conda-bld\win-64\ steps: @@ -95,7 +111,7 @@ jobs: - name: Setup MSVC uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 - name: Build conda package - run: conda build --no-test --python ${{ matrix.python }} --numpy 2.0 -c conda-forge --override-channels conda-recipe-cf + run: conda build --no-test --python ${{ matrix.python }} --numpy ${{ matrix.numpy }} -c conda-forge --override-channels conda-recipe-cf - name: Upload artifact uses: actions/upload-artifact@v4 with: @@ -104,14 +120,19 @@ jobs: test_linux: needs: build_linux - runs-on: ${{ matrix.runner }} + runs-on: ubuntu-latest strategy: matrix: - python: ["3.10", "3.11", "3.12"] - numpy: ["2*"] - experimental: [false] - runner: [ubuntu-latest] + include: + - python: "3.10" + numpy: "2.2" + - python: "3.11" + numpy: "2.3" + - python: "3.12" + numpy: "2.3" + - python: "3.13" + numpy: "2.3" continue-on-error: ${{ matrix.experimental }} env: CHANNELS: -c conda-forge --override-channels @@ -172,14 +193,19 @@ jobs: test_windows: needs: build_windows - runs-on: ${{ matrix.runner }} + runs-on: windows-latest strategy: matrix: - python: ["3.10", "3.11", "3.12"] - numpy: ["2*"] - experimental: [false] - runner: [windows-latest] + include: + - python: "3.10" + numpy: "2.2" + - python: "3.11" + numpy: "2.3" + - python: "3.12" + numpy: "2.3" + - python: "3.13" + numpy: "2.3" continue-on-error: ${{ matrix.experimental }} env: CHANNELS: -c conda-forge --override-channels diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 8b480bf..bf570b0 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -108,12 +108,14 @@ jobs: strategy: matrix: include: - - python: '3.10' - numpy: '2.2' - - python: '3.11' - numpy: '2.3' - - python: '3.12' - numpy: '2.3' + - python: "3.10" + numpy: "2.2" + - python: "3.11" + numpy: "2.3" + - python: "3.12" + numpy: "2.3" + - python: "3.13" + numpy: "2.3" env: CHANNELS: -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels @@ -178,12 +180,14 @@ jobs: strategy: matrix: include: - - python: '3.10' - numpy: '2.2' - - python: '3.11' - numpy: '2.3' - - python: '3.12' - numpy: '2.3' + - python: "3.10" + numpy: "2.2" + - python: "3.11" + numpy: "2.3" + - python: "3.12" + numpy: "2.3" + - python: "3.13" + numpy: "2.3" env: CHANNELS: -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels