diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-08-18 09:37:58 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-09-28 14:18:59 -0700 |
commit | 6d1f0125bbe0f631107610cd143b558829eba6b6 (patch) | |
tree | 0f297e01b1a6ac28154a387faac1a946d0640fd0 /docs | |
parent | c99e8f0c662626f1a4866fead99175673c81cf2d (diff) |
docs build use DEB_VERSION_UPSTREAM
Gbp-Pq: Name docs-build-use-DEB_VERSION_UPSTREAM.patch
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index 9de0b34..7dd3ebc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -92,8 +92,6 @@ autodoc_typehints = 'description' sys.path.insert(0, os.path.join(os.path.abspath('.'), './_ext')) sys.path.insert(0, os.path.join(os.path.abspath('.'), '..')) -import pikepdf # isort:skip pylint: disable=unused-import - # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. @@ -138,7 +136,7 @@ author = 'James R. Barlow' # |version| and |release|, also used in various other places throughout the # built documents. -release = pikepdf.__version__ +release = os.environ['DEB_VERSION_UPSTREAM'] version = '.'.join(release.split('.')[:2]) # The language for content autogenerated by Sphinx. Refer to documentation |