Skip to content

Commit b1bec13

Browse files
authored
Drop support for Python 3.8 (#122)
1 parent ff671d6 commit b1bec13

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ jobs:
1919
matrix:
2020
# when adding new versions, update the one used to test
2121
# friend projects below to the latest one
22-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
22+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2323
os: [ubuntu-latest, macos-latest, windows-latest]
2424
test-set: [base]
2525
include:
2626
- {python-version: "3.13", os: ubuntu-latest, test-set: friend-projects}
27-
exclude:
28-
# TODO Add Windows when regex wheel available for 3.13
29-
- {os: windows-latest, python-version: "3.13"}
27+
- {python-version: "3.13", os: windows-latest, test-set: friend-projects}
3028

3129
steps:
3230
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ authors = [
1414
{name = "Georg Brandl", email = "[email protected]"},
1515
{name = "Julien Palard", email = "[email protected]"},
1616
]
17-
requires-python = ">= 3.8"
17+
requires-python = ">= 3.9"
1818
classifiers = [
1919
"Development Status :: 5 - Production/Stable",
2020
"Intended Audience :: Developers",
2121
"License :: OSI Approved :: Python Software Foundation License",
2222
"Natural Language :: English",
2323
"Programming Language :: Python :: 3 :: Only",
24-
"Programming Language :: Python :: 3.8",
2524
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",
2726
"Programming Language :: Python :: 3.11",

sphinxlint/rst.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- All compiled regexes are suffixed by _RE
66
"""
77

8-
from functools import lru_cache
8+
from functools import cache
99

1010
import regex as re
1111

@@ -153,7 +153,7 @@
153153
UNICODE_ALLOWED_AFTER_INLINE_MARKUP = r"\p{Pe}\p{Pi}\p{Pf}\p{Pd}\p{Po}"
154154

155155

156-
@lru_cache(maxsize=None)
156+
@cache
157157
def inline_markup_gen(start_string, end_string, extra_allowed_before=""):
158158
"""Generate a regex matching an inline markup.
159159

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires =
33
tox>=4.2
44
env_list =
55
lint
6-
py{py3, 313, 312, 311, 310, 39, 38}
6+
py{py3, 313, 312, 311, 310, 39}
77

88
[testenv]
99
extras =

0 commit comments

Comments
 (0)