Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
openslide: [system, wheel]
include:
- os: ubuntu-latest
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
shell: bash
strategy:
matrix:
python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
openslide: [zip, wheel]
steps:
- name: Check out repo
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
hooks:
- id: pyupgrade
name: Modernize python code
args: ["--py39-plus"]
args: ["--py310-plus"]

- repo: https://github.com/PyCQA/isort
rev: 7.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ OpenSlide can read virtual slides in several formats:

## Requirements

* Python ≥ 3.9
* Python ≥ 3.10
* OpenSlide ≥ 3.4.0
* Pillow

Expand Down
3 changes: 2 additions & 1 deletion openslide/lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

from __future__ import annotations

from collections.abc import Callable
from ctypes import (
CDLL,
POINTER,
Expand All @@ -49,7 +50,7 @@
from itertools import count
import os
import platform
from typing import TYPE_CHECKING, Any, Callable, Protocol, TypeVar, cast
from typing import TYPE_CHECKING, Any, Protocol, TypeVar, cast

from PIL import Image

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ classifiers = [
"Operating System :: POSIX :: Linux",
"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",
Expand All @@ -27,7 +26,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Typing :: Typed",
]
requires-python = ">= 3.9"
requires-python = ">= 3.10"
dependencies = ["Pillow"]
dynamic = ["version"]

Expand All @@ -52,7 +51,7 @@ openslide = ["py.typed", "*.pyi"]

[tool.black]
skip-string-normalization = true
target-version = ["py39", "py310", "py311", "py312", "py313", "py314"]
target-version = ["py310", "py311", "py312", "py313", "py314"]

# Ref: https://github.com/codespell-project/codespell#using-a-config-file
[tool.codespell]
Expand Down