GeezerVison is showing github.com — Drop support for Python 3.8 (#197) · yeager/python-docs-theme@7919df8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: pyproject.toml +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ description = "The Sphinx theme for the CPython docs and related projects" |
11 | 11 | readme = "README.md" |
12 | 12 | license.file = "LICENSE" |
13 | 13 | |
14 | | -requires-python = ">=3.8" |
| 14 | +requires-python = ">=3.9" |
15 | 15 | classifiers = [ |
16 | 16 | "Development Status :: 5 - Production/Stable", |
17 | 17 | "Framework :: Sphinx :: Theme", |
@@ -20,7 +20,6 @@ classifiers = [ |
20 | 20 | "Operating System :: OS Independent", |
21 | 21 | "Programming Language :: Python", |
22 | 22 | "Programming Language :: Python :: 3 :: Only", |
23 | | - "Programming Language :: Python :: 3.8", |
24 | 23 | "Programming Language :: Python :: 3.9", |
25 | 24 | "Programming Language :: Python :: 3.10", |
26 | 25 | "Programming Language :: Python :: 3.11", |
|
Collapse file
Copy file name to clipboardExpand all lines: python_docs_theme/__init__.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | import hashlib |
4 | 4 | import os |
5 | | -from functools import lru_cache |
| 5 | +from functools import cache |
6 | 6 | from pathlib import Path |
7 | 7 | from typing import Any |
8 | 8 |
|
|
12 | 12 | THEME_PATH = Path(__file__).parent.resolve() |
13 | 13 |
|
14 | 14 |
|
15 | | -@lru_cache(maxsize=None) |
| 15 | +@cache |
16 | 16 | def _asset_hash(path: str) -> str: |
17 | 17 | """Append a `?digest=` to an url based on the file content.""" |
18 | 18 | full_path = THEME_PATH / path.replace("_static/", "static/") |
|