From dcd57e575115a6eae5b523f1788fa1eedf2b1015 Mon Sep 17 00:00:00 2001
From: Moritz Kern <92092328+Moritz-Alexander-Kern@users.noreply.github.com>
Date: Tue, 19 Mar 2024 16:11:36 +0100
Subject: [PATCH] [MAIN] add Python 3.12 (#611)
* add python 3.12 to CI workflow
* add python 3.12 to installation guide
* update cibuildwheel action to get python 3.12 wheels
* update setup python and checkout action
---
.github/workflows/CI.yml | 4 ++--
.github/workflows/build_wheels.yml | 8 +++++---
doc/install.rst | 2 +-
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 5f1517744..76679cf71 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -57,8 +57,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- # python versions for elephant: [3.8, 3.9, "3.10", 3.11]
- python-version: [3.8, 3.9, "3.10", 3.11]
+ # python versions for elephant: [3.8, 3.9, "3.10", 3.11, 3.12]
+ python-version: [3.9, "3.10", 3.11, 3.12]
# OS [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
# do not cancel all in-progress jobs if any matrix job fails
diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml
index 2e8926dbf..b5dbea1f9 100644
--- a/.github/workflows/build_wheels.yml
+++ b/.github/workflows/build_wheels.yml
@@ -18,15 +18,17 @@ jobs:
os: [ubuntu-20.04, windows-2019]
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
# Used to host cibuildwheel
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.10'
- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
- python -m pip install cibuildwheel==2.13.1
+ python -m pip install cibuildwheel==2.16.2
- name: Install libomp
if: runner.os == 'macOS'
diff --git a/doc/install.rst b/doc/install.rst
index 6a85b2331..e663b0932 100644
--- a/doc/install.rst
+++ b/doc/install.rst
@@ -14,7 +14,7 @@ Below is the explanation of how to proceed with these two steps.
Prerequisites
*************
-Elephant requires `Python `_ 3.8, 3.9, 3.10 or 3.11.
+Elephant requires `Python `_ 3.8, 3.9, 3.10, 3.11 or 3.12.
.. tabs::