From 129cadb2c565cb2294bd957cd3c3fc0d76e3a5b1 Mon Sep 17 00:00:00 2001 From: Bart Kamphorst Date: Wed, 26 Oct 2022 17:45:59 +0200 Subject: [PATCH] feat!: end support for python 3.7 --- .github/workflows/python-package.yml | 2 +- piplicenses.py | 5 +---- setup.cfg | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 325dffb..45fa3c8 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v2 diff --git a/piplicenses.py b/piplicenses.py index 764461d..8e63359 100644 --- a/piplicenses.py +++ b/piplicenses.py @@ -50,10 +50,7 @@ from prettytable import NONE as RULE_NONE PTABLE = False -if sys.version_info < (3, 8): - import importlib_metadata -else: - from importlib import metadata as importlib_metadata +from importlib import metadata as importlib_metadata open = open # allow monkey patching diff --git a/setup.cfg b/setup.cfg index c1d1933..f3f351c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,7 +10,6 @@ classifiers = License :: OSI Approved :: MIT License Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 @@ -21,7 +20,7 @@ classifiers = [options] packages = find: include_package_data = True -python_requires = ~=3.7 +python_requires = ~=3.8 py_modules = piplicenses setup_requires = @@ -29,7 +28,6 @@ setup_requires = pytest-runner install_requires = PTable - importlib_metadata; python_version<"3.8" tests_require = docutils pytest-cov