Skip to content

Commit 8b45de8

Browse files
authored
Support Python 3.13 (#88)
1 parent a5e26b5 commit 8b45de8

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.buildkite/generatesteps.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def benchmark_to_steps(python, connection_class, nox_session):
5454

5555
if __name__ == "__main__":
5656
steps = []
57-
for python in ["3.9", "3.10", "3.11", "3.12"]:
57+
for python in ["3.9", "3.10", "3.11", "3.12", "3.13"]:
5858
for connection_class in ["urllib3", "requests"]:
5959
steps.extend(benchmark_to_steps(python, connection_class, "test"))
6060
steps.extend(benchmark_to_steps("3.9", "urllib3", "test_otel"))
61-
steps.extend(benchmark_to_steps("3.12", "urllib3", "test_otel"))
61+
steps.extend(benchmark_to_steps("3.13", "urllib3", "test_otel"))
6262
print(yaml.dump({"steps": steps}, Dumper=yaml.Dumper, sort_keys=False))

.buildkite/teardown-tests

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
set -euo pipefail
33

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

99
# fetch cloud creds used by qaf
1010
CLOUD_ACCESS_KEY=$(vault read -field="$EC_ENV" secret/ci/elastic-elasticsearch-serverless-python/cloud-access)
11-
echo "{\"api_key\":{\"$EC_ENV\":\"$CLOUD_ACCESS_KEY\"}}" > "$(pwd)/cloud.json"
11+
echo "{\"api_key\":{\"$EC_ENV\":\"$CLOUD_ACCESS_KEY\"}}" >"$(pwd)/cloud.json"
1212

1313
run_qaf() {
1414
cmd=$1

.github/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION=3.12
1+
ARG PYTHON_VERSION=3.13
22
FROM python:${PYTHON_VERSION}
33

44
WORKDIR /code/elasticsearch-serverless-python

.github/workflows/tests.yml

+1-1
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.9", "3.10", "3.11", "3.12"]
62+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6363
experimental: [false]
6464
nox-session: [""]
6565
runs-on: ["ubuntu-latest"]

noxfile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ def pytest_argv():
4747
]
4848

4949

50-
@nox.session(python=["3.9", "3.10", "3.11", "3.12"])
50+
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
5151
def test(session):
5252
session.install(".[dev]", env=INSTALL_ENV)
5353

5454
session.run(*pytest_argv(), *(session.posargs))
5555

5656

57-
@nox.session(python=["3.9", "3.12"])
57+
@nox.session(python=["3.9", "3.13"])
5858
def test_otel(session):
5959
session.install(".[dev]", env=INSTALL_ENV)
6060
session.install("opentelemetry-api", "opentelemetry-sdk")

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.10",
2727
"Programming Language :: Python :: 3.11",
2828
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
2930
"Programming Language :: Python :: Implementation :: CPython",
3031
"Programming Language :: Python :: Implementation :: PyPy",
3132
]

0 commit comments

Comments
 (0)