Skip to content

Commit

Permalink
Use importlib_metadata for 3.9 as well, refs #2057
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Sep 21, 2023
1 parent f130c7c commit e4f8688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion datasette/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

if sys.version_info >= (3, 9):
import importlib.resources as importlib_resources
import importlib.metadata as importlib_metadata
else:
import importlib_resources
if sys.version_info >= (3, 10):
import importlib.metadata as importlib_metadata
else:
import importlib_metadata


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_version():
"hupper>=1.9",
"httpx>=0.20",
'importlib_resources>=1.3.1; python_version < "3.9"',
'importlib_metadata>=4.6; python_version < "3.9"',
'importlib_metadata>=4.6; python_version < "3.10"',
"pint>=0.9",
"pluggy>=1.0",
"uvicorn>=0.11",
Expand Down

0 comments on commit e4f8688

Please sign in to comment.