Skip to content

Commit b976adb

Browse files
committed
MAINT: removing python 3.9 support
1 parent 2ede5c9 commit b976adb

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: continuous-integration
1+
-name: continuous-integration
22

33
on:
44
push:
@@ -39,6 +39,12 @@ jobs:
3939
sphinx: "~=8.0"
4040
myst-parser: "~=4.0"
4141
pillow: "==11.0.0"
42+
# Oldest known-compatible dependencies
43+
- os: ubuntu-latest
44+
python-version: "3.10"
45+
sphinx: "==5.0.0"
46+
myst-parser: "==1.0.0"
47+
pillow: "==11.0.0"
4248
# Mid-range dependencies
4349
- os: ubuntu-latest
4450
python-version: "3.11"

myst_nb/sphinx_ext.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,10 @@ def _get_file_hash(path: Path):
194194

195195
@contextlib.contextmanager
196196
def _import_resources_path(package: ModuleType, resource: str) -> Iterator[Path]:
197-
if sys.version_info < (3, 9):
198-
with import_resources.path(package, resource) as path:
199-
yield path
200-
else:
201-
with import_resources.as_file(
202-
import_resources.files(package).joinpath(resource)
203-
) as path:
204-
yield path
197+
with import_resources.as_file(
198+
import_resources.files(package).joinpath(resource)
199+
) as path:
200+
yield path
205201

206202

207203
def add_css(app: Sphinx):

0 commit comments

Comments
 (0)