Show version string
|version| was substituted into the main document title, but version= was never set; the default was empty.
This commit is contained in:
parent
27d4fad0f5
commit
5a1101fc6c
2 changed files with 3 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import pathlib
|
import pathlib
|
||||||
|
import subprocess
|
||||||
|
|
||||||
sys.path.insert(0, str(pathlib.Path(__file__).parent.parent))
|
sys.path.insert(0, str(pathlib.Path(__file__).parent.parent))
|
||||||
sys.path.append(str(pathlib.Path(__file__).parent / "_ext"))
|
sys.path.append(str(pathlib.Path(__file__).parent / "_ext"))
|
||||||
|
|
@ -34,7 +35,7 @@ copyright = '2021-2024, Jeff Epler'
|
||||||
author = 'Jeff Epler'
|
author = 'Jeff Epler'
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = '1.1.0'
|
version = release = subprocess.check_output(["python", "-m", "setuptools_scm"], cwd="..", encoding="ascii").strip()
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ coverage
|
||||||
mypy; implementation_name=="cpython"
|
mypy; implementation_name=="cpython"
|
||||||
pre-commit
|
pre-commit
|
||||||
setuptools>=45
|
setuptools>=45
|
||||||
|
setuptools_scm[toml]>=6.0
|
||||||
sphinx
|
sphinx
|
||||||
sphinx-autodoc-typehints
|
sphinx-autodoc-typehints
|
||||||
sphinx-rtd-theme
|
sphinx-rtd-theme
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue