From 7a69a8bdf6b625fbe4a63712199d80d398431359 Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Fri, 6 Oct 2023 10:10:00 +1100 Subject: [PATCH 1/2] Test Python 3.12 support --- .github/workflows/test.yml | 3 ++- azure-monitor-events-extension/setup.py | 1 + azure-monitor-opentelemetry/setup.py | 1 + tox.ini | 4 ++-- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 315556d1..0860a59e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,12 +15,13 @@ jobs: py39: 3.9 py310: "3.10" py311: "3.11" + py312: "3.12" RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false # ensures the entire test matrix is run, even if one permutation fails matrix: - python-version: [ py37, py38, py39, py310, py311 ] + python-version: [ py37, py38, py39, py310, py311, py312 ] package: ["distro"] os: [ ubuntu-20.04, windows-2019 ] steps: diff --git a/azure-monitor-events-extension/setup.py b/azure-monitor-events-extension/setup.py index 2867b410..a09c894d 100644 --- a/azure-monitor-events-extension/setup.py +++ b/azure-monitor-events-extension/setup.py @@ -47,6 +47,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "License :: OSI Approved :: MIT License", ], zip_safe=False, diff --git a/azure-monitor-opentelemetry/setup.py b/azure-monitor-opentelemetry/setup.py index 07a5e65a..386adb2a 100644 --- a/azure-monitor-opentelemetry/setup.py +++ b/azure-monitor-opentelemetry/setup.py @@ -66,6 +66,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "License :: OSI Approved :: MIT License", ], zip_safe=False, diff --git a/tox.ini b/tox.ini index b68dfd20..3442dfe4 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ skipsdist = True skip_missing_interpreters = True envlist = - py3{7,8,9,10,11}-distro + py3{7,8,9,10,11,12}-distro lint [testenv] @@ -13,7 +13,7 @@ changedir = distro: azure-monitor-opentelemetry/tests commands_pre = - py3{7,8,9,10,11}: python -m pip install -U pip setuptools wheel + py3{7,8,9,10,11,12}: python -m pip install -U pip setuptools wheel distro: pip install {toxinidir}/azure-monitor-opentelemetry commands = From 8dc53ce858031c4808921e95dd533c02d4cc51be Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Fri, 6 Oct 2023 10:17:01 +1100 Subject: [PATCH 2/2] update changelog --- azure-monitor-events-extension/CHANGELOG.md | 2 ++ azure-monitor-opentelemetry/CHANGELOG.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/azure-monitor-events-extension/CHANGELOG.md b/azure-monitor-events-extension/CHANGELOG.md index d888decf..bcf0874c 100644 --- a/azure-monitor-events-extension/CHANGELOG.md +++ b/azure-monitor-events-extension/CHANGELOG.md @@ -2,5 +2,7 @@ ## Unreleased +- Support for Python 3.12 + ([#318](https://github.com/microsoft/ApplicationInsights-Python/pull/318)) - Initial commit ([#315](https://github.com/microsoft/ApplicationInsights-Python/pull/315)) diff --git a/azure-monitor-opentelemetry/CHANGELOG.md b/azure-monitor-opentelemetry/CHANGELOG.md index 451ccb65..42a2202c 100644 --- a/azure-monitor-opentelemetry/CHANGELOG.md +++ b/azure-monitor-opentelemetry/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Support for Python 3.12 + ([#318](https://github.com/microsoft/ApplicationInsights-Python/pull/318)) - Unpin OTel SDK/API version ([#310](https://github.com/microsoft/ApplicationInsights-Python/pull/310)) - Replace explicit log processor exporter interval env var with OT SDK env var