Skip to content

Commit

Permalink
Enable Python3.11 for GA. (#3864)
Browse files Browse the repository at this point in the history
* Enable support of Python3.11.

* updated python3.10 preview to false.

* update date
  • Loading branch information
pdthummar authored Sep 25, 2023
1 parent c51b214 commit 298b435
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
35 changes: 33 additions & 2 deletions src/commands/createFunctionApp/stacks/backupStacks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

// Last updated on 2023-01-09
// Last updated on 2023-09-25
export const backupStacks: string = `{
"value": [
{
Expand Down Expand Up @@ -796,14 +796,45 @@ export const backupStacks: string = `{
"displayText": "Python 3",
"value": "3",
"minorVersions": [
{
"displayText": "Python 3.11",
"value": "3.11",
"stackSettings": {
"linuxRuntimeSettings": {
"runtimeVersion": "Python|3.11",
"remoteDebuggingSupported": false,
"isPreview": false,
"isDefault": true,
"isHidden": false,
"appInsightsSettings": {
"isSupported": true
},
"gitHubActionSettings": {
"isSupported": true,
"supportedVersion": "3.11"
},
"appSettingsDictionary": {
"FUNCTIONS_WORKER_RUNTIME": "python"
},
"siteConfigPropertiesDictionary": {
"use32BitWorkerProcess": false,
"linuxFxVersion": "Python|3.11"
},
"supportedFunctionsExtensionVersions": [
"~4"
],
"endOfLifeDate": "2027-10-31T00:00:00Z"
}
}
},
{
"displayText": "Python 3.10",
"value": "3.10",
"stackSettings": {
"linuxRuntimeSettings": {
"runtimeVersion": "Python|3.10",
"remoteDebuggingSupported": false,
"isPreview": true,
"isPreview": false,
"isDefault": false,
"isHidden": false,
"appInsightsSettings": {
Expand Down
3 changes: 2 additions & 1 deletion src/commands/createNewProject/pythonSteps/pythonVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export async function getSupportedPythonVersions(context: IActionContext, funcVe
['2.7.1846', '3.7'],
['3.0.2245', '3.8'],
['3.0.3216', '3.9'],
['4.0.4915', '3.10']
['4.0.4915', '3.10'],
['4.0.5348', '3.11']
];

for (const [minFuncVersion, pyVersion] of versionInfo) {
Expand Down

0 comments on commit 298b435

Please sign in to comment.