From 9b688df5ce4e507ec82cccf33709062549a28339 Mon Sep 17 00:00:00 2001 From: Hugo Karas Date: Wed, 12 Jun 2024 22:21:02 +0200 Subject: [PATCH 1/3] Update for 3.12 --- deerlab/diststats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deerlab/diststats.py b/deerlab/diststats.py index 9368de5b..3497e7b5 100644 --- a/deerlab/diststats.py +++ b/deerlab/diststats.py @@ -7,7 +7,7 @@ import warnings import copy from scipy.signal import find_peaks -from scipy.integrate import cumtrapz +from scipy.integrate import cumulative_trapezoid as cumtrapz def diststats(r, P, Puq=None, verbose=False, threshold=None): r""" From 2632f5a33cf1058be2508aa159566fd5eb767e8d Mon Sep 17 00:00:00 2001 From: Hugo Karas Date: Wed, 12 Jun 2024 22:29:00 +0200 Subject: [PATCH 2/3] Updated workflows and changelog --- .github/workflows/ci_PR.yml | 2 +- .github/workflows/ci_scheduled.yml | 2 +- docsrc/source/changelog.rst | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_PR.yml b/.github/workflows/ci_PR.yml index 63de2eec..88374ad6 100644 --- a/.github/workflows/ci_PR.yml +++ b/.github/workflows/ci_PR.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.10','3.11'] + python-version: ['3.11','3.12'] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/ci_scheduled.yml b/.github/workflows/ci_scheduled.yml index 0659c65f..b101659c 100644 --- a/.github/workflows/ci_scheduled.yml +++ b/.github/workflows/ci_scheduled.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] + python-version: [3.8, 3.9, "3.10", "3.11", "3.12","3.12"] steps: - uses: actions/checkout@v3 diff --git a/docsrc/source/changelog.rst b/docsrc/source/changelog.rst index 3aa92232..d8edd8c8 100644 --- a/docsrc/source/changelog.rst +++ b/docsrc/source/changelog.rst @@ -28,6 +28,7 @@ Release ``v1.1.3`` - Ongoing ------------------------------------------ - |fix| : Removes unnecessary files from the docs - |efficiency| : Improves the performance of the ``dipolarkernel`` function by 10-30% (:pr:`473`), by caching the interpolation of he effective dipolar evolution time vector. +- |fix| : add support for Python 3.12 Release ``v1.1.2`` - November 2023 ------------------------------------------ From 3d1cc8623fc1aeddfddb12281ee03aa92ff426d1 Mon Sep 17 00:00:00 2001 From: Hugo Karas Date: Wed, 12 Jun 2024 22:29:49 +0200 Subject: [PATCH 3/3] Upload to 3.12 --- .github/workflows/package_upload.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package_upload.yml b/.github/workflows/package_upload.yml index 69be3f25..4a3b9977 100644 --- a/.github/workflows/package_upload.yml +++ b/.github/workflows/package_upload.yml @@ -11,10 +11,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v1 with: - python-version: "3.10" + python-version: "3.11" - name: Install pypa/build run: >- python -m pip install build --user