Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ in the library's project folder.

### Prerequisites

The libraries are supported on Function Apps using Python 3.9 or later. For more details, please read our page on
The libraries are supported on Function Apps using Python 3.10 or later. For more details, please read our page on
[Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).

## SDK Support
Expand Down
4 changes: 2 additions & 2 deletions azurefunctions-extensions-base/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "azurefunctions-extensions-base"
dynamic = ["version"]
requires-python = ">=3.8"
requires-python = ">=3.10"
authors = [{ name = "Azure Functions team at Microsoft Corp.", email = "azurefunctions@microsoft.com"}]
description = "Base Python worker extension for Azure Functions."
readme = "README.md"
Expand All @@ -29,7 +29,7 @@ classifiers= [
dev = [
'flake8',
'mypy',
'pytest',
'pytest>=9.0.3',
'pytest-cov',
'coverage',
'pytest-instafail',
Expand Down
2 changes: 1 addition & 1 deletion azurefunctions-extensions-bindings-blob/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Blob client types can be generated from:
## Getting started

### Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).

* You must have an [Azure subscription](https://azure.microsoft.com/free/) and an
[Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) to use this package.
Expand Down
4 changes: 2 additions & 2 deletions azurefunctions-extensions-bindings-blob/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "azurefunctions-extensions-bindings-blob"
dynamic = ["version"]
requires-python = ">=3.9"
requires-python = ">=3.10"
authors = [{ name = "Azure Functions team at Microsoft Corp.", email = "azurefunctions@microsoft.com"}]
description = "Blob Python worker extension for Azure Functions."
readme = "README.md"
Expand Down Expand Up @@ -34,7 +34,7 @@ dependencies = [
dev = [
'flake8',
'mypy',
'pytest',
'pytest>=9.0.3',
'pytest-cov',
'coverage',
'pytest-instafail',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ examples on how to use the Azure Storage Blob client library, please see [Azure
* From BlobInput

## Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* You must have an [Azure subscription](https://azure.microsoft.com/free/) and an
[Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) to use this package.

Expand Down
2 changes: 1 addition & 1 deletion azurefunctions-extensions-bindings-cosmosdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Cosmos DB client types can be generated from:
## Getting started

### Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).

* You must have an [Azure subscription](https://azure.microsoft.com/free/) and an
[Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) to use this package.
Expand Down
4 changes: 2 additions & 2 deletions azurefunctions-extensions-bindings-cosmosdb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "azurefunctions-extensions-bindings-cosmosdb"
dynamic = ["version"]
requires-python = ">=3.9"
requires-python = ">=3.10"
authors = [{ name = "Azure Functions team at Microsoft Corp.", email = "azurefunctions@microsoft.com"}]
description = "Cosmos DB Python worker extension for Azure Functions."
readme = "README.md"
Expand All @@ -32,7 +32,7 @@ dependencies = [

[project.optional-dependencies]
dev = [
'pytest',
'pytest>=9.0.3',
'pytest-cov',
'coverage',
'pytest-instafail',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ examples on how to use the Azure Storage Cosmos DB client library, please see [A
* From CosmosDBInput

## Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* You must have an [Azure subscription](https://azure.microsoft.com/free/) and an
[Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) to use this package.

Expand Down
2 changes: 1 addition & 1 deletion azurefunctions-extensions-bindings-eventhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The supported EventHub SDK types include:
## Getting started

### Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).

* You must have an [Azure subscription](https://azure.microsoft.com/free/) and an
[Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) to use this package.
Expand Down
4 changes: 2 additions & 2 deletions azurefunctions-extensions-bindings-eventhub/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "azurefunctions-extensions-bindings-eventhub"
dynamic = ["version"]
requires-python = ">=3.9"
requires-python = ">=3.10"
authors = [{ name = "Azure Functions team at Microsoft Corp.", email = "azurefunctions@microsoft.com"}]
description = "EventHub Python worker extension for Azure Functions."
readme = "README.md"
Expand All @@ -31,7 +31,7 @@ dependencies = [

[project.optional-dependencies]
dev = [
'pytest',
'pytest>=9.0.3',
'pytest-cov',
'coverage',
'pytest-instafail',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ examples on how to use the Azure EventHub library, please see [Azure EventHub sa
* From EventHubTrigger

## Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* You must have an [Azure subscription](https://azure.microsoft.com/free/) and an
[Azure storage account](https://docs.microsoft.com/azure/storage/common/storage-account-overview) to use this package.

Expand Down
2 changes: 1 addition & 1 deletion azurefunctions-extensions-bindings-servicebus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The supported ServiceBus SDK types include:
## Getting started

### Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).

* You must have an [Azure subscription](https://azure.microsoft.com/free/) and a
[ServiceBus Resource](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus?tabs=isolated-process%2Cextensionv5%2Cextensionv3&pivots=programming-language-python) to use this package.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "azurefunctions-extensions-bindings-servicebus"
dynamic = ["version"]
requires-python = ">=3.9"
requires-python = ">=3.10"
authors = [{ name = "Azure Functions team at Microsoft Corp.", email = "azurefunctions@microsoft.com"}]
description = "ServiceBus Python worker extension for Azure Functions."
readme = "README.md"
Expand Down Expand Up @@ -37,7 +37,7 @@ dependencies = [
dev = [
'flake8',
'mypy',
'pytest',
'pytest>=9.0.3',
'pytest-cov',
'coverage',
'pytest-instafail',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ examples on how to use the Azure ServiceBus client library, please see [Azure Se


## Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).

## Setup

Expand Down
2 changes: 1 addition & 1 deletion azurefunctions-extensions-connectors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Office365 client types can be generated from:
## Getting started

### Prerequisites
* Python 3.9 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).

* You must have an [Azure subscription](https://azure.microsoft.com/free/) and an Office365 account to use this package.

Expand Down
2 changes: 1 addition & 1 deletion azurefunctions-extensions-connectors/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
dev = [
'flake8',
'mypy',
'pytest',
'pytest>=9.0.3',
'pytest-cov',
'coverage',
'pytest-instafail',
Expand Down
2 changes: 1 addition & 1 deletion azurefunctions-extensions-http-fastapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This library contains HttpV2 extensions for FastApi Request/Response types to us
## Getting started

### Prerequisites
* Python 3.8 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).


### Instructions
Expand Down
6 changes: 3 additions & 3 deletions azurefunctions-extensions-http-fastapi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "azurefunctions-extensions-http-fastapi"
dynamic = ["version"]
requires-python = ">=3.8"
requires-python = ">=3.10"
authors = [{ name = "Azure Functions team at Microsoft Corp.", email = "azurefunctions@microsoft.com"}]
description = "FastApi Python worker extension for Azure Functions."
readme = "README.md"
Expand All @@ -26,7 +26,7 @@ classifiers= [
]
dependencies = [
'azurefunctions-extensions-base',
'fastapi>=0.115.0,<1.0',
'fastapi>=0.141.1,<1.0',
'uvicorn>=0.32.0,<1.0',
'pydantic>=2.10.0,<3.0',
]
Expand All @@ -35,7 +35,7 @@ dependencies = [
dev = [
'flake8',
'mypy',
'pytest',
'pytest>=9.0.3',
'pytest-cov',
'coverage',
'pytest-instafail',
Expand Down
2 changes: 1 addition & 1 deletion azurefunctions-extensions-http-fastapi/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ information on FastAPI, please see the [FastApi documentation](https://fastapi.t
* [fastapi_samples_streaming_download](https://github.com/Azure/azure-functions-python-extensions/tree/dev/azurefunctions-extensions-http-fastapi/samples/fastapi_samples_streaming_download) - An example on how to send your HTTP response via streaming to the caller.

## Prerequisites
* Python 3.8 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).
* Python 3.10 or later is required to use this package. For more details, please read our page on [Python Functions version support policy](https://learn.microsoft.com/en-us/azure/azure-functions/functions-versions?tabs=isolated-process%2Cv4&pivots=programming-language-python#languages).

## Setup

Expand Down
5 changes: 5 additions & 0 deletions eng/ci/extension-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ extends:
name: 1es-pool-azfunc
image: 1es-windows-2022
os: windows
sdl:
componentgovernance:
alertWarningLevel: Medium
failOnAlert: true
verbosity: Normal

stages:
- stage: Release
Expand Down
5 changes: 5 additions & 0 deletions eng/ci/official-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ extends:
name: 1es-pool-azfunc
image: 1es-windows-2022
os: windows
sdl:
componentgovernance:
alertWarningLevel: Medium
failOnAlert: true
verbosity: Normal

stages:
- stage: Build
Expand Down
4 changes: 4 additions & 0 deletions eng/ci/public-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ extends:
compiled:
enabled: true # still only runs for default branch
runSourceLanguagesInSourceAnalysis: true
componentgovernance:
alertWarningLevel: Medium
failOnAlert: true
verbosity: Normal
settings:
skipBuildTagsForGitHubPullRequests: ${{ variables['System.PullRequest.IsFork'] }}

Expand Down
3 changes: 3 additions & 0 deletions eng/templates/official/jobs/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ jobs:
displayName: 'Use Python 3.11'
inputs:
versionSpec: 3.11
- template: /eng/templates/steps/component-governance.yml@self
parameters:
projectDirectory: $(ExtensionName)
- pwsh: |
$newLibraryVersion = "$(NewLibraryVersion)"
$pypiToken = "$(PypiToken)"
Expand Down
26 changes: 21 additions & 5 deletions eng/templates/official/jobs/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ parameters:
- name: python_versions
type: object
default:
# 3.8 is EOL. Don't run tests for it
python39:
PYTHON_VERSION: '3.9'
python310:
PYTHON_VERSION: '3.10'
python311:
Expand All @@ -33,6 +30,9 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- template: /eng/templates/steps/component-governance.yml@self
parameters:
projectDirectory: azurefunctions-extensions-base
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-base
Expand All @@ -57,6 +57,9 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- template: /eng/templates/steps/component-governance.yml@self
parameters:
projectDirectory: azurefunctions-extensions-bindings-blob
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-bindings-blob
Expand Down Expand Up @@ -89,6 +92,9 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- template: /eng/templates/steps/component-governance.yml@self
parameters:
projectDirectory: azurefunctions-extensions-bindings-cosmosdb
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-bindings-cosmosdb
Expand Down Expand Up @@ -116,6 +122,9 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- template: /eng/templates/steps/component-governance.yml@self
parameters:
projectDirectory: azurefunctions-extensions-bindings-eventhub
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-bindings-eventhub
Expand All @@ -140,6 +149,9 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- template: /eng/templates/steps/component-governance.yml@self
parameters:
projectDirectory: azurefunctions-extensions-http-fastapi
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-http-fastapi
Expand All @@ -164,6 +176,9 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- template: /eng/templates/steps/component-governance.yml@self
parameters:
projectDirectory: azurefunctions-extensions-bindings-servicebus
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-bindings-servicebus
Expand All @@ -188,13 +203,14 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
- template: /eng/templates/steps/component-governance.yml@self
parameters:
projectDirectory: azurefunctions-extensions-connectors
- bash: |
python -m pip install --upgrade pip
cd azurefunctions-extensions-connectors
python -m pip install -U -e .[dev]
displayName: 'Install Connectors Dependencies'
condition: ne(variables['PYTHON_VERSION'], '3.9')
- bash: |
python -m pytest -q --instafail azurefunctions-extensions-connectors/tests/
displayName: "Running Connectors $(PYTHON_VERSION) Python Extension Tests"
condition: ne(variables['PYTHON_VERSION'], '3.9')
Loading
Loading