From 4d19a48786409f0c3e0b3de96287658174e2ec1d Mon Sep 17 00:00:00 2001 From: Max van Zyl Date: Thu, 29 Feb 2024 14:54:15 -0500 Subject: [PATCH] Fix importlib import On Python versions < 3.10 (I think I'm correct in saying this fails for 3.9), running `pytest` fails if using `importlib.resources` (see https://github.com/mu-editor/pup/issues/35). This can be fixed by using `importlib_resources` instead (GitHub Actions testing should work now for all tested versions of Python). --- atomdb/periodic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atomdb/periodic.py b/atomdb/periodic.py index efc545c1..646a97f4 100644 --- a/atomdb/periodic.py +++ b/atomdb/periodic.py @@ -1,7 +1,7 @@ import csv import numpy as np -from importlib.resources import files +from importlib_resources import files __all__ = ["sym2num", "name2num", "num2sym", "num2name", "Atom"]