diff --git a/docs/conf.py b/docs/conf.py index 5b874aa..723a41c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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")) @@ -34,7 +35,7 @@ copyright = '2021-2024, Jeff Epler' 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 --------------------------------------------------- diff --git a/requirements-dev.txt b/requirements-dev.txt index bc7e9e4..3d25a4c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -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