From: Sean Whitton <spwhitton@spwhitton.name>
Date: Sat, 18 Aug 2018 09:37:58 -0700
Subject: docs build use DEB_VERSION_UPSTREAM

---
 docs/conf.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/docs/conf.py
+++ b/docs/conf.py
@@ -77,8 +77,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  # isort:skip pylint: disable=unused-import
-
 # -- General configuration ------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
@@ -124,7 +122,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
