Skip to content

Commit 3d74a56

Browse files
committed
⬆️ Drop Python 3.9, test 3.13
1 parent bbbaba0 commit 3d74a56

File tree

6 files changed

+25
-22
lines changed

6 files changed

+25
-22
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Set up Python 3.8
14+
- name: Set up Python 3.9
1515
uses: actions/setup-python@v4
1616
with:
17-
python-version: 3.8
17+
python-version: 3.9
1818

1919
- name: install pandoc
2020
uses: r-lib/actions/setup-pandoc@v2

.github/workflows/tests.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23-
- name: Set up Python 3.8
23+
- name: Set up Python 3.9
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: '3.8'
26+
python-version: '3.9'
2727
- uses: pre-commit/[email protected]
2828

2929
tests:
3030

3131
runs-on: ubuntu-latest
3232
strategy:
33+
fail-fast: false
3334
matrix:
34-
python-version: ['pypy-3.8', '3.8', '3.9', '3.10', '3.11', '3.12']
35+
python-version: ['pypy-3.9', '3.9', '3.10', '3.11', '3.12', '3.13']
3536

3637
steps:
3738
- uses: actions/checkout@v4
@@ -48,7 +49,7 @@ jobs:
4849
run: |
4950
pytest tests/ --cov=markdown_it --cov-report=xml --cov-report=term-missing
5051
- name: Upload to Codecov
51-
if: matrix.python-version == '3.8' && github.repository == 'executablebooks/markdown-it-py'
52+
if: matrix.python-version == '3.9' && github.repository == 'executablebooks/markdown-it-py'
5253
uses: codecov/codecov-action@v3
5354
with:
5455
name: markdown-it-py-pytests
@@ -62,7 +63,7 @@ jobs:
6263
runs-on: ubuntu-latest
6364
strategy:
6465
matrix:
65-
python-version: ['3.8']
66+
python-version: ['3.9']
6667
steps:
6768
- uses: actions/checkout@v4
6869
- name: Set up Python ${{ matrix.python-version }}
@@ -86,10 +87,10 @@ jobs:
8687
steps:
8788
- uses: actions/checkout@v4
8889

89-
- name: Set up Python 3.8
90+
- name: Set up Python 3.9
9091
uses: actions/setup-python@v4
9192
with:
92-
python-version: '3.8'
93+
python-version: '3.9'
9394

9495
- name: Install tox
9596
run: |
@@ -115,10 +116,10 @@ jobs:
115116
steps:
116117
- name: Checkout source
117118
uses: actions/checkout@v4
118-
- name: Set up Python 3.8
119+
- name: Set up Python 3.9
119120
uses: actions/setup-python@v4
120121
with:
121-
python-version: '3.8'
122+
python-version: '3.9'
122123
- name: install flit
123124
run: |
124125
pip install flit~=3.4

markdown_it/common/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from __future__ import annotations
44

55
import re
6-
from typing import Match, TypeVar
6+
from re import Match
7+
from typing import TypeVar
78

89
from .entities import entities
910

markdown_it/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
22

3+
from collections.abc import Iterable, MutableMapping
34
from collections.abc import MutableMapping as MutableMappingABC
45
from pathlib import Path
5-
from typing import Any, Callable, Iterable, MutableMapping, TypedDict, cast
6+
from typing import Any, Callable, TypedDict, cast
67

78
EnvType = MutableMapping[str, Any] # note: could use TypeAlias in python 3.10
89
"""Type for the environment sandbox used in parsing and rendering,

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ classifiers = [
1414
"Intended Audience :: Developers",
1515
"License :: OSI Approved :: MIT License",
1616
"Programming Language :: Python :: 3",
17-
"Programming Language :: Python :: 3.8",
1817
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
20-
"Programming Language :: Python :: 3.11",
21-
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
2222
"Programming Language :: Python :: Implementation :: CPython",
2323
"Programming Language :: Python :: Implementation :: PyPy",
2424
"Topic :: Software Development :: Libraries :: Python Modules",
2525
"Topic :: Text Processing :: Markup",
2626
]
2727
keywords = ["markdown", "lexer", "parser", "commonmark", "markdown-it"]
28-
requires-python = ">=3.8"
28+
requires-python = ">=3.9"
2929
dependencies = [
3030
"mdurl~=0.1",
3131
]

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
# then run `tox` or `tox -- {pytest args}`
55
# run in parallel using `tox -p`
66
[tox]
7-
envlist = py38
7+
envlist = py39
88

99
[testenv]
1010
usedevelop = true
1111

12-
[testenv:py{38,39,310,311,312}]
12+
[testenv:py{39,310,311,312,313}]
1313
extras =
1414
linkify
1515
testing
1616
commands = pytest {posargs:tests/}
1717

18-
[testenv:py{38,39,310,311}-plugins]
18+
[testenv:py{39,310,311,312,313}-plugins]
1919
extras = testing
2020
changedir = {envtmpdir}
2121
allowlist_externals =
@@ -27,11 +27,11 @@ commands_pre =
2727
commands =
2828
pytest {posargs}
2929

30-
[testenv:py{38,39,310,311,312}-bench-core]
30+
[testenv:py{39,310,311,312,313}-bench-core]
3131
extras = benchmarking
3232
commands = pytest benchmarking/bench_core.py {posargs}
3333

34-
[testenv:py{38,39,310,311,312}-bench-packages]
34+
[testenv:py{39,310,311,312,313}-bench-packages]
3535
extras = benchmarking,compare
3636
commands = pytest benchmarking/bench_packages.py {posargs}
3737

0 commit comments

Comments
 (0)