From 80503cd3fda49c1bf4fb18a24972a454b68e9666 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Fri, 2 Dec 2022 17:36:42 +0100 Subject: [PATCH] Require Python 3.7 or higher --- .github/workflows/tests.yml | 2 +- CONTRIBUTING.rst | 2 +- setup.py | 4 +++- tox.ini | 3 +-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 288065e..837fcfb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.7] + python-version: [3.7, 3.8, 3.9, pypy-3.7] steps: - name: Checkout repository diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index e6ae58a..60e73a2 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -99,7 +99,7 @@ Before you submit a pull request, check that it meets these guidelines: 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.rst. -3. The pull request should work for Python 2.7, 3.4, 3.5, 3.6, and PyPy. Check +3. The pull request should work for Python 3.7 to 3.11, and PyPy. Check https://travis-ci.org/bndr/pipreqs/pull_requests and make sure that the tests pass for all supported Python versions. diff --git a/setup.py b/setup.py index f119905..8b826ed 100755 --- a/setup.py +++ b/setup.py @@ -43,10 +43,11 @@ 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', ], test_suite='tests', entry_points={ @@ -54,4 +55,5 @@ 'pipreqs=pipreqs.pipreqs:main', ], }, + python_requires='>=3.7', ) diff --git a/tox.ini b/tox.ini index cf5c2c2..aea10ec 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,8 @@ [tox] -envlist = py36, py37, py38, py39, pypy3, flake8 +envlist = py37, py38, py39, pypy3, flake8 [gh-actions] python = - 3.6: py36 3.7: py37 3.8: py38 3.9: py39