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