Skip to content

Commit 3d934f0

Browse files
authored
Merge pull request #338 from bgilbert/py39
Drop Python 3.9 support
2 parents 7f5168b + 81000fe commit 3d934f0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
strategy:
5151
matrix:
5252
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
53-
python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]
53+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
5454
openslide: [system, wheel]
5555
include:
5656
- os: ubuntu-latest
@@ -165,7 +165,7 @@ jobs:
165165
shell: bash
166166
strategy:
167167
matrix:
168-
python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14"]
168+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
169169
openslide: [zip, wheel]
170170
steps:
171171
- name: Check out repo

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
hooks:
2121
- id: pyupgrade
2222
name: Modernize python code
23-
args: ["--py39-plus"]
23+
args: ["--py310-plus"]
2424

2525
- repo: https://github.com/PyCQA/isort
2626
rev: 7.0.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ OpenSlide can read virtual slides in several formats:
4141

4242
## Requirements
4343

44-
* Python ≥ 3.9
44+
* Python ≥ 3.10
4545
* OpenSlide ≥ 3.4.0
4646
* Pillow
4747

openslide/lowlevel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
from __future__ import annotations
3333

34+
from collections.abc import Callable
3435
from ctypes import (
3536
CDLL,
3637
POINTER,
@@ -49,7 +50,7 @@
4950
from itertools import count
5051
import os
5152
import platform
52-
from typing import TYPE_CHECKING, Any, Callable, Protocol, TypeVar, cast
53+
from typing import TYPE_CHECKING, Any, Protocol, TypeVar, cast
5354

5455
from PIL import Image
5556

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ classifiers = [
1818
"Operating System :: POSIX :: Linux",
1919
"Programming Language :: Python",
2020
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
2423
"Programming Language :: Python :: 3.12",
@@ -27,7 +26,7 @@ classifiers = [
2726
"Topic :: Scientific/Engineering :: Bio-Informatics",
2827
"Typing :: Typed",
2928
]
30-
requires-python = ">= 3.9"
29+
requires-python = ">= 3.10"
3130
dependencies = ["Pillow"]
3231
dynamic = ["version"]
3332

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

5352
[tool.black]
5453
skip-string-normalization = true
55-
target-version = ["py39", "py310", "py311", "py312", "py313", "py314"]
54+
target-version = ["py310", "py311", "py312", "py313", "py314"]
5655

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

0 commit comments

Comments
 (0)