From 7dd6a62a06c10195246bd2d9184f1449545c3fd1 Mon Sep 17 00:00:00 2001 From: "Edwin (Ed) Onuonga" Date: Sun, 22 Dec 2024 13:13:14 +0000 Subject: [PATCH] feat: add python v3.13 support (#253) * add python v3.13 to `.circleci/config.yml` * specify python conditional numba version * update trove classifier --- .circleci/config.yml | 4 ++-- mise.toml | 2 +- pyproject.toml | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5cadd5d..1b4d989 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,7 +46,7 @@ jobs: name: python/default steps: - coveralls/upload: - carryforward: 3.11, 3.12 + carryforward: 3.11, 3.12, 3.13 parallel_finished: true workflows: @@ -56,7 +56,7 @@ workflows: - tests: matrix: parameters: - version: ["3.11", "3.12"] + version: ["3.11", "3.12", "3.13"] - coverage: requires: - tests diff --git a/mise.toml b/mise.toml index 2854b1d..0fe0947 100644 --- a/mise.toml +++ b/mise.toml @@ -1,6 +1,6 @@ [tools] poetry = { version = 'latest', pyproject = 'pyproject.toml' } -python = '3.12' +python = '3.13' [env] _.python.venv = ".venv" diff --git a/pyproject.toml b/pyproject.toml index 7e86f3b..9cbc801 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,7 @@ classifiers = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Artificial Intelligence", @@ -64,8 +65,11 @@ requires = ['poetry-core~=1.0', 'Cython>=0.28.5'] build-backend = 'poetry.core.masonry.api' [tool.poetry.dependencies] -python = "^3.11,<3.13" -numba = ">=0.56,<1" +python = "^3.11" +numba = [ + { version = ">=0.56,<1", python = "^3.11,<3.13" }, + { version = ">=0.61.0rc2", python = ">=3.13" } +] numpy = ">=1.19.5,<3" hmmlearn = ">=0.2.8,<1" dtaidistance = "^2.3.10"