Skip to content

Commit 845c3bd

Browse files
committed
Support Python 3.9 to 3.13
1 parent b09712c commit 845c3bd

File tree

9 files changed

+16
-15
lines changed

9 files changed

+16
-15
lines changed

.buildkite/generatesteps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def benchmark_to_steps(python, connection_class):
1414
"env": {
1515
"PYTHON_VERSION": f"{python}",
1616
"PYTHON_CONNECTION_CLASS": f"{connection_class}",
17-
# TEMPORARY for 3.11
17+
# For development versions
1818
# https://github.com/aio-libs/aiohttp/issues/6600
1919
"AIOHTTP_NO_EXTENSIONS": 1,
2020
# https://github.com/aio-libs/frozenlist/issues/285
@@ -53,7 +53,7 @@ def benchmark_to_steps(python, connection_class):
5353

5454
if __name__ == "__main__":
5555
steps = []
56-
for python in ["3.7", "3.8", "3.9", "3.10", "3.11"]:
56+
for python in ["3.9", "3.10", "3.11", "3.12", "3.13"]:
5757
for connection_class in ["urllib3", "requests"]:
5858
steps.extend(benchmark_to_steps(python, connection_class))
5959
print(yaml.dump({"steps": steps}, Dumper=yaml.Dumper, sort_keys=False))

.buildkite/run-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
# Default environment variables
55
export FORCE_COLOR=1
6-
export PYTHON_VERSION="${PYTHON_VERSION:=3.9}"
6+
export PYTHON_VERSION="${PYTHON_VERSION:=3.12}"
77
export PYTHON_CONNECTION_CLASS="${PYTHON_CONNECTION_CLASS:=urllib3}"
88
export EC_PROJECT_NAME="$EC_PROJECT_PREFIX-$BUILDKITE_JOB_ID"
99
buildkite-agent meta-data set $EC_PROJECT_PREFIX $EC_PROJECT_NAME

.buildkite/teardown-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -euo pipefail
33

44
# Default environment variables
5-
export PYTHON_VERSION="${PYTHON_VERSION:=3.9}"
5+
export PYTHON_VERSION="${PYTHON_VERSION:=3.12}"
66
export PYTHON_CONNECTION_CLASS="${PYTHON_CONNECTION_CLASS:=urllib3}"
77
export EC_PROJECT_NAME=$(buildkite-agent meta-data get $EC_PROJECT_PREFIX)
88

.github/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION=3.9
1+
ARG PYTHON_VERSION=3.12
22
FROM python:${PYTHON_VERSION}
33

44
WORKDIR /code/elasticsearch-serverless-python

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
strategy:
6060
fail-fast: false
6161
matrix:
62-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
62+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6363
experimental: [false]
6464
nox-session: [""]
6565
runs-on: ["ubuntu-latest"]
@@ -74,6 +74,7 @@ jobs:
7474
uses: actions/setup-python@v4
7575
with:
7676
python-version: ${{ matrix.python-version }}
77+
allow-prereleases: true
7778
- name: Install dependencies
7879
run: |
7980
python -m pip install nox
@@ -83,7 +84,7 @@ jobs:
8384
env:
8485
PYTHON_VERSION: ${{ matrix.python-version }}
8586
NOX_SESSION: ${{ matrix.nox-session }}
86-
# TEMPORARY for 3.11
87+
# For development versions
8788
# https://github.com/aio-libs/aiohttp/issues/6600
8889
AIOHTTP_NO_EXTENSIONS: 1
8990
# https://github.com/aio-libs/frozenlist/issues/285

docs/guide/configuration.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ es = Elasticsearch(
5252
[discrete]
5353
==== TLS versions
5454

55-
Configuring the minimum TLS version to connect to is done via the `ssl_version` parameter. By default this is set to a minimum value of TLSv1.2. In Python 3.7+ you can use the new `ssl.TLSVersion` enumeration to specify versions.
55+
Configuring the minimum TLS version to connect to is done via the `ssl_version` parameter. By default this is set to a minimum value of TLSv1.2. You can use the new `ssl.TLSVersion` enumeration to specify versions.
5656

5757
[source,python]
5858
------------------------------------

docs/guide/getting-started.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ operations with it.
88
[discrete]
99
=== Requirements
1010

11-
* https://www.python.org/[Python] 3.7 or newer
11+
* https://www.python.org/[Python] 3.9 or newer
1212
* https://pip.pypa.io/en/stable/[`pip`], installed by default alongside Python
1313

1414
[discrete]

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
INSTALL_ENV = {"AIOHTTP_NO_EXTENSIONS": "1"}
3232

3333

34-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
34+
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
3535
def test(session):
3636
session.install(".[dev]", env=INSTALL_ENV)
3737

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.2.0.20231031"
88
description = "Python client for Elasticsearch Serverless"
99
readme = "README.rst"
1010
license = "Apache-2.0"
11-
requires-python = ">=3.7, <4"
11+
requires-python = ">=3.9"
1212
authors = [
1313
{ name = "Elastic Client Library Maintainers", email = "client-libs@elastic.co" },
1414
]
@@ -22,13 +22,13 @@ classifiers = [
2222
"Operating System :: OS Independent",
2323
"Programming Language :: Python",
2424
"Programming Language :: Python :: 3",
25-
"Programming Language :: Python :: 3.7",
26-
"Programming Language :: Python :: 3.8",
2725
"Programming Language :: Python :: 3.9",
28-
"Programming Language :: Python :: Implementation :: CPython",
29-
"Programming Language :: Python :: Implementation :: PyPy",
3026
"Programming Language :: Python :: 3.10",
3127
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
30+
"Programming Language :: Python :: Implementation :: CPython",
31+
"Programming Language :: Python :: Implementation :: PyPy",
3232
]
3333
keywords = [
3434
"elasticsearch",

0 commit comments

Comments
 (0)