Skip to content

Commit

Permalink
Use importlib_metadata for 3.9, too
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Nov 28, 2023
1 parent e7beac5 commit 8a23d72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pynxtools/dataconverter/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from pynxtools.dataconverter.template import Template
from pynxtools.nexus import nexus

if sys.version_info.major >= 3 and sys.version_info.minor > 8:
if sys.version_info.major >= 3 and sys.version_info.minor > 9:
from importlib.metadata import entry_points
else:
from importlib_metadata import entry_points
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ dependencies = [
"mergedeep"
]

[options]
install_requires = "importlib-metadata ; python_version < '3.10'"

[project.urls]
"Homepage" = "https://github.com/FAIRmat-NFDI/pynxtools"
"Bug Tracker" = "https://github.com/FAIRmat-NFDI/pynxtools/issues"
Expand Down

0 comments on commit 8a23d72

Please sign in to comment.