From 77578545db3e1a1d064031018e7b10850cd0e0ac Mon Sep 17 00:00:00 2001 From: Jim Garrison Date: Tue, 5 Nov 2024 04:45:10 -0500 Subject: [PATCH] Add explicit support for Python 3.13 (#648) * Add explicit support for Python 3.13 * Ask setup-python to install a dev version of Python 3.13 https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-the-python-version-input * Fix CI scripts to work with prerelease versions of Python * Longer variable name * Update test_latest_versions.yml Remove `-dev` * Test on 3.13 across all operating systems * Revert win32 py313 --- .github/workflows/test_latest_versions.yml | 4 ++-- pyproject.toml | 1 + tox.ini | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_latest_versions.yml b/.github/workflows/test_latest_versions.yml index a53b1842c..1b29740c9 100644 --- a/.github/workflows/test_latest_versions.yml +++ b/.github/workflows/test_latest_versions.yml @@ -20,10 +20,10 @@ jobs: max-parallel: 4 matrix: os: [ubuntu-latest] - python-version: ["3.8", "3.12"] + python-version: ["3.8", "3.13"] include: - os: macos-latest - python-version: "3.12" + python-version: "3.13" - os: windows-latest python-version: "3.10" steps: diff --git a/pyproject.toml b/pyproject.toml index 7c259d09b..11e006e27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Scientific/Engineering :: Physics", ] diff --git a/tox.ini b/tox.ini index 4e2eb24d6..0dacf9f21 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.25 -envlist = py{38,39,310,311,312}{,-notebook}, lint, coverage, docs +envlist = py{38,39,310,311,312,313}{,-notebook}, lint, coverage, docs isolated_build = True [testenv] @@ -31,7 +31,7 @@ commands = pylint -rn qiskit_addon_cutting/ test/ nbqa pylint -rn docs/ -[testenv:{,py-,py3-,py38-,py39-,py310-,py311-,py312-}notebook] +[testenv:{,py-,py3-,py38-,py39-,py310-,py311-,py312-,py313-}notebook] extras = nbtest notebook-dependencies