Skip to content

Commit

Permalink
Remove support for Python 3.7 (#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Mar 20, 2024
1 parent 7c8d668 commit ab1421a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
fail-fast: false
matrix:
python-version: [
"3.7",
"3.8",
"3.9",
"3.10",
Expand Down
5 changes: 2 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

@nox.session(
python=[
"3.7",
"3.8",
"3.9",
"3.10",
Expand All @@ -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)

Expand All @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion utils/build-dists.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ab1421a

Please sign in to comment.