From 9aef0d9a76bf1d85c0b92662560bbce0d958ac9f Mon Sep 17 00:00:00 2001 From: James Meakin <12661555+jmsmkn@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:32:59 +0200 Subject: [PATCH] Update supported python versions --- .github/workflows/ci.yml | 4 ++-- .pre-commit-config.yaml | 2 +- README.md | 2 +- pyproject.toml | 7 ++++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f831dc..43a026e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: - published env: - MINIMUM_PYTHON_VERSION: '3.8' + MINIMUM_PYTHON_VERSION: '3.9' concurrency: group: ${{ github.head_ref || github.run_id }} @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ee87c2..7ca6f88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: hooks: - id: pyupgrade language: python - args: [--py38-plus] + args: [--py39-plus] - repo: https://github.com/pycqa/isort rev: 5.12.0 hooks: diff --git a/README.md b/README.md index 8677f01..200565f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ **NOT FOR CLINICAL USE** Conversion of medical images to MHA and TIFF. -Requires Python 3.8, 3.9, 3.10 or 3.11. +Requires Python 3.9, 3.10, 3.11, 3.12 or 3.13. `libvips-dev` and `libopenslide-dev` must be installed on your system. Under the hood we use: diff --git a/pyproject.toml b/pyproject.toml index f7f7235..51f8074 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ classifiers = [ panimg = "panimg.cli:cli" [tool.poetry.dependencies] -python = "^3.8" +python = "^3.9" pydantic = ">=2" numpy = ">=1.22" # Exclude 2.1.1.1 due to @@ -68,14 +68,15 @@ addopts = "--strict-markers --showlocals -n auto --dist loadscope" legacy_tox_ini = """ [tox] isolated_build = True -envlist = py38, py39, py310, py311 +envlist = py39, py310, py311, py312, py313 [gh-actions] python = - 3.8: py38 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 + 3.13: py313 [testenv] allowlist_externals = poetry