File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
src/python/backports/zstd Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/ ) , and this project
66adheres to [ Semantic Versioning] ( https://semver.org/ ) .
77
8+ ## Unreleased
9+
10+ ### :bug : Fixes
11+
12+ - Raise an exception at both build and runtime when using an unsupported Python version,
13+ instead of crashing with a segmentation fault at runtime (in the rare cases where
14+ ` backports.zstd ` was installed despite the ` requires-python ` marker)
15+
816## [ 1.2.0] - 2025-12-06
917
1018[ 1.2.0 ] : https://github.com/rogdham/backports.zstd/releases/tag/v1.2.0
Original file line number Diff line number Diff line change 66
77from setuptools import Extension , setup
88
9+ if not ((3 , 9 ) <= sys .version_info < (3 , 14 )):
10+ raise RuntimeError (f"Unsupported Python version: { sys .version } " )
11+
12+
913# create a LICENSE_zstd.txt file
1014# wheels distributions needs to ship the license of the zstd library
1115ROOT_PATH = Path (__file__ ).parent .absolute ()
Original file line number Diff line number Diff line change 11"""Python bindings to the Zstandard (zstd) compression library (RFC-8878)."""
22
3+ import sys
4+ if not ((3 , 9 ) <= sys .version_info < (3 , 14 )):
5+ raise RuntimeError (f"Unsupported Python version: { sys .version } " )
6+
37__all__ = (
48 # backports.zstd
59 'COMPRESSION_LEVEL_DEFAULT' ,
You can’t perform that action at this time.
0 commit comments