From 02c1eec7eecb1e96ca417adaf8e163e2d4da1d90 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Mon, 29 Jan 2024 12:47:32 -0500 Subject: [PATCH 1/3] Support Python 3.12 --- .github/workflows/ci.yml | 2 +- pyproject.toml | 2 +- releasenotes/notes/python-3-12-support-a0390cacfe596e5b.yaml | 4 ++++ requirements-dev.txt | 1 - setup.py | 1 + tox.ini | 2 +- 6 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 releasenotes/notes/python-3-12-support-a0390cacfe596e5b.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7601abde1..112103463 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.8, 3.9, '3.10', '3.11'] + python-version: [3.8, 3.9, '3.10', '3.11', '3.12'] os: [ "macOS-latest", "ubuntu-latest", "windows-latest" ] env: LOG_LEVEL: DEBUG diff --git a/pyproject.toml b/pyproject.toml index 65b63d47c..ebb26241a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,4 +4,4 @@ build-backend = "setuptools.build_meta" [tool.black] line-length = 100 -target-versions = ['py38', 'py39', 'py310', 'py311'] +target-versions = ['py38', 'py39', 'py310', 'py311', 'py312'] diff --git a/releasenotes/notes/python-3-12-support-a0390cacfe596e5b.yaml b/releasenotes/notes/python-3-12-support-a0390cacfe596e5b.yaml new file mode 100644 index 000000000..9ff247953 --- /dev/null +++ b/releasenotes/notes/python-3-12-support-a0390cacfe596e5b.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Python 3.12 is now supported. diff --git a/requirements-dev.txt b/requirements-dev.txt index 61ee53c7e..03f4af164 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -12,7 +12,6 @@ websockets>=8 black~=22.0 coverage>=6.3 pylatexenc -mthree scikit-learn ddt>=1.2.0,!=1.4.0,!=1.4.3 diff --git a/setup.py b/setup.py index 273fb9768..fdedff37b 100644 --- a/setup.py +++ b/setup.py @@ -64,6 +64,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 api runtime ibm", diff --git a/tox.ini b/tox.ini index f2662be4b..f219e404e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.15 -envlist = py38, py39, py310, py311, lint, docs +envlist = py38, py39, py310, py311, py312, lint, docs isolated_build = True [testenv] From 0dc88cdecc18c0276f99430a87e0989a7cab1113 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Mon, 29 Jan 2024 13:09:20 -0500 Subject: [PATCH 2/3] update requirments --- requirements-dev.txt | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 03f4af164..0218c540d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ mypy==0.931 -pylint==2.16.2 +pylint==3.0.0 pproxy==2.7.8 nbqa==1.5.3 matplotlib>=2.1 diff --git a/requirements.txt b/requirements.txt index 9203f9632..476bc1060 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,3 +8,4 @@ websocket-client>=1.5.1 typing-extensions>=4.0.0 ibm-platform-services>=0.22.6 qiskit-ibm-provider>=0.8.0 +setuptools>=68.0.0 \ No newline at end of file From 1285c9013d4debb02ad01ed49f535074a618fd6a Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Mon, 29 Jan 2024 13:18:08 -0500 Subject: [PATCH 3/3] update requirements --- requirements-dev.txt | 1 + requirements.txt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 0218c540d..7236cd015 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -13,6 +13,7 @@ black~=22.0 coverage>=6.3 pylatexenc scikit-learn +setuptools ddt>=1.2.0,!=1.4.0,!=1.4.3 # Documentation diff --git a/requirements.txt b/requirements.txt index 476bc1060..f1ab4b01e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,5 +7,4 @@ python-dateutil>=2.8.0 websocket-client>=1.5.1 typing-extensions>=4.0.0 ibm-platform-services>=0.22.6 -qiskit-ibm-provider>=0.8.0 -setuptools>=68.0.0 \ No newline at end of file +qiskit-ibm-provider>=0.8.0 \ No newline at end of file