Blame SOURCES/importlib_metadata_py38.patch

066c66
diff --git a/setup.cfg b/setup.cfg
066c66
index 10fdda8..20ba0d7 100644
066c66
--- a/setup.cfg
066c66
+++ b/setup.cfg
066c66
@@ -38,7 +38,7 @@ package_dir =
066c66
 include_package_data = true
066c66
 python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
066c66
 install_requires = 
066c66
-	importlib-metadata
066c66
+	importlib-metadata;python_version<"3.8"
066c66
 	packaging
066c66
 	Sphinx
066c66
 
066c66
diff --git a/src/pallets_sphinx_themes/__init__.py b/src/pallets_sphinx_themes/__init__.py
066c66
index d16359e..9a3bbd5 100644
066c66
--- a/src/pallets_sphinx_themes/__init__.py
066c66
+++ b/src/pallets_sphinx_themes/__init__.py
066c66
@@ -5,7 +5,11 @@ import sys
066c66
 import textwrap
066c66
 from collections import namedtuple
066c66
 
066c66
-import importlib_metadata
066c66
+if sys.version_info >= (3, 8):
066c66
+    from importlib import metadata as importlib_metadata
066c66
+else:
066c66
+    import importlib_metadata
066c66
+
066c66
 from sphinx.builders._epub_base import EpubBuilder
066c66
 from sphinx.errors import ExtensionError
066c66