Skip to content

Commit 052b416

Browse files
authored
Enabling support for py3.11 (#1108)
* Add support for py 3.11 * Adding Runtime version py3.11 in worker.config.json. * Updating file to support py3.11 * Removed condition for generating nuget package file
1 parent 66746d6 commit 052b416

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

azure-pipelines.yml

+12
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
Python310V4:
3030
pythonVersion: '3.10'
3131
workerPath: $(PROD_V4_WORKER_PY)
32+
Python311V4:
33+
pythonVersion: '3.11'
34+
workerPath: $(PROD_V4_WORKER_PY)
3235
steps:
3336
- template: pack/templates/win_env_gen.yml
3437
parameters:
@@ -55,6 +58,9 @@ jobs:
5558
Python310V4:
5659
pythonVersion: '3.10'
5760
workerPath: $(PROD_V4_WORKER_PY)
61+
Python311V4:
62+
pythonVersion: '3.11'
63+
workerPath: $(PROD_V4_WORKER_PY)
5864
steps:
5965
- template: pack/templates/win_env_gen.yml
6066
parameters:
@@ -81,6 +87,9 @@ jobs:
8187
Python310V4:
8288
pythonVersion: '3.10'
8389
workerPath: $(PROD_V4_WORKER_PY)
90+
Python311V4:
91+
pythonVersion: '3.11'
92+
workerPath: $(PROD_V4_WORKER_PY)
8493
steps:
8594
- template: pack/templates/nix_env_gen.yml
8695
parameters:
@@ -104,6 +113,9 @@ jobs:
104113
Python310V4:
105114
pythonVersion: '3.10'
106115
workerPath: $(PROD_V4_WORKER_PY)
116+
Python311V4:
117+
pythonVersion: '3.11'
118+
workerPath: $(PROD_V4_WORKER_PY)
107119
steps:
108120
- template: pack/templates/nix_env_gen.yml
109121
parameters:

pack/Microsoft.Azure.Functions.V4.PythonWorker.nuspec

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
<file src="..\3.10_WINDOWS_X86\**" target="tools\3.10\WINDOWS\X86" />
2727
<file src="..\3.10_LINUX_X64\**" target="tools\3.10\LINUX\X64" />
2828
<file src="..\3.10_OSX_X64\**" target="tools\3.10\OSX\X64" />
29+
<file src="..\3.11_WINDOWS_X64\**" target="tools\3.11\WINDOWS\X64" />
30+
<file src="..\3.11_WINDOWS_X86\**" target="tools\3.11\WINDOWS\X86" />
31+
<file src="..\3.11_LINUX_X64\**" target="tools\3.11\LINUX\X64" />
32+
<file src="..\3.11_OSX_X64\**" target="tools\3.11\OSX\X64" />
2933
<file src="..\python\prodV4\worker.config.json" target="tools" />
3034
<file src="Microsoft.Azure.Functions.PythonWorker.targets" target="build" />
3135
<file src="..\_manifest\manifest.json" target="SBOM\manifest.json" />

python/prodV4/worker.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"language":"python",
44
"defaultRuntimeVersion":"3.9",
55
"supportedOperatingSystems":["LINUX", "OSX", "WINDOWS"],
6-
"supportedRuntimeVersions":["3.7", "3.8", "3.9", "3.10"],
6+
"supportedRuntimeVersions":["3.7", "3.8", "3.9", "3.10", "3.11"],
77
"supportedArchitectures":["X64", "X86"],
88
"extensions":[".py"],
99
"defaultExecutablePath":"python",

python/prodV4/worker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def determine_user_pkg_paths():
4040
pkgs_path = os.path.join(home, PKGS_PATH)
4141
usr_packages_path = []
4242

43-
if minor_version in (7, 8, 9, 10):
43+
if minor_version in (7, 8, 9, 10, 11):
4444
usr_packages_path.append(os.path.join(pkgs_path, PKGS))
4545
else:
4646
raise RuntimeError(f'Unsupported Python version: 3.{minor_version}')

0 commit comments

Comments
 (0)