From e57d3a628bfba085094dcc6529e78f1d33e02e4c Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Wed, 11 Jun 2025 19:01:10 +0000 Subject: [PATCH 1/6] Call flake using Python --- eng/templates/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/templates/build.yml b/eng/templates/build.yml index d1b611f6..96229f74 100644 --- a/eng/templates/build.yml +++ b/eng/templates/build.yml @@ -22,7 +22,7 @@ jobs: - script: | cd azure - flake8 . --count --show-source --statistics + python -m flake8 . --count --show-source --statistics displayName: 'Run lint test with flake8' - script: | From bdd62014397064c5cc889de4258e598a482eb22b Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Wed, 11 Jun 2025 19:20:29 +0000 Subject: [PATCH 2/6] Bump min Python version --- eng/templates/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/templates/build.yml b/eng/templates/build.yml index 96229f74..6bce46c3 100644 --- a/eng/templates/build.yml +++ b/eng/templates/build.yml @@ -12,7 +12,7 @@ jobs: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7.x' + versionSpec: '3.8.x' - script: | python -m pip install --upgrade pip pip install -r requirements.txt From b16cffb8b5512f4fcdef7449ce774c34e794965f Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Wed, 11 Jun 2025 19:25:56 +0000 Subject: [PATCH 3/6] Bump Python to 3.9 --- eng/templates/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/templates/build.yml b/eng/templates/build.yml index 6bce46c3..2448812a 100644 --- a/eng/templates/build.yml +++ b/eng/templates/build.yml @@ -12,7 +12,7 @@ jobs: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8.x' + versionSpec: '3.9.x' - script: | python -m pip install --upgrade pip pip install -r requirements.txt From 4eb1a80762d2573c768b8525bc6f1d569341817a Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Wed, 11 Jun 2025 13:44:58 -0600 Subject: [PATCH 4/6] Python to 3.9 everywhere --- azure-pipelines-release.yml | 2 +- azure-pipelines.yml | 2 +- noxfile.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/azure-pipelines-release.yml b/azure-pipelines-release.yml index 44942894..cc9df703 100644 --- a/azure-pipelines-release.yml +++ b/azure-pipelines-release.yml @@ -17,7 +17,7 @@ jobs: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.7' + versionSpec: '3.9' - download: DurablePyCI - script: "rm -r ./azure_functions_durable/_manifest" displayName: 'Remove _manifest folder' diff --git a/azure-pipelines.yml b/azure-pipelines.yml index edfdddec..244f4a4a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,7 +13,7 @@ trigger: - v* variables: - python.version: '3.7' + python.version: '3.9' baseFolder: . componentArtifactName: 'azure_functions_durable' #componentArtifactName: 'dist' diff --git a/noxfile.py b/noxfile.py index 29367157..ae784ca6 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,6 +1,6 @@ import nox -@nox.session(python=["3.7","3.8"]) +@nox.session(python=["3.9","3.11"]) def tests(session): # same as pip install -r -requirements.txt session.install("-r", "requirements.txt") @@ -8,19 +8,19 @@ def tests(session): session.run("pytest", "-v", "tests") -@nox.session(python=["3.7", "3.8"]) +@nox.session(python=["3.9","3.11"]) def lint(session): session.install("flake8") session.install("flake8-docstrings") session.run("flake8", "./azure/") -@nox.session(python=["3.7", "3.8"]) +@nox.session(python=["3.9","3.11"]) def typecheck(session): session.install("-r", "requirements.txt") session.install("mypy") session.run("mypy", "./azure/") -@nox.session(python=["3.7", "3.8"]) +@nox.session(python=["3.9","3.11"]) def autopep(session): session.install("-r", "requirements.txt") session.run("autopep8", "--in-place --aggressive --aggressive --recursive \"./azure/\"") \ No newline at end of file From 02c27b299c22c54938ef3d5ae96cba7e0cb93cb7 Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Wed, 11 Jun 2025 13:47:06 -0600 Subject: [PATCH 5/6] Remove samples test from CI run --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 244f4a4a..bc20eef9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,7 +48,7 @@ stages: - script: | pip install pytest pytest-azurepipelines - pytest + pytest --ignore=samples-v2 displayName: 'pytest' - task: ManifestGeneratorTask@0 displayName: "SBOM Generation Task" From 682929d090f2a8f4f1fced7ff449a3c715f45cc3 Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Wed, 11 Jun 2025 13:53:17 -0600 Subject: [PATCH 6/6] Remove samples again --- eng/templates/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/templates/build.yml b/eng/templates/build.yml index 2448812a..35ad078a 100644 --- a/eng/templates/build.yml +++ b/eng/templates/build.yml @@ -27,7 +27,7 @@ jobs: - script: | pip install pytest pytest-azurepipelines - pytest + pytest --ignore=samples-v2 displayName: 'pytest' - script: | python setup.py sdist bdist_wheel