Skip to content

Commit 7919df8

Browse files
authored
Drop support for Python 3.8 (#197)
1 parent 53c918d commit 7919df8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = "The Sphinx theme for the CPython docs and related projects"
1111
readme = "README.md"
1212
license.file = "LICENSE"
1313
authors = [{name = "PyPA", email = "distutils-sig@python.org"}]
14-
requires-python = ">=3.8"
14+
requires-python = ">=3.9"
1515
classifiers = [
1616
"Development Status :: 5 - Production/Stable",
1717
"Framework :: Sphinx :: Theme",
@@ -20,7 +20,6 @@ classifiers = [
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python",
2222
"Programming Language :: Python :: 3 :: Only",
23-
"Programming Language :: Python :: 3.8",
2423
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
2625
"Programming Language :: Python :: 3.11",

python_docs_theme/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import hashlib
44
import os
5-
from functools import lru_cache
5+
from functools import cache
66
from pathlib import Path
77
from typing import Any
88

@@ -12,7 +12,7 @@
1212
THEME_PATH = Path(__file__).parent.resolve()
1313

1414

15-
@lru_cache(maxsize=None)
15+
@cache
1616
def _asset_hash(path: str) -> str:
1717
"""Append a `?digest=` to an url based on the file content."""
1818
full_path = THEME_PATH / path.replace("_static/", "static/")

0 commit comments

Comments
 (0)