Skip to content

Commit

Permalink
Add explicit support for Python 3.13 (#648)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
garrison authored Nov 5, 2024
1 parent 0ecc244 commit 7757854
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_latest_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7757854

Please sign in to comment.