Skip to content

Commit

Permalink
Add Python 3.12 support (#597)
Browse files Browse the repository at this point in the history
* update python versions for CI

* sanity check before we try again

* sanity check but with quotes around 3.10

* add 3.12 to tests

* will this fix integration tests?

* does this fix it?

* ??

* ?????

* remove references to 3.9 and update format.yml
  • Loading branch information
lillian542 authored Nov 1, 2024
1 parent 8c7ffad commit 96eefa5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -63,11 +64,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: "3.12"

- 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 pytest-benchmark flaky --upgrade
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down

0 comments on commit 96eefa5

Please sign in to comment.