Skip to content

Commit

Permalink
Add support for python 3.11 (#1417)
Browse files Browse the repository at this point in the history
* add support for python 3.11

Signed-off-by: Paul S. Schweigert <[email protected]>

* don't drop the 0

Signed-off-by: Paul S. Schweigert <[email protected]>

* arm for py311

Signed-off-by: Paul S. Schweigert <[email protected]>

---------

Signed-off-by: Paul S. Schweigert <[email protected]>
  • Loading branch information
psschwei authored Jul 19, 2024
1 parent fbc8297 commit 84d2eab
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-containers-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
python:
- "3.9"
- "3.10"
- "3.11"
exclude:
# gateway is only built using python 3.10
- dockerfile: gateway/Dockerfile
python: "3.9"
- dockerfile: gateway/Dockerfile
python: "3.11"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/client-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
python-version:
- '3.9'
- '3.10'
- '3.11'

defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gateway-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
python-version:
- '3.9'
- '3.10'
- '3.11'

defaults:
run:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/icr-image-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
pythonversion: py310
dockerfile: Dockerfile-ray-node
platforms: linux/amd64,linux/arm64
- imagename: qiskit-serverless/ray-node
pythonversion: py311
dockerfile: Dockerfile-ray-node
platforms: linux/amd64,linux/arm64
- imagename: qiskit-serverless/gateway
pythonversion: ''
dockerfile: ./gateway/Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/kubernetes-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Create Kind cluster
uses: chainguard-dev/actions/setup-kind@main
with:
k8s-version: 1.28.x
k8s-version: 1.29.x
kind-worker-count: 0
- name: Build and load gateway
run: |
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/proxy-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
python-version:
- '3.9'
- '3.10'
- '3.11'

defaults:
run:
Expand Down Expand Up @@ -45,4 +46,3 @@ jobs:
- name: Test using tox environment
run: |
tox ${{ env.TOX_ENV }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Stability](https://img.shields.io/badge/stability-alpha-f4d03f.svg)](https://github.com/Qiskit/qiskit-serverless/releases)
[![License](https://img.shields.io/github/license/qiskit-community/quantum-prototype-template?label=License)](https://github.com/qiskit-community/quantum-prototype-template/blob/main/LICENSE.txt)
[![Code style: Black](https://img.shields.io/badge/Code%20style-Black-000.svg)](https://github.com/psf/black)
[![Python](https://img.shields.io/badge/Python-3.9%20%7C%203.10-informational)](https://www.python.org/)
[![Python](https://img.shields.io/badge/Python-3.9%20%7C%203.10%20%7C%203.11-informational)](https://www.python.org/)
[![Qiskit](https://img.shields.io/badge/Qiskit-%E2%89%A5%201.0.0-6133BD)](https://github.com/Qiskit/qiskit)

# Qiskit Serverless
Expand Down
6 changes: 3 additions & 3 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Client verify process](https://github.com/Qiskit/qiskit-serverless/actions/workflows/client-verify.yaml/badge.svg)](https://github.com/Qiskit/qiskit-serverless/actions/workflows/client-verify.yaml)
[![License](https://img.shields.io/github/license/qiskit-community/quantum-prototype-template?label=License)](https://github.com/qiskit-community/quantum-prototype-template/blob/main/LICENSE.txt)
[![Code style: Black](https://img.shields.io/badge/Code%20style-Black-000.svg)](https://github.com/psf/black)
[![Python](https://img.shields.io/badge/Python-3.9%20%7C%203.10-informational)](https://www.python.org/)
[![Python](https://img.shields.io/badge/Python-3.9%20%7C%203.10%20%7C%203.11-informational)](https://www.python.org/)
[![Qiskit](https://img.shields.io/badge/Qiskit-%E2%89%A5%200.39.0-6133BD)](https://github.com/Qiskit/qiskit)

# Qiskit Serverless client
Expand Down Expand Up @@ -64,7 +64,7 @@ save_result({
"quasi_dists": collected_results
})
```


### Step 2: run function

Expand All @@ -73,7 +73,7 @@ from qiskit_serverless import ServerlessClient, QiskitFunction
from qiskit.circuit.random import random_circuit

client = ServerlessClient(
token="<TOKEN>",
token="<TOKEN>",
host="<GATEWAY_ADDRESS>",
)

Expand Down
1 change: 1 addition & 0 deletions client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Physics",
],
)
2 changes: 1 addition & 1 deletion client/tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 2.1
envlist = py39, py310, lint, coverage
envlist = py39, py310, py311, lint, coverage
# CI: skip-next-line
skipsdist = true
# CI: skip-next-line
Expand Down
2 changes: 1 addition & 1 deletion gateway/tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 2.1
envlist = py39, py310, lint, coverage
envlist = py39, py310, py311, lint, coverage
# CI: skip-next-line
skipsdist = true
# CI: skip-next-line
Expand Down

0 comments on commit 84d2eab

Please sign in to comment.