Skip to content

Commit d45e7d8

Browse files
mikaelfrykholmtheseal
authored andcommitted
Make it work with python3.9.
1 parent 2254a58 commit d45e7d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "pyFF"
33
version = "2.1.5"
44
readme = "README.rst"
55
description = "Federation Feeder"
6-
requires-python = ">=3.7"
6+
requires-python = ">=3.9"
77
license = {file = "LICENSE"}
88

99
authors = [
@@ -19,7 +19,7 @@ maintainers = [
1919
[tool.ruff]
2020
# Allow lines to be as long as 120.
2121
line-length = 120
22-
target-version = "py37"
22+
target-version = "py39"
2323
[tool.ruff.format]
2424
quote-style = "preserve"
2525

src/pyff/test/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ def sys_exit(self, code):
126126

127127
@classmethod
128128
def setUpClass(cls):
129-
with importlib.resources.path(
130-
__name__, 'data'
131-
) as context: # We just want the path for now to be compatible downstream
132-
cls.datadir = context.as_posix()
129+
cls.datadir = importlib.resources.files(
130+
__name__,
131+
).joinpath('data')
132+
133133
cls.private_keyspec = tempfile.NamedTemporaryFile('w').name
134134
cls.public_keyspec = tempfile.NamedTemporaryFile('w').name
135135

0 commit comments

Comments
 (0)