From ab1421a69078cee3012dd63e703ff5700f4b74a8 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Wed, 20 Mar 2024 11:38:37 +0000 Subject: [PATCH] Remove support for Python 3.7 (#1717) --- .github/workflows/ci.yml | 1 - noxfile.py | 5 ++--- setup.py | 3 +-- utils/build-dists.py | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4541fe84..7fac2d9b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,6 @@ jobs: fail-fast: false matrix: python-version: [ - "3.7", "3.8", "3.9", "3.10", diff --git a/noxfile.py b/noxfile.py index f44c2a739..3031effd0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -30,7 +30,6 @@ @nox.session( python=[ - "3.7", "3.8", "3.9", "3.10", @@ -56,7 +55,7 @@ def test(session): @nox.session(python="3.12") def format(session): session.install("black~=24.0", "isort") - session.run("black", "--target-version=py37", *SOURCE_FILES) + session.run("black", "--target-version=py38", *SOURCE_FILES) session.run("isort", *SOURCE_FILES) session.run("python", "utils/license-headers.py", "fix", *SOURCE_FILES) @@ -66,7 +65,7 @@ def format(session): @nox.session(python="3.12") def lint(session): session.install("flake8", "black~=24.0", "isort") - session.run("black", "--check", "--target-version=py37", *SOURCE_FILES) + session.run("black", "--check", "--target-version=py38", *SOURCE_FILES) session.run("isort", "--check", *SOURCE_FILES) session.run("flake8", "--ignore=E501,E741,W503", *SOURCE_FILES) session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES) diff --git a/setup.py b/setup.py index 6621507ca..3f3aa7864 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ author="Elastic Client Library Maintainers", author_email="client-libs@elastic.co", packages=find_packages(where=".", exclude=("tests*",)), - python_requires=">=3.7", + python_requires=">=3.8", classifiers=[ "Development Status :: 4 - Beta", "License :: OSI Approved :: Apache Software License", @@ -63,7 +63,6 @@ "Programming Language :: Python", "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", diff --git a/utils/build-dists.py b/utils/build-dists.py index 6189f7c91..83f66bd20 100644 --- a/utils/build-dists.py +++ b/utils/build-dists.py @@ -47,7 +47,7 @@ def run(*argv, expect_exit_code=0): else: os.chdir(tmp_dir) - cmd = " ".join(shlex.quote(x) for x in argv) + cmd = shlex.join(argv) print("$ " + cmd) exit_code = os.system(cmd) if exit_code != expect_exit_code: