Skip to content

Commit b8fe224

Browse files
Remove support for Python 3.7 (#1717) (#1725)
(cherry picked from commit ab1421a) Co-authored-by: Miguel Grinberg <[email protected]>
1 parent df0c01e commit b8fe224

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

.github/workflows/ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
fail-fast: false
6262
matrix:
6363
python-version: [
64-
"3.7",
6564
"3.8",
6665
"3.9",
6766
"3.10",

noxfile.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
@nox.session(
3232
python=[
33-
"3.7",
3433
"3.8",
3534
"3.9",
3635
"3.10",
@@ -56,7 +55,7 @@ def test(session):
5655
@nox.session(python="3.12")
5756
def format(session):
5857
session.install("black~=24.0", "isort")
59-
session.run("black", "--target-version=py37", *SOURCE_FILES)
58+
session.run("black", "--target-version=py38", *SOURCE_FILES)
6059
session.run("isort", *SOURCE_FILES)
6160
session.run("python", "utils/license-headers.py", "fix", *SOURCE_FILES)
6261

@@ -66,7 +65,7 @@ def format(session):
6665
@nox.session(python="3.12")
6766
def lint(session):
6867
session.install("flake8", "black~=24.0", "isort")
69-
session.run("black", "--check", "--target-version=py37", *SOURCE_FILES)
68+
session.run("black", "--check", "--target-version=py38", *SOURCE_FILES)
7069
session.run("isort", "--check", *SOURCE_FILES)
7170
session.run("flake8", "--ignore=E501,E741,W503", *SOURCE_FILES)
7271
session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES)

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
author="Elastic Client Library Maintainers",
5555
author_email="[email protected]",
5656
packages=find_packages(where=".", exclude=("tests*",)),
57-
python_requires=">=3.7",
57+
python_requires=">=3.8",
5858
classifiers=[
5959
"Development Status :: 4 - Beta",
6060
"License :: OSI Approved :: Apache Software License",
@@ -63,7 +63,6 @@
6363
"Programming Language :: Python",
6464
"Programming Language :: Python :: 3",
6565
"Programming Language :: Python :: 3 :: Only",
66-
"Programming Language :: Python :: 3.7",
6766
"Programming Language :: Python :: 3.8",
6867
"Programming Language :: Python :: 3.9",
6968
"Programming Language :: Python :: 3.10",

utils/build-dists.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run(*argv, expect_exit_code=0):
4747
else:
4848
os.chdir(tmp_dir)
4949

50-
cmd = " ".join(shlex.quote(x) for x in argv)
50+
cmd = shlex.join(argv)
5151
print("$ " + cmd)
5252
exit_code = os.system(cmd)
5353
if exit_code != expect_exit_code:

0 commit comments

Comments
 (0)