File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 strategy :
1010 matrix :
11- python-version : ["3.11 "]
11+ python-version : ["3.13 "]
1212 steps :
1313 - uses : actions/checkout@v7
1414 - name : Set up Python ${{ matrix.python-version }}
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ license = "MIT"
77version = " 1.0.0"
88readme = " README.md"
99authors = [{name = " Max Dymond" , email = " max.dymond@alianza.com" }]
10- requires-python = ' >=3.9.2 ,<4.0.0'
10+ requires-python = ' >=3.13 ,<4.0.0'
1111dependencies = [
12- ' azure-functions (>=1.21.3 ,<2.0 .0)' ,
12+ ' azure-functions (>=2.2.0 ,<2.3 .0)' ,
1313 ' azure-identity (>=1.19.0,<2.0.0)' ,
1414 ' azure-storage-blob (>=12.23.1,<13.0.0)' ,
1515 ' pydpkg (>=1.9.3,<2.0.0)' ,
@@ -29,7 +29,7 @@ requires-poetry = '>=2.0'
2929poetry-plugin-export = " >=1.8"
3030
3131[tool .poetry .group .dev .dependencies ]
32- mypy = " ^1 "
32+ mypy = " ^2.0.0 "
3333ruff = " ^0.15.0"
3434
3535[build-system ]
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ var common_storage_properties = {
5252var storage_properties = use_shared_keys ? common_storage_properties : union (common_storage_properties , {
5353 allowSharedKeyAccess : false
5454})
55- resource storageAccount 'Microsoft.Storage/storageAccounts@2025-06 -01' = {
55+ resource storageAccount 'Microsoft.Storage/storageAccounts@2025-08 -01' = {
5656 name : storage_account_name
5757 location : location
5858 kind : 'StorageV2'
@@ -63,17 +63,17 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2025-06-01' = {
6363}
6464
6565// Create a container for the packages
66- resource defBlobServices 'Microsoft.Storage/storageAccounts/blobServices@2025-06 -01' = {
66+ resource defBlobServices 'Microsoft.Storage/storageAccounts/blobServices@2025-08 -01' = {
6767 parent : storageAccount
6868 name : 'default'
6969}
70- resource packageContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-06 -01' = {
70+ resource packageContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-08 -01' = {
7171 parent : defBlobServices
7272 name : package_container_name
7373 properties : {
7474 }
7575}
76- resource pythonContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-06 -01' = {
76+ resource pythonContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-08 -01' = {
7777 parent : defBlobServices
7878 name : python_container_name
7979 properties : {
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ param storage_account_name string = 'debianrepo${suffix}'
2020var package_container_name = 'packages'
2121
2222// Define all existing resources
23- resource storageAccount 'Microsoft.Storage/storageAccounts@2025-06 -01' existing = {
23+ resource storageAccount 'Microsoft.Storage/storageAccounts@2025-08 -01' existing = {
2424 name : storage_account_name
2525}
26- resource defBlobServices 'Microsoft.Storage/storageAccounts/blobServices@2025-06 -01' existing = {
26+ resource defBlobServices 'Microsoft.Storage/storageAccounts/blobServices@2025-08 -01' existing = {
2727 parent : storageAccount
2828 name : 'default'
2929}
30- resource packageContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-06 -01' existing = {
30+ resource packageContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-08 -01' existing = {
3131 parent : defBlobServices
3232 name : package_container_name
3333}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ var python_container_name = 'python'
3939var storage_connection_string = 'DefaultEndpointsProtocol=https;AccountName=${storageAccount .name };EndpointSuffix=${environment ().suffixes .storage };AccountKey=${storageAccount .listKeys ().keys [0 ].value }'
4040
4141// The version of Python to run with
42- var python_version = '3.11 '
42+ var python_version = '3.13 '
4343
4444// The name of the hosting plan, application insights, and function app
4545var functionAppName = appName
@@ -50,18 +50,18 @@ var applicationInsightsName = appName
5050resource uami 'Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30' existing = {
5151 name : 'uami${suffix }'
5252}
53- resource storageAccount 'Microsoft.Storage/storageAccounts@2025-06 -01' existing = {
53+ resource storageAccount 'Microsoft.Storage/storageAccounts@2025-08 -01' existing = {
5454 name : storage_account_name
5555}
56- resource defBlobServices 'Microsoft.Storage/storageAccounts/blobServices@2025-06 -01' existing = {
56+ resource defBlobServices 'Microsoft.Storage/storageAccounts/blobServices@2025-08 -01' existing = {
5757 parent : storageAccount
5858 name : 'default'
5959}
60- resource packageContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-06 -01' existing = {
60+ resource packageContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-08 -01' existing = {
6161 parent : defBlobServices
6262 name : package_container_name
6363}
64- resource pythonContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-06 -01' existing = {
64+ resource pythonContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2025-08 -01' existing = {
6565 parent : defBlobServices
6666 name : python_container_name
6767}
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ exclude = [
1010line-length = 88
1111indent-width = 4
1212
13- # Assume Python 3.9
14- target-version = " py39 "
13+ # Assume Python 3.13
14+ target-version = " py313 "
1515
1616[lint ]
1717extend-select = [
Original file line number Diff line number Diff line change @@ -169,7 +169,13 @@ def deploy(self) -> None:
169169 if self .subscription :
170170 func_cmd += f" --subscription { self .subscription } "
171171
172- # Publish the application using the core-tools tooling
172+ # Publish the application using the core-tools tooling.
173+ #
174+ # The image's Python version need not match the app runtime: with
175+ # '--build remote' the build runs on Azure (Oryx) at the target
176+ # runtime, and this image only packages and uploads. 3.11 is the newest
177+ # published core-tools image (no 3.12/3.13 exists), and it deploys
178+ # 3.13 apps fine.
173179 cmd = [
174180 "docker" ,
175181 "run" ,
You can’t perform that action at this time.
0 commit comments