Skip to content

Commit 73b9c0b

Browse files
committed
Drop support for Python 3.9
Python 3.9 is officially "end-of-life" since 2025-10-31. Note: Python 3.14 is officially supported since commit 823a96e "CI: Test more versions of Python".
1 parent 22d07ed commit 73b9c0b

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

.github/workflows/tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
python-version:
45-
- '3.9'
4645
- '3.10'
4746
- '3.11'
4847
- '3.12'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "yamllint"
33
description = "A linter for YAML files."
44
readme = {file = "README.rst", content-type = "text/x-rst"}
5-
requires-python = ">=3.9"
5+
requires-python = ">=3.10"
66
license = "GPL-3.0-or-later"
77
authors = [{name = "Adrien Vergé"}]
88
keywords = ["yaml", "lint", "linter", "syntax", "checker"]

tests/common.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import sys
2424
import tempfile
2525
import unittest
26-
import warnings
2726

2827
import yaml
2928

@@ -90,13 +89,7 @@ def register_test_codecs():
9089

9190

9291
def unregister_test_codecs():
93-
if sys.version_info >= (3, 10, 0):
94-
codecs.unregister(test_codec_infos.get)
95-
else:
96-
warnings.warn(
97-
"This version of Python doesn’t allow us to unregister codecs.",
98-
stacklevel=1
99-
)
92+
codecs.unregister(test_codec_infos.get)
10093

10194

10295
def is_test_codec(codec):

0 commit comments

Comments
 (0)