Skip to content

Commit a4497a9

Browse files
authored
Merge pull request #524 from hugovk/rm-config-code
Remove redundant compatibility code for 3.8 and lower
2 parents 95ecf2a + 49427ed commit a4497a9

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

newsfragments/524.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed cruft from Python 3.8.

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ requires-python = ">=3.9"
2424
license = "Apache-2.0"
2525
dependencies = [
2626
"zipp>=3.20",
27-
'typing-extensions>=3.6.4; python_version < "3.8"',
2827
]
2928
dynamic = ["version"]
3029

@@ -37,7 +36,6 @@ test = [
3736
"pytest >= 6, != 8.1.*",
3837

3938
# local
40-
'importlib_resources>=1.3; python_version < "3.9"',
4139
"packaging",
4240
"pyfakefs",
4341
"flufl.flake8",

tests/fixtures.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@
66
import shutil
77
import sys
88
import textwrap
9+
from importlib import resources
910

1011
from . import _path
1112
from ._path import FilesSpec
1213
from .compat.py39 import os_helper
1314
from .compat.py312 import import_helper
1415

15-
if sys.version_info >= (3, 9):
16-
from importlib import resources
17-
else:
18-
import importlib_resources as resources
19-
2016

2117
@contextlib.contextmanager
2218
def tmp_path():

0 commit comments

Comments
 (0)