From b0fcb501dee337ceb32ddebdff60179977dc5d7c Mon Sep 17 00:00:00 2001 From: Bart Schilperoort Date: Thu, 12 Sep 2024 14:44:00 +0200 Subject: [PATCH] Add support for 3.12, update gh workflows --- .github/workflows/build.yml | 10 +++++----- .github/workflows/documentation.yml | 6 +++--- .github/workflows/python-publish-dry-run.yml | 4 ++-- .github/workflows/python-publish.yml | 4 ++-- pyproject.toml | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d9d6022..43f48f82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,9 +15,9 @@ jobs: strategy: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.9 - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.9" - name: Python info @@ -39,11 +39,11 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Python info diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index aef05d7d..e83534d6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -15,11 +15,11 @@ jobs: strategy: fail-fast: false steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.10 + - uses: actions/checkout@v4 + - name: Set up Python 3.12 uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: "3.12" - name: Python info shell: bash -l {0} run: | diff --git a/.github/workflows/python-publish-dry-run.yml b/.github/workflows/python-publish-dry-run.yml index 66c2d5de..f234be30 100644 --- a/.github/workflows/python-publish-dry-run.yml +++ b/.github/workflows/python-publish-dry-run.yml @@ -23,9 +23,9 @@ jobs: deploy-dry-run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install dependencies diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 207d9235..71dc9184 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,9 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install dependencies diff --git a/pyproject.toml b/pyproject.toml index 10edeb48..59433435 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ version = "3.0.3" description = "Load Distributed Temperature Sensing (DTS) files, calibrate the temperature and estimate its uncertainty." readme = "README.rst" license = "BSD-3-Clause" -requires-python = ">=3.9, <3.12" +requires-python = ">=3.9, <3.13" authors = [ {name = "Bas des Tombe, Bart Schilperoort"}, ] @@ -166,7 +166,7 @@ ignore = [ "E501", # Line too long (want to have fixed ] line-length = 88 -exclude = ["docs", "build"] +exclude = ["docs", "build", "tests/data"] # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" # Minimum supported Python version