Skip to content

Commit

Permalink
Use backport until 3.9 is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Nov 1, 2024
1 parent 4296130 commit 6bf6871
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Lib/gflanguages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@

from gflanguages import languages_public_pb2
from google.protobuf import text_format
from pkg_resources import resource_filename
from importlib.resources import files
from importlib_resources import files

try:
from ._version import version as __version__ # type: ignore
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ authors = [
]

dependencies = [
"protobuf>=3.7.0, <4"
"protobuf>=3.7.0, <4",
"importlib_resources", # Needed for 3.9 and below
]

[project.optional-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parsable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from importlib.resources import files
from importlib_resources import files
import glob
import os
import pytest
Expand Down

0 comments on commit 6bf6871

Please sign in to comment.