14 references to Module
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
104=> AddPythonAppCore(builder, name, appDirectory, EntrypointType.Module, moduleName, DefaultVirtualEnvFolder) 618case EntrypointType.Module: 718case EntrypointType.Module: 879EntrypointType.Script or EntrypointType.Module => virtualEnvironment.GetExecutable("python"), 990if (annotation.Type == EntrypointType.Module) 1064EntrypointType.Script or EntrypointType.Module => virtualEnvironment.GetExecutable("python"), 1093case EntrypointType.Module:
Aspire.Hosting.Python.Tests (7)
AddPythonAppTests.cs (7)
949Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 1153pythonBuilder.WithEntrypoint(EntrypointType.Module, "uvicorn") 1163Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 1208resourceBuilder.WithEntrypoint(EntrypointType.Module, "flask")); 1219builder.WithEntrypoint(EntrypointType.Module, "flask")); 1233resourceBuilder.WithEntrypoint(EntrypointType.Module, null!)); 1237resourceBuilder.WithEntrypoint(EntrypointType.Module, string.Empty));