MCPcopy Create free account
hub / github.com/dagger/dagger / pyprojectExtra

Function pyprojectExtra

core/integration/module_python_test.go:2135–2151  ·  view source on GitHub ↗
(dependencies []string, contents string)

Source from the content-addressed store, hash-verified

2133}
2134
2135func pyprojectExtra(dependencies []string, contents string) dagger.WithContainerFunc {
2136 dependencies = append([]string{"dagger-io"}, dependencies...)
2137 depLine := `dependencies = ["` + strings.Join(dependencies, `", "`) + `"]`
2138 base := `
2139[build-system]
2140requires = ["uv_build>=0.8.4,<0.9.0"]
2141build-backend = "uv_build"
2142
2143[tool.uv.sources]
2144dagger-io = { path = "sdk", editable = true }
2145
2146[project]
2147name = "test"
2148version = "0.0.0"
2149`
2150 return fileContents("pyproject.toml", base+depLine+"\n"+contents)
2151}
2152
2153func daggerInitPythonAt(modPath string, args ...string) dagger.WithContainerFunc {
2154 execArgs := append([]string{"init", "--sdk=python"}, args...)

Callers 4

TestInitMethod · 0.85
TestVersionMethod · 0.85
TestAltRuntimeMethod · 0.85
TestUvMethod · 0.85

Calls 1

fileContentsFunction · 0.85

Tested by

no test coverage detected