From 43bbec54d278b8e002a3f6e5191ce5b7d1879ea5 Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 15:58:07 -0400 Subject: [PATCH 1/9] update python versions for CI --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1ad3c3b53..6ffb55a0f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - python-version: [3.9, '3.10', '3.11'] + python-version: ['3.10', '3.11', '3.12'] steps: - name: Cancel Previous Runs @@ -63,7 +63,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.12 - name: Install dependencies run: | From ad23340eb78fc83ec3ee538c3febc8153615108c Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 16:05:32 -0400 Subject: [PATCH 2/9] sanity check before we try again --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6ffb55a0f..82512d332 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11'] steps: - name: Cancel Previous Runs @@ -63,7 +63,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.12 + python-version: 3.10 - name: Install dependencies run: | From 67f1d34dc78bf35481555049bb5ed7abe9fc61d9 Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 16:09:37 -0400 Subject: [PATCH 3/9] sanity check but with quotes around 3.10 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 82512d332..95d8dea5e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,7 +63,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.10 + python-version: "3.10" - name: Install dependencies run: | From bb5c163b2ae27e2466bf9b3281e99d78fcdb576a Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 16:21:24 -0400 Subject: [PATCH 4/9] add 3.12 to tests --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 95d8dea5e..6d057a9a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - python-version: ['3.10', '3.11'] + python-version: ['3.10', '3.11', '3.12'] steps: - name: Cancel Previous Runs @@ -63,7 +63,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: "3.12" - name: Install dependencies run: | From a95ec954db5c4dfd171ad75a668b0453d9d231c8 Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 16:36:04 -0400 Subject: [PATCH 5/9] will this fix integration tests? --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 2b630dab4..f4cabd8c7 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ "qiskit-ibm-provider", "pennylane>=0.38", "numpy", + "setuptools", "sympy<1.13", "networkx>=2.2", ] From 546e79a83656448da0a6971f617dde6ca47f6c18 Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 16:39:18 -0400 Subject: [PATCH 6/9] does this fix it? --- .github/workflows/tests.yml | 2 ++ setup.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6d057a9a1..fa8374fff 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,6 +29,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install setuptools pip install git+https://github.com/PennyLaneAI/pennylane.git pip install -r requirements-ci.txt pip install wheel pytest pytest-cov pytest-mock flaky --upgrade @@ -74,6 +75,7 @@ jobs: - name: Install Plugin run: | + pip install pkg_resources python setup.py bdist_wheel pip install dist/PennyLane*.whl diff --git a/setup.py b/setup.py index f4cabd8c7..2b630dab4 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,6 @@ "qiskit-ibm-provider", "pennylane>=0.38", "numpy", - "setuptools", "sympy<1.13", "networkx>=2.2", ] From 07645e44fccc473e9aeef444dca1c7c107b9e77e Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 16:43:49 -0400 Subject: [PATCH 7/9] ?? --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fa8374fff..f1f212f7c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,13 +69,14 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install setuptools + pip install pkg_resources pip install git+https://github.com/PennyLaneAI/pennylane.git pip install -r requirements-ci.txt pip install wheel pytest pytest-cov pytest-mock pytest-benchmark flaky --upgrade - name: Install Plugin run: | - pip install pkg_resources python setup.py bdist_wheel pip install dist/PennyLane*.whl From 90b0510890a2ba2213c706ef609f2b2989a3e243 Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 16:45:36 -0400 Subject: [PATCH 8/9] ????? --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f1f212f7c..d15a69546 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -70,7 +70,6 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools - pip install pkg_resources pip install git+https://github.com/PennyLaneAI/pennylane.git pip install -r requirements-ci.txt pip install wheel pytest pytest-cov pytest-mock pytest-benchmark flaky --upgrade From 7cf63ece70f084b0f31409a26c4d25f8dafaf7ce Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 1 Nov 2024 17:01:26 -0400 Subject: [PATCH 9/9] remove references to 3.9 and update format.yml --- .github/workflows/format.yml | 2 +- README.rst | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 30f60ec9a..3d57bb7f0 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: "3.10" - name: Install dependencies run: pip install black pylint==2.7.4 diff --git a/README.rst b/README.rst index eab139fab..3b0b681b8 100644 --- a/README.rst +++ b/README.rst @@ -53,7 +53,7 @@ Features Installation ============ -This plugin requires Python version 3.9 and above, as well as PennyLane and Qiskit. +This plugin requires Python version 3.10 and above, as well as PennyLane and Qiskit. Installation of this plugin, as well as all dependencies, can be done using ``pip``: .. code-block:: bash diff --git a/setup.py b/setup.py index 2b630dab4..a71245aea 100644 --- a/setup.py +++ b/setup.py @@ -80,9 +80,9 @@ "Operating System :: Microsoft :: Windows", "Programming Language :: Python", 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3 :: Only', "Topic :: Scientific/Engineering :: Physics" ]