From 939aaaaba91be20d2f8180af4111694cb5a0bf2c Mon Sep 17 00:00:00 2001 From: Ryan Kelly Date: Thu, 16 Nov 2023 13:53:12 -0800 Subject: [PATCH 1/2] ci(test): adds python 3.11 to testing matrix --- .github/workflows/tox.yml | 1 + azext_edge/tests/__init__.py | 19 ------------------- tox.ini | 2 -- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 6c19bbfd4..d2cc75f60 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -15,6 +15,7 @@ jobs: - windows - macos py: + - "3.11" - "3.10" - "3.9" - "3.8" diff --git a/azext_edge/tests/__init__.py b/azext_edge/tests/__init__.py index 657e28153..4f2351288 100644 --- a/azext_edge/tests/__init__.py +++ b/azext_edge/tests/__init__.py @@ -7,7 +7,6 @@ import sys import io -from azure.cli.testsdk import LiveScenarioTest from contextlib import contextmanager @@ -40,21 +39,3 @@ def close(self): finally: sys.stdout = _stdout buffer_tee.close() - - -class CaptureOutputLiveScenarioTest(LiveScenarioTest): - def __init__(self, test_scenario): - super(CaptureOutputLiveScenarioTest, self).__init__(test_scenario) - - # TODO: @digimaun - Maybe put a helper like this in the shared lib, when you create it? - def command_execute_assert(self, command, asserts=[]): - from . import capture_output - - with capture_output() as buffer: - self.cmd(command, checks=None) - output = buffer.get_output() - - for a in asserts: - assert a in output - - return output diff --git a/tox.ini b/tox.ini index e67c9b0d5..adadf4609 100644 --- a/tox.ini +++ b/tox.ini @@ -53,8 +53,6 @@ deps = {[base]deps} # azure-cli deps azure-cli - # azure cli test sdk - azure-cli-testsdk setenv = PYTHONPATH={envsitepackagesdir}/azure-cli-extensions/azure-iot-ops commands = From 151de1bdbb39fa1e4e413132eafa4259fd2ffb4a Mon Sep 17 00:00:00 2001 From: Ryan K Date: Fri, 17 Nov 2023 12:45:09 -0800 Subject: [PATCH 2/2] Add python 3.11 version specifier to setup.py --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 6409eb461..b992fa73b 100644 --- a/setup.py +++ b/setup.py @@ -45,6 +45,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ] short_description = "The Azure IoT Operations extension for Azure CLI."