Skip to content

Commit 367d965

Browse files
authored
Drop Python 3.9 (#2902)
* Drop Python 3.9 * Fix lint
1 parent 19ec936 commit 367d965

9 files changed

Lines changed: 11 additions & 13 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ jobs:
1717
max-parallel: 4
1818
matrix:
1919
platform: [ubuntu-latest, windows-latest]
20-
python-version: [3.9, '3.10', '3.11', '3.12', '3.13', '3.14']
20+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2121
include:
22-
- python-version: 3.9
23-
tox-env: py39
2422
- python-version: '3.10'
2523
tox-env: py310
2624
- python-version: '3.11'
@@ -67,7 +65,7 @@ jobs:
6765
strategy:
6866
max-parallel: 4
6967
matrix:
70-
python-version: ['3.13']
68+
python-version: ['3.14']
7169

7270
env:
7371
TOXENV: lint
@@ -91,7 +89,7 @@ jobs:
9189
strategy:
9290
max-parallel: 4
9391
matrix:
94-
python-version: ['3.13']
92+
python-version: ['3.14']
9593

9694
env:
9795
TOXENV: documents

‎.github/workflows/deploy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-python@v5
1515
with:
16-
python-version: 3.13
16+
python-version: 3.14
1717
- name: Build
1818
run: |
1919
pip install --upgrade pip build

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
max-parallel: 4
1414
matrix:
15-
python-version: ['3.13']
15+
python-version: ['3.14']
1616

1717
runs-on: ubuntu-latest
1818

‎docs/src/markdown/about/changelog.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ icon: lucide/scroll-text
55

66
## 10.22
77

8+
- **NEW**: Drop Python 3.9 support.
89
- **FIX**: Tabbed: Fix issue where an empty title would cause an exception.
910

1011
## 10.21.3

‎hatch_build.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def update(self, metadata):
2828
"License :: OSI Approved :: MIT License",
2929
"Operating System :: OS Independent",
3030
"Programming Language :: Python :: 3",
31-
"Programming Language :: Python :: 3.9",
3231
"Programming Language :: Python :: 3.10",
3332
"Programming Language :: Python :: 3.11",
3433
"Programming Language :: Python :: 3.12",

‎pymdownx/blocks/tab.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def run(self, doc):
8383
labels.append(i)
8484

8585
# Generate slugged IDs
86-
for inpt, label in zip(inputs, labels):
86+
for inpt, label in zip(inputs, labels, strict=True):
8787
innerhtml = toc.render_inner_html(toc.remove_fnrefs(label), self.md)
8888
innertext = html.unescape(toc.strip_tags(innerhtml))
8989
if self.combine_header_slug:

‎pymdownx/snippets.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def parse_snippets(self, lines, file_name=None, is_url=False, is_section=False):
384384
total = len(s_lines)
385385
if start and end:
386386
final_lines = []
387-
for sel in zip(start, end):
387+
for sel in zip(start, end, strict=True):
388388
s_start = util.clamp(total + sel[0], 0, total) if sel[0] and sel[0] < 0 else sel[0]
389389
s_end = util.clamp(total + 1 + sel[1], 0, total) if sel[1] and sel[1] < 0 else sel[1]
390390
final_lines.extend(s_lines[slice(s_start, s_end, None)])

‎pymdownx/tabbed.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def run(self, doc):
374374
labels.append(i)
375375

376376
# Generate slugged IDs
377-
for inpt, label in zip(inputs, labels):
377+
for inpt, label in zip(inputs, labels, strict=True):
378378
innerhtml = toc.render_inner_html(toc.remove_fnrefs(label), self.md)
379379
innertext = html.unescape(toc.strip_tags(innerhtml))
380380
if self.combine_header_slug:

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "pymdown-extensions"
99
description = "Extension pack for Python Markdown."
1010
readme = "README.md"
1111
license = "MIT"
12-
requires-python = ">=3.9"
12+
requires-python = ">=3.10"
1313
authors = [
1414
{ name = "Isaac Muse", email = "[email protected]" },
1515
]
@@ -139,7 +139,7 @@ legacy_tox_ini = """
139139
[tox]
140140
isolated_build = true
141141
envlist =
142-
{py39,py310,py311,py312,py313,py314}, lint, documents
142+
{py310,py311,py312,py313,py314}, lint, documents
143143
144144
[testenv]
145145
passenv = LANG

0 commit comments

Comments
 (0)