Skip to content

Commit

Permalink
Merge pull request #406 from datalad/fix-windows-entry-points
Browse files Browse the repository at this point in the history
Specify minimum version of `importlib-metadata` and `importlib-resources`
  • Loading branch information
christian-monch authored Jan 17, 2024
2 parents ad855b8 + 20b9762 commit 0047a32
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion datalad_metalad/extractors/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import sys

import pytest
if sys.version_info < (3, 9):
if sys.version_info < (3, 10):
from importlib_metadata import entry_points
else:
from importlib.metadata import entry_points
Expand Down
2 changes: 1 addition & 1 deletion datalad_metalad/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def run_filter(filter_name: str,

def get_filter_class(filter_name: str) -> Type[MetadataFilterBase]:
""" Get a filter class from its name"""
if sys.version_info < (3, 9):
if sys.version_info < (3, 10):
from importlib_metadata import entry_points
else:
from importlib.metadata import entry_points
Expand Down
4 changes: 2 additions & 2 deletions requirements-devel.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
coverage
datalad>=0.18
datalad-metadata-model>=0.3.10
importlib-resources
importlib-metadata
importlib-metadata>=3.6; python_version < '3.10'
importlib-resources>=3.0; python_version < '3.9'
sphinx>=1.7.8
sphinx-rtd-theme
pre-commit
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
datalad>=0.18
datalad-metadata-model>=0.3.10
importlib-resources
importlib-metadata
importlib-metadata>=3.6; python_version < '3.10'
importlib-resources>=3.0; python_version < '3.9'
pytest
pyyaml
sphinx>=1.7.8
Expand Down

0 comments on commit 0047a32

Please sign in to comment.