summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-08-18 09:37:58 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-08-16 09:03:02 +0100
commita61f101999f7b5d9ff2b3a43afaacf57b1001a5f (patch)
tree1461f1aebb23b5a6ea7281ef810675da792e291c
parent2de6e10a96fb029f5b6ec646536f24e441ec2f51 (diff)
docs build use DEB_VERSION_UPSTREAM
Gbp-Pq: Name docs-build-use-DEB_VERSION_UPSTREAM.patch
-rw-r--r--docs/conf.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 5d3c986..f01a2ba 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -76,8 +76,6 @@ else:
sys.path.insert(0, os.path.join(os.path.abspath('.'), './_ext'))
sys.path.insert(0, os.path.join(os.path.abspath('.'), '..'))
-import pikepdf
-
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
@@ -123,7 +121,7 @@ author = u'James R. Barlow'
# |version| and |release|, also used in various other places throughout the
# built documents.
-release = get_distribution('pikepdf').version
+release = os.environ['DEB_VERSION_UPSTREAM']
version = '.'.join(release.split('.')[:2])
# The language for content autogenerated by Sphinx. Refer to documentation