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

Method TestProjectLayout

core/integration/module_python_test.go:297–593  ·  view source on GitHub ↗
(ctx context.Context, t *testctx.T)

Source from the content-addressed store, hash-verified

295}
296
297func (PythonSuite) TestProjectLayout(ctx context.Context, t *testctx.T) {
298 // NB: This is testing uv integration with different build backends,
299 // **not** different package managers.
300
301 testCases := []struct {
302 name string
303 path string
304 conf string
305 }{
306 {
307 name: "uv",
308 path: "src/test/__init__.py",
309 conf: `
310[project]
311name = "test"
312version = "0.0.0"
313dependencies = ["dagger-io"]
314
315[tool.uv.sources]
316dagger-io = { path = "sdk", editable = true }
317
318[build-system]
319requires = ["uv_build"]
320build-backend = "uv_build"
321`,
322 },
323 {
324 name: "uv",
325 path: "test/__init__.py",
326 conf: `
327[project]
328name = "test"
329version = "0.0.0"
330dependencies = ["dagger-io"]
331
332[tool.uv.sources]
333dagger-io = { path = "sdk", editable = true }
334
335[build-system]
336requires = ["uv_build"]
337build-backend = "uv_build"
338
339[tool.uv.build-backend]
340module-root = ""
341`,
342 },
343 {
344 name: "setuptools",
345 path: "src/test/__init__.py",
346 conf: `
347[project]
348name = "test"
349version = "0.0.0"
350dependencies = ["dagger-io"]
351
352[tool.uv]
353package = true
354

Callers

nothing calls this directly

Calls 12

daggerCliBaseFunction · 0.85
fileContentsFunction · 0.85
pipLockModFunction · 0.85
daggerInitPythonFunction · 0.85
daggerCallFunction · 0.85
connectFunction · 0.70
RunMethod · 0.65
ContainsMethod · 0.65
StdoutMethod · 0.45
WithMethod · 0.45
WithExecMethod · 0.45
WithEnvVariableMethod · 0.45

Tested by

no test coverage detected