Skip to content

Commit 876c366

Browse files
authored
⬆️ Drop Python 3.9, test 3.13 (#342)
1 parent 21335c8 commit 876c366

File tree

9 files changed

+32
-29
lines changed

9 files changed

+32
-29
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 3 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@v5
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
@@ -27,7 +27,7 @@ jobs:
2727
pip install tox
2828
2929
- name: Run package benchmarks
30-
run: tox -e py38-bench-packages -- --benchmark-min-rounds 20 --benchmark-json bench-packages.json
30+
run: tox -e py39-bench-packages -- --benchmark-min-rounds 20 --benchmark-json bench-packages.json
3131

3232
# - name: Upload package data
3333
# uses: actions/upload-artifact@v3

.github/workflows/tests.yml

Lines changed: 11 additions & 10 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@v5
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,18 +87,18 @@ 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@v5
9192
with:
92-
python-version: '3.8'
93+
python-version: '3.9'
9394

9495
- name: Install tox
9596
run: |
9697
python -m pip install --upgrade pip
9798
pip install tox
9899
99100
- name: Run benchmark
100-
run: tox -e py38-bench-core -- --benchmark-json bench-core.json
101+
run: tox -e py39-bench-core -- --benchmark-json bench-core.json
101102

102103
- name: Upload data
103104
uses: actions/upload-artifact@v3
@@ -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@v5
120121
with:
121-
python-version: '3.8'
122+
python-version: '3.9'
122123
- name: install flit
123124
run: |
124125
pip install flit~=3.4

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.8"
6+
python: "3.9"
77

88
python:
99
install:

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
nitpick_ignore_regex = [
4949
("py:.*", name)
5050
for name in (
51-
"_ItemTV",
51+
".*_ItemTV",
5252
".*_NodeType",
5353
".*Literal.*",
5454
".*_Result",
@@ -84,7 +84,7 @@
8484

8585

8686
intersphinx_mapping = {
87-
"python": ("https://docs.python.org/3.8", None),
87+
"python": ("https://docs.python.org/3.9", None),
8888
"mdit-py-plugins": ("https://mdit-py-plugins.readthedocs.io/en/latest/", None),
8989
}
9090

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This can also be used to run benchmarking tests using [pytest-benchmark](https:/
5050

5151
```shell
5252
>> cd markdown-it-py
53-
tox -e py38-bench-packages -- --benchmark-min-rounds 50
53+
tox -e py39-bench-packages -- --benchmark-min-rounds 50
5454
```
5555

5656
For documentation build tests:

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: 6 additions & 6 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,17 +27,17 @@ 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

3838
[testenv:docs-{update,clean}]
3939
extras = linkify,plugins,rtd
40-
whitelist_externals =
40+
allowlist_externals =
4141
echo
4242
rm
4343
setenv =

0 commit comments

Comments
 (0)