Skip to content

Commit f46863e

Browse files
[Backport 8.11] Drop support for Python 3.6 (#131)
* Drop support for Python 3.6 (#109) (cherry picked from commit e853a13) --------- Co-authored-by: Quentin Pradet <[email protected]>
1 parent 83c6e99 commit f46863e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@nox.session()
3131
def format(session):
3232
session.install("black~=23.0", "isort", "pyupgrade")
33-
session.run("black", "--target-version=py36", *SOURCE_FILES)
33+
session.run("black", "--target-version=py37", *SOURCE_FILES)
3434
session.run("isort", *SOURCE_FILES)
3535
session.run("python", "utils/license-headers.py", "fix", *SOURCE_FILES)
3636

@@ -52,14 +52,14 @@ def lint(session):
5252
"python", "-m", "pip", "uninstall", "--yes", "types-urllib3", silent=True
5353
)
5454
session.install(".[develop]")
55-
session.run("black", "--check", "--target-version=py36", *SOURCE_FILES)
55+
session.run("black", "--check", "--target-version=py37", *SOURCE_FILES)
5656
session.run("isort", "--check", *SOURCE_FILES)
5757
session.run("flake8", "--ignore=E501,W503,E203", *SOURCE_FILES)
5858
session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES)
5959
session.run("mypy", "--strict", "--show-error-codes", "elastic_transport/")
6060

6161

62-
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
62+
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"])
6363
def test(session):
6464
session.install(".[develop]")
6565
session.run(

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"dataclasses; python_version<'3.7'",
5454
"importlib-metadata; python_version<'3.8'",
5555
],
56-
python_requires=">=3.6",
56+
python_requires=">=3.7",
5757
extras_require={
5858
"develop": [
5959
"pytest",
@@ -78,7 +78,6 @@
7878
"Operating System :: OS Independent",
7979
"Programming Language :: Python",
8080
"Programming Language :: Python :: 3",
81-
"Programming Language :: Python :: 3.6",
8281
"Programming Language :: Python :: 3.7",
8382
"Programming Language :: Python :: 3.8",
8483
"Programming Language :: Python :: 3.9",

0 commit comments

Comments
 (0)