Skip to content

Commit

Permalink
Drop support for Python 3.6 (#1661)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Aug 23, 2023
1 parent 08e36fc commit 4a51b81
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 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.6",
"3.7",
"3.8",
"3.9",
Expand Down
1 change: 0 additions & 1 deletion elasticsearch_dsl/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def to_dict(self):
return d

def save(self, using=None):

es = get_connection(using or self._index._using)
return es.indices.put_template(name=self._template_name, body=self.to_dict())

Expand Down
1 change: 0 additions & 1 deletion elasticsearch_dsl/update_by_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@


class UpdateByQuery(Request):

query = ProxyDescriptor("query")

def __init__(self, **kwargs):
Expand Down
9 changes: 4 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

@nox.session(
python=[
"3.6",
"3.7",
"3.8",
"3.9",
Expand All @@ -55,8 +54,8 @@ def test(session):

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

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

@nox.session
def lint(session):
session.install("flake8", "black==21.12b0", "click==8.0.4", "isort")
session.run("black", "--check", "--target-version=py36", *SOURCE_FILES)
session.install("flake8", "black~=23.0", "isort")
session.run("black", "--check", "--target-version=py37", *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 @@ -53,7 +53,7 @@
author="Elastic Client Library Maintainers",
author_email="client-libs@elastic.co",
packages=find_packages(where=".", exclude=("tests*",)),
python_requires=">=3.6",
python_requires=">=3.7",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
Expand All @@ -62,7 +62,6 @@
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down

0 comments on commit 4a51b81

Please sign in to comment.