Skip to content

Commit 7cadb9f

Browse files
Drop Python 3.9 support (#3114) (#3118)
* Drop Python 3.9 support * more references to 3.9 updated (cherry picked from commit c275ded) Co-authored-by: Miguel Grinberg <[email protected]>
1 parent 7ad1b60 commit 7cadb9f

File tree

10 files changed

+9
-11
lines changed

10 files changed

+9
-11
lines changed

.buildkite/pipeline.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ steps:
1111
matrix:
1212
setup:
1313
python:
14-
- "3.9"
1514
- "3.10"
1615
- "3.11"
1716
- "3.12"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
strategy:
3939
fail-fast: false
4040
matrix:
41-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
41+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
4242
nox-session: [""]
4343
runs-on: ["ubuntu-latest"]
4444

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ found at `.buildkite/run-elasticsearch.sh`.
1717

1818
There are several environment variables that control integration tests:
1919

20-
- `PYTHON_VERSION`: Version of Python to use, defaults to `3.9`
20+
- `PYTHON_VERSION`: Version of Python to use, defaults to `3.14`
2121
- `PYTHON_CONNECTION_CLASS`: Connection class to use, defaults to `Urllib3HttpConnection`
2222
- `STACK_VERSION`: Version of Elasticsearch to use. These should be
2323
the same as tags of `docker.elastic.co/elasticsearch/elasticsearch`

docs/reference/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This page guides you through the installation process of the Python client, show
1111

1212
### Requirements [_requirements]
1313

14-
* [Python](https://www.python.org/) 3.9 or newer
14+
* [Python](https://www.python.org/) 3.10 or newer
1515
* [`pip`](https://pip.pypa.io/en/stable/), installed by default alongside Python
1616

1717

examples/fastapi-apm/dockerfiles/Dockerfile.app

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9
1+
FROM python:3.10
22

33
EXPOSE 9292
44
WORKDIR /

examples/fastapi-apm/dockerfiles/Dockerfile.ping

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9
1+
FROM python:3.10
22
WORKDIR /
33
RUN python -m pip install \
44
--no-cache \

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def pytest_argv():
4444
]
4545

4646

47-
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"])
47+
@nox.session(python=["3.10", "3.11", "3.12", "3.13", "3.14"])
4848
def test(session):
4949
session.install("-e", ".[dev]", env=INSTALL_ENV, silent=False)
5050

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "elasticsearch"
77
description = "Python client for Elasticsearch"
88
readme = "README.md"
99
license = "Apache-2.0"
10-
requires-python = ">=3.9"
10+
requires-python = ">=3.10"
1111
authors = [
1212
{ name = "Elastic Client Library Maintainers", email = "[email protected]" },
1313
]
@@ -21,7 +21,6 @@ classifiers = [
2121
"Operating System :: OS Independent",
2222
"Programming Language :: Python",
2323
"Programming Language :: Python :: 3",
24-
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
2625
"Programming Language :: Python :: 3.11",
2726
"Programming Language :: Python :: 3.12",

utils/generate-examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
def blacken(filename):
199199
runner = CliRunner()
200200
result = runner.invoke(
201-
black.main, [str(filename), "--line-length=75", "--target-version=py37"]
201+
black.main, [str(filename), "--line-length=75", "--target-version=py310"]
202202
)
203203
assert result.exit_code == 0, result.output
204204

utils/run-unasync-dsl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def main(check=False):
101101
output_dirs = []
102102
for dir in source_dirs:
103103
output_dirs.append(f"{dir[0]}_sync_check/" if check else dir[1])
104-
subprocess.check_call(["black", "--target-version=py38", *output_dirs])
104+
subprocess.check_call(["black", "--target-version=py310", *output_dirs])
105105
subprocess.check_call(["isort", *output_dirs])
106106
for dir, output_dir in zip(source_dirs, output_dirs):
107107
for file in glob("*.py", root_dir=dir[0]):

0 commit comments

Comments
 (0)