(ctx context.Context, t *testctx.T)
| 295 | } |
| 296 | |
| 297 | func (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] |
| 311 | name = "test" |
| 312 | version = "0.0.0" |
| 313 | dependencies = ["dagger-io"] |
| 314 | |
| 315 | [tool.uv.sources] |
| 316 | dagger-io = { path = "sdk", editable = true } |
| 317 | |
| 318 | [build-system] |
| 319 | requires = ["uv_build"] |
| 320 | build-backend = "uv_build" |
| 321 | `, |
| 322 | }, |
| 323 | { |
| 324 | name: "uv", |
| 325 | path: "test/__init__.py", |
| 326 | conf: ` |
| 327 | [project] |
| 328 | name = "test" |
| 329 | version = "0.0.0" |
| 330 | dependencies = ["dagger-io"] |
| 331 | |
| 332 | [tool.uv.sources] |
| 333 | dagger-io = { path = "sdk", editable = true } |
| 334 | |
| 335 | [build-system] |
| 336 | requires = ["uv_build"] |
| 337 | build-backend = "uv_build" |
| 338 | |
| 339 | [tool.uv.build-backend] |
| 340 | module-root = "" |
| 341 | `, |
| 342 | }, |
| 343 | { |
| 344 | name: "setuptools", |
| 345 | path: "src/test/__init__.py", |
| 346 | conf: ` |
| 347 | [project] |
| 348 | name = "test" |
| 349 | version = "0.0.0" |
| 350 | dependencies = ["dagger-io"] |
| 351 | |
| 352 | [tool.uv] |
| 353 | package = true |
| 354 |
nothing calls this directly
no test coverage detected