Blame SOURCES/importlib_metadata_py38.patch

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