Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- CLI Version: 4.3.0
- Host Runtime Version: 4.44.100 (includes 4.844.100, 4.644.100)

#### Breaking Changes

- **Python 3.7 and 3.8 are no longer supported.** These versions have reached end-of-life. Please upgrade to Python 3.9 or later to continue using Azure Functions Core Tools. (#4756)

#### Changes

- Added end-of-life warnings for all runtime versions during `func azure functionapp publish`. (#4760)
Expand Down
26 changes: 4 additions & 22 deletions src/Cli/func/Helpers/PythonHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ public static void AssertPythonVersion(WorkerLanguageVersionInfo pythonVersion,
ColoredConsole.WriteLine(VerboseColor($"Found Python version {pythonVersion.Version} ({pythonVersion.ExecutablePath})."));
}

// Python 3.[7|8|9|10|11|12] (supported)
// Python 3.[9|10|11|12] (supported)
if (IsVersionSupported(pythonVersion))
{
return;
}

// Python 3.x (but not 3.[7|8|9|10|11|12]), not recommended, may fail. E.g.: 3.4, 3.5.
// Python 3.x (but not 3.[9|10|11|12]), not recommended, may fail. E.g.: 3.4, 3.5.
if (pythonVersion.Major == 3)
{
if (errorIfNotSupported)
Expand Down Expand Up @@ -234,9 +234,6 @@ public static async Task<WorkerLanguageVersionInfo> GetEnvironmentPythonVersion(
// Linux / OSX / Venv Interpreter Entrypoints
var python3GetVersionTask = GetVersion("python3");
var pythonGetVersionTask = GetVersion("python");
var python36GetVersionTask = GetVersion("python3.6");
var python37GetVersionTask = GetVersion("python3.7");
var python38GetVersionTask = GetVersion("python3.8");
var python39GetVersionTask = GetVersion("python3.9");
var python310GetVersionTask = GetVersion("python3.10");
var python311GetVersionTask = GetVersion("python3.11");
Expand All @@ -249,9 +246,6 @@ public static async Task<WorkerLanguageVersionInfo> GetEnvironmentPythonVersion(
await pyGetVersionTask,
await python3GetVersionTask,
await pythonGetVersionTask,
await python36GetVersionTask,
await python37GetVersionTask,
await python38GetVersionTask,
await python39GetVersionTask,
await python310GetVersionTask,
await python311GetVersionTask,
Expand Down Expand Up @@ -608,10 +602,6 @@ public static Task<string> GetDockerInitFileContent(WorkerLanguageVersionInfo in
{
switch (info?.Minor)
{
case 7:
return StaticResources.DockerfilePython37;
case 8:
return StaticResources.DockerfilePython38;
case 9:
return StaticResources.DockerfilePython39;
case 10:
Expand All @@ -627,7 +617,7 @@ public static Task<string> GetDockerInitFileContent(WorkerLanguageVersionInfo in
}
}

return StaticResources.DockerfilePython37;
return StaticResources.DockerfilePython39;
}

// Build environment images for building native dependencies for python function apps
Expand All @@ -637,12 +627,6 @@ public static Task<string> GetDockerInitFileContent(WorkerLanguageVersionInfo in
{
switch (info?.Minor)
{
case 6:
return (DockerImages.LinuxPython36ImageAmd64, false);
case 7:
return (DockerImages.LinuxPython37ImageAmd64, false);
case 8:
return (DockerImages.LinuxPython38ImageAmd64, false);
case 9:
return (DockerImages.LinuxPython39ImageAmd64, false);
case 10:
Expand Down Expand Up @@ -674,9 +658,7 @@ private static bool IsVersionSupported(WorkerLanguageVersionInfo info)
case 12:
case 11:
case 10:
case 9:
case 8:
case 7: return true;
case 9: return true;
default: return false;
}
}
Expand Down
11 changes: 0 additions & 11 deletions src/Cli/func/StaticResources/Dockerfile.python3.7

This file was deleted.

11 changes: 0 additions & 11 deletions src/Cli/func/StaticResources/Dockerfile.python3.8

This file was deleted.

4 changes: 0 additions & 4 deletions src/Cli/func/StaticResources/StaticResources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ public static class StaticResources

public static Task<string> DockerfileJava11 => GetValue("Dockerfile.java11");

public static Task<string> DockerfilePython37 => GetValue("Dockerfile.python3.7");

public static Task<string> DockerfilePython38 => GetValue("Dockerfile.python3.8");

public static Task<string> DockerfilePython39 => GetValue("Dockerfile.python3.9");

public static Task<string> DockerfilePython310 => GetValue("Dockerfile.python3.10");
Expand Down
6 changes: 0 additions & 6 deletions src/Cli/func/StaticResources/StaticResources.props
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Dockerfile.powershell7.2">
<LogicalName>$(AssemblyName).Dockerfile.powershell7.2</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Dockerfile.python3.7">
<LogicalName>$(AssemblyName).Dockerfile.python3.7</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Dockerfile.python3.8">
<LogicalName>$(AssemblyName).Dockerfile.python3.8</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Dockerfile.python3.9">
<LogicalName>$(AssemblyName).Dockerfile.python3.9</LogicalName>
</EmbeddedResource>
Expand Down
4 changes: 2 additions & 2 deletions test/Cli/Func.UnitTests/HelperTests/PythonHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public void ShouldHaveMatchingLinuxFxVersion(string linuxFxVersion, int? major,
[InlineData("2.7.10", true)]
[InlineData("3.5.5", true)]
[InlineData("3.6.8b", true)]
[InlineData("3.7.2", false)]
[InlineData("3.8.0", false)]
[InlineData("3.7.2", true)]
[InlineData("3.8.0", true)]
[InlineData("3.9.0", false)]
[InlineData("3.10.0", false)]
[InlineData("3.11.0", false)]
Expand Down
Loading