Skip to content

Commit

Permalink
Drop support for Python 3.5. Fixes python#107.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 28, 2020
1 parent 68d1086 commit bed6a81
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
strategy:
matrix:
python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
python: [2.7, 3.6, 3.7, 3.8, 3.9]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
importlib_resources NEWS
==========================

v3.3.0
======

* #107: Drop support for Python 3.5. Now requires Python 2.7 or 3.6+.

v3.2.0
======

Expand Down
8 changes: 2 additions & 6 deletions importlib_resources/_py3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import sys
import io

from . import _common
Expand All @@ -12,16 +11,13 @@
from typing import cast
from typing.io import BinaryIO, TextIO
from collections.abc import Sequence
from ._compat import singledispatch
from functools import singledispatch

if False: # TYPE_CHECKING
from typing import ContextManager

Package = Union[ModuleType, str]
if sys.version_info >= (3, 6):
Resource = Union[str, os.PathLike] # pragma: <=35
else:
Resource = str # pragma: >=36
Resource = Union[str, os.PathLike]


def open_binary(package: Package, resource: Resource) -> BinaryIO:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ project_urls =
[options]
packages = find:
include_package_data = true
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*
install_requires =
pathlib2; python_version < '3'
typing; python_version < '3.5'
Expand Down

0 comments on commit bed6a81

Please sign in to comment.