From 1efcdd46de0cc21ecbbb205fb12a20be693c7c3e Mon Sep 17 00:00:00 2001 From: Rogdham Date: Sat, 10 Oct 2026 16:05:29 +0200 Subject: [PATCH] chore: drop support for Python 3.10 --- .github/workflows/build.yml | 2 -- CHANGELOG.md | 1 + pyproject.toml | 5 ++--- src/pyzstd/_seekable_zstdfile.py | 8 +------- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e30cfc..a9fd228 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,12 +53,10 @@ jobs: strategy: matrix: python: - - "3.10" - "3.11" - "3.12" - "3.13" - "3.14" - - "pypy-3.10" - "pypy-3.11" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 16d5fc4..38a5a5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. ## Unreleased +- End of Python 3.10 support - Necessary code changes following dev dependency update: `mypy`, `ruff` ## 0.19.1 (December 13, 2025) diff --git a/pyproject.toml b/pyproject.toml index 0a09fd2..3ca09be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,13 +27,12 @@ classifiers = [ "Intended Audience :: Developers", "Topic :: System :: Archiving :: Compression", "License :: OSI Approved :: BSD License", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", ] -requires-python = ">=3.10" +requires-python = ">=3.11" dependencies = [ "backports.zstd>=1.0.0 ; python_version<'3.14'", "typing-extensions>=4.13.2 ; python_version<'3.13'", @@ -108,7 +107,7 @@ warn_unused_configs = true [tool.ruff] src = ["src"] -target-version = "py310" +target-version = "py311" extend-exclude = ["tests"] [tool.ruff.lint] diff --git a/src/pyzstd/_seekable_zstdfile.py b/src/pyzstd/_seekable_zstdfile.py index 029ff93..20d6f1e 100644 --- a/src/pyzstd/_seekable_zstdfile.py +++ b/src/pyzstd/_seekable_zstdfile.py @@ -5,7 +5,7 @@ from os.path import isfile from struct import Struct import sys -from typing import BinaryIO, ClassVar, Literal, cast +from typing import BinaryIO, ClassVar, Literal, Self, cast import warnings from pyzstd import ( @@ -23,12 +23,6 @@ from typing_extensions import Buffer else: from collections.abc import Buffer - -if sys.version_info < (3, 11): - from typing_extensions import Self -else: - from typing import Self - __all__ = ("SeekableFormatError", "SeekableZstdFile") _MODE_CLOSED = 0