diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2265553..3900c89 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.7-v7.3.3] + python-version: [3.7, 3.8, 3.9, pypy-3.7-v7.3.3] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} diff --git a/setup.cfg b/setup.cfg index 67b951a..e4027ae 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,7 +30,7 @@ classifiers = [options] zip_safe = False include_package_data = True -python_requires = >= 3.6 +python_requires = >= 3.7 packages = find: package_dir = =src diff --git a/src/port_for/__init__.py b/src/port_for/__init__.py index 4ebeb2b..35f9ddf 100644 --- a/src/port_for/__init__.py +++ b/src/port_for/__init__.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import - __version__ = "0.5.0" from ._ranges import UNASSIGNED_RANGES diff --git a/src/port_for/api.py b/src/port_for/api.py index cbb7865..a9e3b2c 100644 --- a/src/port_for/api.py +++ b/src/port_for/api.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import, division, with_statement import contextlib import socket import errno diff --git a/src/port_for/ephemeral.py b/src/port_for/ephemeral.py index b1c1578..9d1e903 100644 --- a/src/port_for/ephemeral.py +++ b/src/port_for/ephemeral.py @@ -6,7 +6,6 @@ Currently only Linux and BSD (including OS X) are supported. """ -from __future__ import absolute_import, with_statement import subprocess from typing import List, Tuple, Dict diff --git a/src/port_for/store.py b/src/port_for/store.py index 4a06bd2..a07b737 100644 --- a/src/port_for/store.py +++ b/src/port_for/store.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import, with_statement import os from configparser import ConfigParser, DEFAULTSECT from typing import Optional, List, Tuple, Union diff --git a/src/port_for/utils.py b/src/port_for/utils.py index c6e1401..361d5c0 100644 --- a/src/port_for/utils.py +++ b/src/port_for/utils.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import import itertools from typing import Iterable, Iterator, Tuple, Set diff --git a/tests/test_cases.py b/tests/test_cases.py index 9f0f21e..6b32b99 100644 --- a/tests/test_cases.py +++ b/tests/test_cases.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import import unittest import tempfile import mock