14 references to Module
Aspire.Hosting.Python (7)
PythonAppResourceBuilderExtensions.cs (7)
102=> AddPythonAppCore(builder, name, appDirectory, EntrypointType.Module, moduleName, DefaultVirtualEnvFolder) 637case EntrypointType.Module: 737case EntrypointType.Module: 897EntrypointType.Script or EntrypointType.Module => virtualEnvironment.GetExecutable("python"), 1007if (annotation.Type == EntrypointType.Module) 1080EntrypointType.Script or EntrypointType.Module => virtualEnvironment.GetExecutable("python"), 1109case EntrypointType.Module:
Aspire.Hosting.Python.Tests (7)
AddPythonAppTests.cs (7)
938Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 1142pythonBuilder.WithEntrypoint(EntrypointType.Module, "uvicorn") 1152Assert.Equal(EntrypointType.Module, entrypointAnnotation.Type); 1197resourceBuilder.WithEntrypoint(EntrypointType.Module, "flask")); 1208builder.WithEntrypoint(EntrypointType.Module, "flask")); 1222resourceBuilder.WithEntrypoint(EntrypointType.Module, null!)); 1226resourceBuilder.WithEntrypoint(EntrypointType.Module, string.Empty));