14 references to Module
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
103=> AddPythonAppCore(builder, name, appDirectory, EntrypointType.Module, moduleName, DefaultVirtualEnvFolder) 640case EntrypointType.Module: 740case EntrypointType.Module: 900EntrypointType.Script or EntrypointType.Module => virtualEnvironment.GetExecutable("python"), 1010if (annotation.Type == EntrypointType.Module) 1083EntrypointType.Script or EntrypointType.Module => virtualEnvironment.GetExecutable("python"), 1112case 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));