python-docs-theme 2024.6__tar.gz → 2024.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/PKG-INFO +2 -3
  2. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/pyproject.toml +14 -22
  3. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/__init__.py +2 -2
  4. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/LICENSE +0 -0
  5. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/README.md +0 -0
  6. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/footerdonate.html +0 -0
  7. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/layout.html +0 -0
  8. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/copybutton.js +0 -0
  9. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/menu.js +0 -0
  10. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/py.png +0 -0
  11. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/py.svg +0 -0
  12. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/pydoctheme.css +0 -0
  13. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/pydoctheme_dark.css +0 -0
  14. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/search-focus.js +0 -0
  15. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/sidebar.js_t +0 -0
  16. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/static/themetoggle.js +0 -0
  17. {python_docs_theme-2024.6 → python_docs_theme-2024.10}/python_docs_theme/theme.conf +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-docs-theme
3
- Version: 2024.6
3
+ Version: 2024.10
4
4
  Summary: The Sphinx theme for the CPython docs and related projects
5
5
  Author-email: PyPA <distutils-sig@python.org>
6
- Requires-Python: >=3.8
6
+ Requires-Python: >=3.9
7
7
  Description-Content-Type: text/markdown
8
8
  Classifier: Development Status :: 5 - Production/Stable
9
9
  Classifier: Framework :: Sphinx :: Theme
@@ -12,7 +12,6 @@ Classifier: License :: OSI Approved :: Python Software Foundation License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Classifier: Programming Language :: Python
14
14
  Classifier: Programming Language :: Python :: 3 :: Only
15
- Classifier: Programming Language :: Python :: 3.8
16
15
  Classifier: Programming Language :: Python :: 3.9
17
16
  Classifier: Programming Language :: Python :: 3.10
18
17
  Classifier: Programming Language :: Python :: 3.11
@@ -1,17 +1,17 @@
1
1
  [build-system]
2
2
  build-backend = "flit_core.buildapi"
3
3
  requires = [
4
- "flit_core>=3.7",
4
+ "flit-core>=3.7",
5
5
  ]
6
6
 
7
7
  [project]
8
8
  name = "python-docs-theme"
9
- version = "2024.6"
9
+ version = "2024.10"
10
10
  description = "The Sphinx theme for the CPython docs and related projects"
11
11
  readme = "README.md"
12
12
  license.file = "LICENSE"
13
- authors = [{name = "PyPA", email = "distutils-sig@python.org"}]
14
- requires-python = ">=3.8"
13
+ authors = [ { name = "PyPA", email = "distutils-sig@python.org" } ]
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",
@@ -33,22 +32,18 @@ urls.Code = "https://github.com/python/python-docs-theme"
33
32
  urls.Download = "https://pypi.org/project/python-docs-theme/"
34
33
  urls.Homepage = "https://github.com/python/python-docs-theme/"
35
34
  urls."Issue tracker" = "https://github.com/python/python-docs-theme/issues"
36
- [project.entry-points."sphinx.html_themes"]
37
- python_docs_theme = 'python_docs_theme'
35
+ entry-points."sphinx.html_themes".python_docs_theme = "python_docs_theme"
38
36
 
39
37
  [tool.flit.module]
40
38
  name = "python_docs_theme"
41
39
 
42
40
  [tool.flit.sdist]
43
- include = [
44
- "python_docs_theme/",
45
- ]
41
+ include = [ "python_docs_theme/" ]
46
42
 
47
43
  [tool.ruff]
48
44
  fix = true
49
45
 
50
- [tool.ruff.lint]
51
- select = [
46
+ lint.select = [
52
47
  "C4", # flake8-comprehensions
53
48
  "E", # pycodestyle errors
54
49
  "F", # pyflakes errors
@@ -57,19 +52,16 @@ select = [
57
52
  "LOG", # flake8-logging
58
53
  "PGH", # pygrep-hooks
59
54
  "PYI", # flake8-pyi
60
- "RUF100", # unused noqa (yesqa)
61
55
  "RUF022", # unsorted-dunder-all
56
+ "RUF100", # unused noqa (yesqa)
62
57
  "UP", # pyupgrade
63
58
  "W", # pycodestyle warnings
64
59
  "YTT", # flake8-2020
65
60
  ]
66
- ignore = [
67
- "E203", # Whitespace before ':'
68
- "E221", # Multiple spaces before operator
69
- "E226", # Missing whitespace around arithmetic operator
70
- "E241", # Multiple spaces after ','
61
+ lint.ignore = [
62
+ "E203", # Whitespace before ':'
63
+ "E221", # Multiple spaces before operator
64
+ "E226", # Missing whitespace around arithmetic operator
65
+ "E241", # Multiple spaces after ','
71
66
  ]
72
-
73
-
74
- [tool.ruff.lint.isort]
75
- required-imports = ["from __future__ import annotations"]
67
+ lint.isort.required-imports = [ "from __future__ import annotations" ]
@@ -2,7 +2,7 @@ from __future__ import annotations
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,7 +12,7 @@ from sphinx.builders.html import StandaloneHTMLBuilder
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/")