Skip to content

Commit

Permalink
Show version string
Browse files Browse the repository at this point in the history
|version| was substituted into the main document title, but version=
was never set; the default was empty.
  • Loading branch information
jepler committed Jul 20, 2024
1 parent 27d4fad commit 5a1101f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import sys
import pathlib
import subprocess

sys.path.insert(0, str(pathlib.Path(__file__).parent.parent))
sys.path.append(str(pathlib.Path(__file__).parent / "_ext"))
Expand All @@ -34,7 +35,7 @@
author = 'Jeff Epler'

# 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 ---------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ coverage
mypy; implementation_name=="cpython"
pre-commit
setuptools>=45
setuptools_scm[toml]>=6.0
sphinx
sphinx-autodoc-typehints
sphinx-rtd-theme
Expand Down

0 comments on commit 5a1101f

Please sign in to comment.