diff --git a/.buildkite/generatesteps.py b/.buildkite/generatesteps.py index 8c5e30d..922a87e 100644 --- a/.buildkite/generatesteps.py +++ b/.buildkite/generatesteps.py @@ -54,9 +54,9 @@ def benchmark_to_steps(python, connection_class, nox_session): if __name__ == "__main__": steps = [] - for python in ["3.9", "3.10", "3.11", "3.12"]: + for python in ["3.9", "3.10", "3.11", "3.12", "3.13"]: for connection_class in ["urllib3", "requests"]: steps.extend(benchmark_to_steps(python, connection_class, "test")) steps.extend(benchmark_to_steps("3.9", "urllib3", "test_otel")) - steps.extend(benchmark_to_steps("3.12", "urllib3", "test_otel")) + steps.extend(benchmark_to_steps("3.13", "urllib3", "test_otel")) print(yaml.dump({"steps": steps}, Dumper=yaml.Dumper, sort_keys=False)) diff --git a/.buildkite/teardown-tests b/.buildkite/teardown-tests index 81b70e5..cb2ae44 100644 --- a/.buildkite/teardown-tests +++ b/.buildkite/teardown-tests @@ -2,13 +2,13 @@ set -euo pipefail # Default environment variables -export PYTHON_VERSION="${PYTHON_VERSION:=3.12}" +export PYTHON_VERSION="${PYTHON_VERSION:=3.13}" export PYTHON_CONNECTION_CLASS="${PYTHON_CONNECTION_CLASS:=urllib3}" export EC_PROJECT_NAME=$(buildkite-agent meta-data get $EC_PROJECT_PREFIX) # fetch cloud creds used by qaf CLOUD_ACCESS_KEY=$(vault read -field="$EC_ENV" secret/ci/elastic-elasticsearch-serverless-python/cloud-access) -echo "{\"api_key\":{\"$EC_ENV\":\"$CLOUD_ACCESS_KEY\"}}" > "$(pwd)/cloud.json" +echo "{\"api_key\":{\"$EC_ENV\":\"$CLOUD_ACCESS_KEY\"}}" >"$(pwd)/cloud.json" run_qaf() { cmd=$1 diff --git a/.github/Dockerfile b/.github/Dockerfile index 341f3ca..039d691 100644 --- a/.github/Dockerfile +++ b/.github/Dockerfile @@ -1,4 +1,4 @@ -ARG PYTHON_VERSION=3.12 +ARG PYTHON_VERSION=3.13 FROM python:${PYTHON_VERSION} WORKDIR /code/elasticsearch-serverless-python diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d0900d7..5cfd15a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -59,7 +59,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] experimental: [false] nox-session: [""] runs-on: ["ubuntu-latest"] diff --git a/noxfile.py b/noxfile.py index 6cd0514..abb21ae 100644 --- a/noxfile.py +++ b/noxfile.py @@ -47,14 +47,14 @@ def pytest_argv(): ] -@nox.session(python=["3.9", "3.10", "3.11", "3.12"]) +@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"]) def test(session): session.install(".[dev]", env=INSTALL_ENV) session.run(*pytest_argv(), *(session.posargs)) -@nox.session(python=["3.9", "3.12"]) +@nox.session(python=["3.9", "3.13"]) def test_otel(session): session.install(".[dev]", env=INSTALL_ENV) session.install("opentelemetry-api", "opentelemetry-sdk") diff --git a/pyproject.toml b/pyproject.toml index 8dd9594..199501b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ]