From 86dce055e7dd561a0d5d33435737f6fd18fbc5ac Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 2 Feb 2022 21:19:41 +0000 Subject: [PATCH] Bump minimum supported Python to 3.6 --- .github/workflows/test.yml | 2 +- entrypoints.py | 5 +---- pyproject.toml | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) 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/"