GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • pyproject.toml
  • python_docs_theme
    • __init__.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pyproject.toml‎

Copy file name to clipboardExpand all lines: pyproject.toml
+1-2Lines changed: 1 addition & 2 deletions
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 = "[email protected]"}]
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",
Collapse file

‎python_docs_theme/__init__.py‎

Copy file name to clipboardExpand all lines: python_docs_theme/__init__.py
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.