From 29363c5add99cb8cdeadb3dfc38010c61fb41ad0 Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Thu, 18 Jul 2024 22:22:16 +0000 Subject: [PATCH] Add support for Python 3.12 --- .github/workflows/ci.yaml | 1 + opentelemetry-exporter-gcp-monitoring/setup.cfg | 1 + opentelemetry-exporter-gcp-trace/setup.cfg | 1 + opentelemetry-propagator-gcp/setup.cfg | 1 + opentelemetry-resourcedetector-gcp/setup.cfg | 1 + tox.ini | 4 ++-- 6 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7b271b25..a47f58e1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,7 @@ jobs: - { version: "3.9", tox: "39" } - { version: "3.10", tox: "310" } - { version: "3.11", tox: "311" } + - { version: "3.12", tox: "312" } env: run-matrix-combo: ${{ matrix.py.version }} diff --git a/opentelemetry-exporter-gcp-monitoring/setup.cfg b/opentelemetry-exporter-gcp-monitoring/setup.cfg index da804b2a..736a1b87 100644 --- a/opentelemetry-exporter-gcp-monitoring/setup.cfg +++ b/opentelemetry-exporter-gcp-monitoring/setup.cfg @@ -19,6 +19,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] python_requires = >=3.7 diff --git a/opentelemetry-exporter-gcp-trace/setup.cfg b/opentelemetry-exporter-gcp-trace/setup.cfg index 511f5f75..fec4eef2 100644 --- a/opentelemetry-exporter-gcp-trace/setup.cfg +++ b/opentelemetry-exporter-gcp-trace/setup.cfg @@ -19,6 +19,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] python_requires = >=3.7 diff --git a/opentelemetry-propagator-gcp/setup.cfg b/opentelemetry-propagator-gcp/setup.cfg index f3ab16a3..33053857 100644 --- a/opentelemetry-propagator-gcp/setup.cfg +++ b/opentelemetry-propagator-gcp/setup.cfg @@ -19,6 +19,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] python_requires = >=3.7 diff --git a/opentelemetry-resourcedetector-gcp/setup.cfg b/opentelemetry-resourcedetector-gcp/setup.cfg index e341f55b..7e9bfdee 100644 --- a/opentelemetry-resourcedetector-gcp/setup.cfg +++ b/opentelemetry-resourcedetector-gcp/setup.cfg @@ -19,6 +19,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] python_requires = >=3.7 diff --git a/tox.ini b/tox.ini index ab673fa1..7b2e84e9 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ requires = tox>=4 envlist = ; Add the `ci` factor to any env that should be running during CI. - py3{7,8,9,10,11}-ci-test-{cloudtrace,cloudmonitoring,propagator,resourcedetector} + py3{7,8,9,10,11,12}-ci-test-{cloudtrace,cloudmonitoring,propagator,resourcedetector} {lint,mypy}-ci-{cloudtrace,cloudmonitoring,propagator,resourcedetector} docs-ci @@ -58,7 +58,7 @@ setenv = propagator: PACKAGE_NAME = opentelemetry-propagator-gcp resourcedetector: PACKAGE_NAME = opentelemetry-resourcedetector-gcp -[testenv:py3{7,8,9,10,11}-ci-test-{cloudtrace,cloudmonitoring,propagator,resourcedetector}] +[testenv:py3{7,8,9,10,11,12}-ci-test-{cloudtrace,cloudmonitoring,propagator,resourcedetector}] deps = ; editable install the package itself -e {toxinidir}/{env:PACKAGE_NAME}