Skip to content

Commit bed6a81

Browse files
committed
Drop support for Python 3.5. Fixes #107.
1 parent 68d1086 commit bed6a81

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
test:
77
strategy:
88
matrix:
9-
python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
9+
python: [2.7, 3.6, 3.7, 3.8, 3.9]
1010
platform: [ubuntu-latest, macos-latest, windows-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:

docs/changelog.rst

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
importlib_resources NEWS
33
==========================
44

5+
v3.3.0
6+
======
7+
8+
* #107: Drop support for Python 3.5. Now requires Python 2.7 or 3.6+.
9+
510
v3.2.0
611
======
712

importlib_resources/_py3.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import sys
32
import io
43

54
from . import _common
@@ -12,16 +11,13 @@
1211
from typing import cast
1312
from typing.io import BinaryIO, TextIO
1413
from collections.abc import Sequence
15-
from ._compat import singledispatch
14+
from functools import singledispatch
1615

1716
if False: # TYPE_CHECKING
1817
from typing import ContextManager
1918

2019
Package = Union[ModuleType, str]
21-
if sys.version_info >= (3, 6):
22-
Resource = Union[str, os.PathLike] # pragma: <=35
23-
else:
24-
Resource = str # pragma: >=36
20+
Resource = Union[str, os.PathLike]
2521

2622

2723
def open_binary(package: Package, resource: Resource) -> BinaryIO:

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ project_urls =
1919
[options]
2020
packages = find:
2121
include_package_data = true
22-
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
22+
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*
2323
install_requires =
2424
pathlib2; python_version < '3'
2525
typing; python_version < '3.5'

0 commit comments

Comments
 (0)