From d3911dbb42dc53702e3f1d6ab708257931867b65 Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Sun, 7 Apr 2024 11:26:04 +0200 Subject: [PATCH 1/2] Also enable testing for python 3.12. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11caff7..6c803bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} From 9e81c75e77c8cb8b57934b6922a784ef5fa53d73 Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Sun, 7 Apr 2024 11:31:03 +0200 Subject: [PATCH 2/2] Make numpy version compatible with python 3.12. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 09a5a1b..33f0f56 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ pyzx@git+https://github.com/Quantomatic/pyzx matplotlib>=3.7.4 -numpy~=1.24.0 # can't go higher for python 3.8 +numpy>=1.24.0,<2 # can't go higher than 1.24.0 for python 3.8 pylatexenc~=2.10 pytest~=8.1.1 qiskit~=1.0.2