Skip to content

Drop support for Python 3.8 #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2025
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 @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
openslide: [system, wheel]
include:
- os: ubuntu-latest
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
shell: bash
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
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: ["--py38-plus"]
args: ["--py39-plus"]

- repo: https://github.com/PyCQA/isort
rev: 6.0.1
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.8
* Python ≥ 3.9
* OpenSlide ≥ 3.4.0
* Pillow

Expand Down
4 changes: 2 additions & 2 deletions examples/deepzoom/deepzoom_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

from argparse import ArgumentParser
import base64
from collections.abc import Callable
from collections.abc import Callable, Mapping
from io import BytesIO
import os
from pathlib import Path
import re
from typing import TYPE_CHECKING, Any, Literal, Mapping
from typing import TYPE_CHECKING, Any, Literal
from unicodedata import normalize
import zlib

Expand Down
3 changes: 2 additions & 1 deletion openslide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
from __future__ import annotations

from abc import ABCMeta, abstractmethod
from collections.abc import Iterator, Mapping
from io import BytesIO
from types import TracebackType
from typing import Iterator, Literal, Mapping, TypeVar
from typing import Literal, TypeVar

from PIL import Image, ImageCms

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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -27,7 +26,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Typing :: Typed",
]
requires-python = ">= 3.8"
requires-python = ">= 3.9"
dependencies = ["Pillow"]
dynamic = ["version"]

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

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

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