14 references to Module
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
102=> AddPythonAppCore(builder, name, appDirectory, EntrypointType.Module, moduleName, DefaultVirtualEnvFolder) 592case EntrypointType.Module: 668case EntrypointType.Module: 828EntrypointType.Script or EntrypointType.Module => virtualEnvironment.GetExecutable("python"), 938if (annotation.Type == EntrypointType.Module) 1011EntrypointType.Script or EntrypointType.Module => virtualEnvironment.GetExecutable("python"), 1040case EntrypointType.Module:
Aspire.Hosting.Python.Tests (7)
AddPythonAppTests.cs (7)
915Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 1119pythonBuilder.WithEntrypoint(EntrypointType.Module, "uvicorn") 1129Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 1174resourceBuilder.WithEntrypoint(EntrypointType.Module, "flask")); 1185builder.WithEntrypoint(EntrypointType.Module, "flask")); 1199resourceBuilder.WithEntrypoint(EntrypointType.Module, null!)); 1203resourceBuilder.WithEntrypoint(EntrypointType.Module, string.Empty));