Skip to content

Commit 4a51b81

Browse files
authored
Drop support for Python 3.6 (#1661)
1 parent 08e36fc commit 4a51b81

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

.github/workflows/ci.yml

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

elasticsearch_dsl/index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def to_dict(self):
5050
return d
5151

5252
def save(self, using=None):
53-
5453
es = get_connection(using or self._index._using)
5554
return es.indices.put_template(name=self._template_name, body=self.to_dict())
5655

elasticsearch_dsl/update_by_query.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424

2525
class UpdateByQuery(Request):
26-
2726
query = ProxyDescriptor("query")
2827

2928
def __init__(self, **kwargs):

noxfile.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
@nox.session(
3232
python=[
33-
"3.6",
3433
"3.7",
3534
"3.8",
3635
"3.9",
@@ -55,8 +54,8 @@ def test(session):
5554

5655
@nox.session()
5756
def format(session):
58-
session.install("black==21.12b0", "click==8.0.4", "isort")
59-
session.run("black", "--target-version=py36", *SOURCE_FILES)
57+
session.install("black~=23.0", "isort")
58+
session.run("black", "--target-version=py37", *SOURCE_FILES)
6059
session.run("isort", *SOURCE_FILES)
6160
session.run("python", "utils/license-headers.py", "fix", *SOURCE_FILES)
6261

@@ -65,8 +64,8 @@ def format(session):
6564

6665
@nox.session
6766
def lint(session):
68-
session.install("flake8", "black==21.12b0", "click==8.0.4", "isort")
69-
session.run("black", "--check", "--target-version=py36", *SOURCE_FILES)
67+
session.install("flake8", "black~=23.0", "isort")
68+
session.run("black", "--check", "--target-version=py37", *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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
author="Elastic Client Library Maintainers",
5454
author_email="client-libs@elastic.co",
5555
packages=find_packages(where=".", exclude=("tests*",)),
56-
python_requires=">=3.6",
56+
python_requires=">=3.7",
5757
classifiers=[
5858
"Development Status :: 4 - Beta",
5959
"License :: OSI Approved :: Apache Software License",
@@ -62,7 +62,6 @@
6262
"Programming Language :: Python",
6363
"Programming Language :: Python :: 3",
6464
"Programming Language :: Python :: 3 :: Only",
65-
"Programming Language :: Python :: 3.6",
6665
"Programming Language :: Python :: 3.7",
6766
"Programming Language :: Python :: 3.8",
6867
"Programming Language :: Python :: 3.9",

0 commit comments

Comments
 (0)