File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 4
4
"""
5
5
6
6
import importlib .metadata
7
+ from pathlib import Path
7
8
8
9
from packaging .specifiers import SpecifierSet
10
+ from sphinx_pyproject import SphinxConfig
9
11
10
- project = "VWS-Python-Mock"
11
- author = "Adam Dangoor"
12
+ _pyproject_file = Path (__file__ ).parent .parent .parent / "pyproject.toml"
13
+ _pyproject_config = SphinxConfig (
14
+ pyproject_file = _pyproject_file ,
15
+ config_overrides = {"version" : None },
16
+ )
17
+
18
+ project = _pyproject_config .name
19
+ author = _pyproject_config .author
12
20
13
21
extensions = [
14
22
"sphinx_copybutton" ,
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ optional-dependencies.dev = [
91
91
" sphinx-copybutton==0.5.2" ,
92
92
" sphinx-lint==1.0.0" ,
93
93
" sphinx-paramlinks==0.6" ,
94
+ " sphinx-pyproject==0.3.0" ,
94
95
" sphinx-substitution-extensions==2025.2.19" ,
95
96
" sphinx-toolbox==3.8.3" ,
96
97
" sphinxcontrib-httpdomain==1.8.1" ,
You can’t perform that action at this time.
0 commit comments