diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2018-08-18 09:37:58 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2019-08-16 09:03:02 +0100 |
commit | a61f101999f7b5d9ff2b3a43afaacf57b1001a5f (patch) | |
tree | 1461f1aebb23b5a6ea7281ef810675da792e291c | |
parent | 2de6e10a96fb029f5b6ec646536f24e441ec2f51 (diff) |
docs build use DEB_VERSION_UPSTREAM
Gbp-Pq: Name docs-build-use-DEB_VERSION_UPSTREAM.patch
-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 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 |