Skip to content

Permit building mkl_fft with Python 3.13 #164

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/build-with-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
numpy_version: ["numpy'<2'", "numpy'>=2'"]

env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_pip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
use_pre: ["", "--pre"]

steps:
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:

- name: Build conda package
run: |
pip install --no-cache-dir cython
pip install --no-cache-dir cython setuptools
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
export MKLROOT=${CONDA_PREFIX}
Expand Down
40 changes: 30 additions & 10 deletions .github/workflows/conda-package-cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
include:
- python: '3.9'
numpy: '2.0'
- python: '3.10'
numpy: '2.0'
- python: '3.11'
numpy: '2.2'
- python: '3.12'
numpy: '2.3'
- python: '3.13'
numpy: '2.3'
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
Expand Down Expand Up @@ -53,10 +63,10 @@ jobs:
- name: Install conda-build
run: conda install conda-build python=3.12

- name: Build conda package with NumPy 2.0
- name: Build conda package with NumPy 2.x
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 \
Expand All @@ -77,8 +87,8 @@ jobs:

strategy:
matrix:
python_ver: ['3.9', '3.10', '3.11', '3.12']
numpy: ['numpy"<2"', 'numpy">=2"']
python_ver: ['3.9', '3.10', '3.11', '3.12', '3.13']
numpy: ['numpy">=2"']
experimental: [false]
runner: [ubuntu-latest]
continue-on-error: ${{ matrix.experimental }}
Expand Down Expand Up @@ -147,7 +157,17 @@ jobs:

strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
include:
- python: '3.9'
numpy: '2.0'
- python: '3.10'
numpy: '2.0'
- python: '3.11'
numpy: '2.2'
- python: '3.12'
numpy: '2.3'
- python: '3.13'
numpy: '2.3'
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
Expand Down Expand Up @@ -184,10 +204,10 @@ jobs:
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0

- name: Build conda package with NumPy 2.0
- name: Build conda package with NumPy 2.x
run: |
conda activate
conda build --no-test --python ${{ matrix.python }} --numpy 2.0 -c conda-forge --override-channels conda-recipe-cf
conda build --no-test --python ${{ matrix.python }} --numpy ${{ matrix.numpy }} -c conda-forge --override-channels conda-recipe-cf

- name: Store conda paths as envs
shell: bash -l {0}
Expand All @@ -209,8 +229,8 @@ jobs:

strategy:
matrix:
python_ver: ['3.9', '3.10', '3.11', '3.12']
numpy: ['numpy"<2"', 'numpy">=2"']
python_ver: ['3.9', '3.10', '3.11', '3.12', '3.13']
numpy: ['numpy">=2"']
experimental: [false]
runner: [windows-latest]
continue-on-error: ${{ matrix.experimental }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
experimental: [false]
runner: [ubuntu-latest]
continue-on-error: ${{ matrix.experimental }}
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:

strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:

strategy:
matrix:
python: ['3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
experimental: [false]
runner: [windows-latest]
continue-on-error: ${{ matrix.experimental }}
Expand Down
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.0] (05/DD/2025)
## [dev] - YYYY-MM-DD

### Added
* Enabled support of Python 3.13 [gh-164](https://github.com/IntelPython/mkl_fft/pull/164)

### Changed

### Fixed

## [2.0.0] - 2025-06-03

### Added
* Added Hermitian FFT functions to SciPy interface `mkl_fft.interfaces.scipy_fft`: `hfft`, `ihfft`, `hfftn`, `ihfftn`, `hfft2`, and `ihfft2` [gh-161](https://github.com/IntelPython/mkl_fft/pull/161)
Expand All @@ -22,14 +31,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Fixed inconsistency of input and output arrays dtype for `irfft` function [gh-180](https://github.com/IntelPython/mkl_fft/pull/180)
* Fixed issues with `set_workers` function in SciPy interface `mkl_fft.interfaces.scipy_fft` [gh-183](https://github.com/IntelPython/mkl_fft/pull/183)

## [1.3.14] (04/10/2025)
## [1.3.14] - 2025-04-10

resolves gh-152 by adding an explicit `mkl-service` dependency to `mkl-fft` when building the wheel
to ensure the `mkl` Python module is always available at runtime

resolves gh-115, gh-116, gh-119, gh-135

## [1.3.13] (03/25/2025)
## [1.3.13] - 2025-03-25

Supported python versions are 3.9, 3.10, 3.11, 3.12

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
Expand All @@ -56,7 +57,7 @@ keywords = ["DFTI", "FFT", "Fourier", "MKL"]
license = "BSD-3-Clause"
name = "mkl_fft"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.9,<3.13"
requires-python = ">=3.9,<3.14"

[project.optional-dependencies]
scipy_interface = ["scipy>=1.10"]
Expand Down
Loading