Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 3.8 #122

Merged
merged 2 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
matrix:
# when adding new versions, update the one used to test
# friend projects below to the latest one
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
test-set: [base]
include:
- {python-version: "3.13", os: ubuntu-latest, test-set: friend-projects}
exclude:
# TODO Add Windows when regex wheel available for 3.13
- {os: windows-latest, python-version: "3.13"}
- {python-version: "3.13", os: windows-latest, test-set: friend-projects}

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ authors = [
{name = "Georg Brandl", email = "[email protected]"},
{name = "Julien Palard", email = "[email protected]"},
]
requires-python = ">= 3.8"
requires-python = ">= 3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Python Software Foundation License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
4 changes: 2 additions & 2 deletions sphinxlint/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- All compiled regexes are suffixed by _RE
"""

from functools import lru_cache
from functools import cache

import regex as re

Expand Down Expand Up @@ -153,7 +153,7 @@
UNICODE_ALLOWED_AFTER_INLINE_MARKUP = r"\p{Pe}\p{Pi}\p{Pf}\p{Pd}\p{Po}"


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

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires =
tox>=4.2
env_list =
lint
py{py3, 313, 312, 311, 310, 39, 38}
py{py3, 313, 312, 311, 310, 39}

[testenv]
extras =
Expand Down