Skip to content

Commit

Permalink
importlib_resources 5.0 is python < 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
bnavigator committed Aug 21, 2023
1 parent 76db867 commit b4e588d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ classifiers = [
]
dependencies = [
"jupyter_server>=2.4.0,<3",
"importlib-resources>=5.0;python_version<\"3.9\"",
"jupyterlab>=4.0.2,<5",
"jupyterlab_server>=2.22.1,<3",
"notebook_shim>=0.2,<0.3",
Expand Down Expand Up @@ -59,6 +58,7 @@ test = [
"ipykernel",
"jupyter_server[test]>=2.4.0,<3",
"jupyterlab_server[test]>=2.22.1,<3",
"importlib-resources>=5.0;python_version<\"3.10\"",
]
docs = [
"myst_parser",
Expand Down
7 changes: 4 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import os.path as osp
import pathlib
import shutil
import sys

try:
from importlib.resources import files
except ImportError:
if sys.version_info < (3, 10):
from importlib_resources import files # type:ignore
else:
from importlib.resources import files # type:ignore

import pytest

Expand Down

0 comments on commit b4e588d

Please sign in to comment.