Skip to content

Commit

Permalink
Add Python 3.12 support (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
woodsp-ibm authored Dec 5, 2023
1 parent fa022c3 commit 9f85dbc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9, '3.10', 3.11]
python-version: [3.8, 3.9, '3.10', 3.11, 3.12]
include:
- os: macos-latest
python-version: 3.8
- os: macos-latest
python-version: 3.11
python-version: 3.12
- os: windows-latest
python-version: 3.8
- os: windows-latest
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.11]
python-version: [3.8, 3.12]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.11]
python-version: [3.8, 3.12]
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -276,14 +276,18 @@ jobs:
with:
name: ubuntu-latest-3.11
path: /tmp/u311
- uses: actions/download-artifact@v3
with:
name: ubuntu-latest-3.12
path: /tmp/u312
- uses: actions/download-artifact@v3
with:
name: macos-latest-3.8
path: /tmp/m38
- uses: actions/download-artifact@v3
with:
name: macos-latest-3.11
path: /tmp/m311
name: macos-latest-3.12
path: /tmp/m312
- uses: actions/download-artifact@v3
with:
name: windows-latest-3.8
Expand All @@ -297,7 +301,7 @@ jobs:
shell: bash
- name: Combined Deprecation Messages
run: |
sort -f -u /tmp/u38/alg.dep /tmp/u39/alg.dep /tmp/u310/alg.dep /tmp/u311/alg.dep /tmp/m38/alg.dep /tmp/m311/alg.dep /tmp/w38/alg.dep /tmp/w311/alg.dep || true
sort -f -u /tmp/u38/alg.dep /tmp/u39/alg.dep /tmp/u310/alg.dep /tmp/u311/alg.dep /tmp/u312/alg.dep /tmp/m38/alg.dep /tmp/m312/alg.dep /tmp/w38/alg.dep /tmp/w311/alg.dep || true
shell: bash
- name: Coverage combine
run: coverage3 combine /tmp/u38/alg.dat
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/py_3_12_support-13aa1a32494d25e7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
Added support for using Qiskit Algorithms with Python 3.12.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
],
keywords="qiskit sdk quantum algorithms",
Expand Down

0 comments on commit 9f85dbc

Please sign in to comment.