Skip to content

Commit acec0de

Browse files
committed
chore: apply Renovate updates (azure-functions v2, mypy v2, storage API 2025-08-01)
Batches the open Renovate PRs: - azure-functions 1.x -> 2.x (#90); requires Python >=3.13 - mypy 1.x -> 2.x (#91) - Microsoft.Storage bicep API 2025-06-01 -> 2025-08-01 (#92, #93, #94) azure-functions v2 needs Python >=3.13, so bump the function runtime to 3.13 (rg_funcapp.bicep), the project floor to >=3.13, ruff target to py313, and the CI matrix to 3.13. The 3.11 core-tools image still deploys the 3.13 app because the build runs remotely at the target runtime. Verified end-to-end: deploy to a fresh no-shared-keys + signing resource group succeeds, app runs Python 3.13, and the GPG Key Vault reference resolves.
1 parent 7884504 commit acec0de

8 files changed

Lines changed: 124 additions & 372 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
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 }}

‎poetry.lock‎

Lines changed: 99 additions & 353 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ license = "MIT"
77
version = "1.0.0"
88
readme = "README.md"
99
authors = [{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'
1111
dependencies = [
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'
2929
poetry-plugin-export = ">=1.8"
3030

3131
[tool.poetry.group.dev.dependencies]
32-
mypy = "^1"
32+
mypy = "^2.0.0"
3333
ruff = "^0.15.0"
3434

3535
[build-system]

‎rg.bicep‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var common_storage_properties = {
5252
var 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: {

‎rg_add_eventgrid.bicep‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ param storage_account_name string = 'debianrepo${suffix}'
2020
var 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
}

‎rg_funcapp.bicep‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var python_container_name = 'python'
3939
var 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
4545
var functionAppName = appName
@@ -50,18 +50,18 @@ var applicationInsightsName = appName
5050
resource 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
}

‎ruff.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ exclude = [
1010
line-length = 88
1111
indent-width = 4
1212

13-
# Assume Python 3.9
14-
target-version = "py39"
13+
# Assume Python 3.13
14+
target-version = "py313"
1515

1616
[lint]
1717
extend-select = [

‎src/apt_package_function/func_app.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)