Skip to content

Commit

Permalink
docs: fix docs building on Python < 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed Jun 24, 2020
1 parent bac4322 commit 124c46b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import os
import datetime
from importlib.metadata import version as get_version
import os
import sys

if sys.version_info >= (3, 8):
from importlib.metadata import version as get_version
else:
from importlib_metadata import version as get_version


# If extensions (or modules to document with autodoc) are in another directory,
Expand Down

0 comments on commit 124c46b

Please sign in to comment.