diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec93677..3c8491d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ "2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10" ] + python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10" ] steps: - uses: actions/checkout@v2 diff --git a/entrypoints.py b/entrypoints.py index 62f1dea..5f6d726 100644 --- a/entrypoints.py +++ b/entrypoints.py @@ -13,10 +13,7 @@ import warnings import zipfile -if sys.version_info[0] >= 3: - import configparser -else: - from backports import configparser +import configparser entry_point_pattern = re.compile(r""" (?P\w+(\.\w+)*) diff --git a/pyproject.toml b/pyproject.toml index 86940a0..1279b10 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,11 +10,9 @@ home-page = "https://github.com/takluyver/entrypoints" description-file = "README.rst" classifiers = [ "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ] -requires-python = ">=2.7" -requires = ["configparser (>=3.5); python_version == '2.7'"] +requires-python = ">=3.6" [tool.flit.metadata.urls] Documentation = "https://entrypoints.readthedocs.io/en/latest/"