From 7ffbdc816e89b281a9bc7d81edbc316b37face6b Mon Sep 17 00:00:00 2001 From: "Komarova, Evseniia" Date: Thu, 21 Aug 2025 18:00:07 +0200 Subject: [PATCH] Add Python 3.13 build --- .github/workflows/build-with-clang.yml | 2 +- .github/workflows/build_pip.yaml | 2 +- .github/workflows/conda-package.yml | 14 +++++++------- CHANGELOG.md | 1 + pyproject.toml | 3 ++- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-with-clang.yml b/.github/workflows/build-with-clang.yml index a531ed1..3810dc5 100644 --- a/.github/workflows/build-with-clang.yml +++ b/.github/workflows/build-with-clang.yml @@ -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: diff --git a/.github/workflows/build_pip.yaml b/.github/workflows/build_pip.yaml index dc89c95..0eef846 100644 --- a/.github/workflows/build_pip.yaml +++ b/.github/workflows/build_pip.yaml @@ -17,7 +17,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: diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 190effc..6050bd8 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -18,7 +18,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 @@ -48,7 +48,7 @@ jobs: run: echo $CONDA/bin >> $GITHUB_PATH - name: Install conda-build - run: conda install conda-build python=3.12 + run: conda install conda-build - name: Build conda package run: | @@ -75,7 +75,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 }} @@ -90,7 +90,7 @@ jobs: - name: Add conda to system path run: echo $CONDA/bin >> $GITHUB_PATH - name: Install conda-build - run: conda install conda-build python=3.12 + run: conda install conda-build - name: Create conda channel run: | mkdir -p $GITHUB_WORKSPACE/channel/linux-64 @@ -146,7 +146,7 @@ jobs: strategy: matrix: - python: ["3.9", "3.10", "3.11", "3.12"] + python: ["3.9", "3.10", "3.11", "3.12", "3.13"] env: conda-bld: C:\Miniconda\conda-bld\win-64\ steps: @@ -187,7 +187,7 @@ jobs: - name: Install conda build run: | conda activate - conda install -y conda-build python=3.12 + conda install -y conda-build conda list -n base - name: Build conda package @@ -209,7 +209,7 @@ jobs: shell: cmd /C CALL {0} 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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index ff78768..c58cb1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added * Added mkl implementation for floating point data-types of `exp2`, `log2`, `fabs`, `copysign`, `nextafter`, `fmax`, `fmin` and `remainder` functions [gh-81](https://github.com/IntelPython/mkl_umath/pull/81) * Added mkl implementation for complex data-types of `conjugate` and `absolute` functions [gh-86](https://github.com/IntelPython/mkl_umath/pull/86) +* Enabled support of Python 3.13 [gh-101](https://github.com/IntelPython/mkl_umath/pull/101) ## [0.2.0] (06/03/2025) This release updates `mkl_umath` to be aligned with both numpy-1.26.x and numpy-2.x.x. diff --git a/pyproject.toml b/pyproject.toml index 520743a..bf9cd2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,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", @@ -63,7 +64,7 @@ keywords = ["mkl_umath"] license = "BSD-3-Clause" name = "mkl_umath" readme = {file = "README.md", content-type = "text/markdown"} -requires-python = ">=3.9,<3.13" +requires-python = ">=3.9,<3.14" [project.optional-dependencies]