* 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
This commit is contained in:
pdthummar 2023-01-23 08:48:13 -06:00 коммит произвёл GitHub
Родитель 66746d6f2f
Коммит 052b416ef6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 18 добавлений и 2 удалений

Просмотреть файл

@ -29,6 +29,9 @@ jobs:
Python310V4:
pythonVersion: '3.10'
workerPath: $(PROD_V4_WORKER_PY)
Python311V4:
pythonVersion: '3.11'
workerPath: $(PROD_V4_WORKER_PY)
steps:
- template: pack/templates/win_env_gen.yml
parameters:
@ -55,6 +58,9 @@ jobs:
Python310V4:
pythonVersion: '3.10'
workerPath: $(PROD_V4_WORKER_PY)
Python311V4:
pythonVersion: '3.11'
workerPath: $(PROD_V4_WORKER_PY)
steps:
- template: pack/templates/win_env_gen.yml
parameters:
@ -81,6 +87,9 @@ jobs:
Python310V4:
pythonVersion: '3.10'
workerPath: $(PROD_V4_WORKER_PY)
Python311V4:
pythonVersion: '3.11'
workerPath: $(PROD_V4_WORKER_PY)
steps:
- template: pack/templates/nix_env_gen.yml
parameters:
@ -104,6 +113,9 @@ jobs:
Python310V4:
pythonVersion: '3.10'
workerPath: $(PROD_V4_WORKER_PY)
Python311V4:
pythonVersion: '3.11'
workerPath: $(PROD_V4_WORKER_PY)
steps:
- template: pack/templates/nix_env_gen.yml
parameters:

Просмотреть файл

@ -26,6 +26,10 @@
<file src="..\3.10_WINDOWS_X86\**" target="tools\3.10\WINDOWS\X86" />
<file src="..\3.10_LINUX_X64\**" target="tools\3.10\LINUX\X64" />
<file src="..\3.10_OSX_X64\**" target="tools\3.10\OSX\X64" />
<file src="..\3.11_WINDOWS_X64\**" target="tools\3.11\WINDOWS\X64" />
<file src="..\3.11_WINDOWS_X86\**" target="tools\3.11\WINDOWS\X86" />
<file src="..\3.11_LINUX_X64\**" target="tools\3.11\LINUX\X64" />
<file src="..\3.11_OSX_X64\**" target="tools\3.11\OSX\X64" />
<file src="..\python\prodV4\worker.config.json" target="tools" />
<file src="Microsoft.Azure.Functions.PythonWorker.targets" target="build" />
<file src="..\_manifest\manifest.json" target="SBOM\manifest.json" />

Просмотреть файл

@ -3,7 +3,7 @@
"language":"python",
"defaultRuntimeVersion":"3.9",
"supportedOperatingSystems":["LINUX", "OSX", "WINDOWS"],
"supportedRuntimeVersions":["3.7", "3.8", "3.9", "3.10"],
"supportedRuntimeVersions":["3.7", "3.8", "3.9", "3.10", "3.11"],
"supportedArchitectures":["X64", "X86"],
"extensions":[".py"],
"defaultExecutablePath":"python",

Просмотреть файл

@ -40,7 +40,7 @@ def determine_user_pkg_paths():
pkgs_path = os.path.join(home, PKGS_PATH)
usr_packages_path = []
if minor_version in (7, 8, 9, 10):
if minor_version in (7, 8, 9, 10, 11):
usr_packages_path.append(os.path.join(pkgs_path, PKGS))
else:
raise RuntimeError(f'Unsupported Python version: 3.{minor_version}')