Skip to content

Commit

Permalink
Merge #635
Browse files Browse the repository at this point in the history
635: Fixes doc builds on Python 3.7 and earlier. r=AstraLuma a=pathunstrom



Co-authored-by: Piper Thunstrom <pathunstrom@gmail.com>
  • Loading branch information
bors[bot] and pathunstrom authored Oct 2, 2021
2 parents 09db672 + 8400ab5 commit 9299427
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config

import importlib.metadata
try:
import importlib.metadata as metadata
except ImportError:
import importlib_metadata as metadata
import re

# -- Path setup --------------------------------------------------------------
Expand All @@ -27,7 +30,7 @@
author = 'The PPB Community'

# The full version, including alpha/beta/rc tags
release = importlib.metadata.version('ppb')
release = metadata.version('ppb')
# The short X.Y version
version = re.match(r"(\d+\.\d+).*", release).group(1)

Expand Down
1 change: 1 addition & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
sphinx
sphinx_rtd_theme
importlib_metadata; python_version < "3.8"

0 comments on commit 9299427

Please sign in to comment.