diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c57c3fd..dd30161 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ # This code is part of a Qiskit project. # -# (C) Copyright IBM 2022, 2023. +# (C) Copyright IBM 2022, 2024. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory @@ -115,12 +115,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 steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -210,20 +210,24 @@ jobs: with: name: ubuntu-latest-3.11 path: /tmp/f311 + - uses: actions/download-artifact@v3 + with: + name: ubuntu-latest-3.12 + path: /tmp/f312 - 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 - name: Install Dependencies run: pip install -U coverage coveralls diff-cover shell: bash - name: Combined Deprecation Messages run: | - sort -f -u /tmp/f38/fin.dep /tmp/f39/fin.dep /tmp/f310/fin.dep /tmp/f311/fin.dep /tmp/m38/fin.dep /tmp/m311/fin.dep || true + sort -f -u /tmp/f38/fin.dep /tmp/f39/fin.dep /tmp/f310/fin.dep /tmp/f311/fin.dep /tmp/f312/fin.dep /tmp/m38/fin.dep /tmp/m312/fin.dep || true shell: bash - name: Coverage combine run: coverage3 combine /tmp/f38/fin.dat diff --git a/constraints.txt b/constraints.txt index bd44a48..bba3992 100644 --- a/constraints.txt +++ b/constraints.txt @@ -1,2 +1 @@ numpy>=1.20.0 -rustworkx!=0.13.0;python_version<"3.8" diff --git a/releasenotes/notes/python-3.12-951eab86dddf803c.yaml b/releasenotes/notes/python-3.12-951eab86dddf803c.yaml new file mode 100644 index 0000000..a129143 --- /dev/null +++ b/releasenotes/notes/python-3.12-951eab86dddf803c.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Added support for Python 3.12. diff --git a/setup.py b/setup.py index 279b067..1a65b43 100644 --- a/setup.py +++ b/setup.py @@ -56,6 +56,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 nature chemistry physics pyscf", diff --git a/tox.ini b/tox.ini index a81da52..68a7f4b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.3.0 -envlist = py38, py39, py310, py311, lint +envlist = py38, py39, py310, py311, py312, lint skipsdist = True [testenv]