VendorConfig appends to a pyproject.toml the config to vendor the client library
(cfg, path string)
| 61 | |
| 62 | // VendorConfig appends to a pyproject.toml the config to vendor the client library |
| 63 | func VendorConfig(cfg, path string) string { |
| 64 | if path == "" { |
| 65 | return cfg |
| 66 | } |
| 67 | return fmt.Sprintf( |
| 68 | "%s\n\n[tool.uv.sources]\ndagger-io = { path = %q, editable = true }\n", |
| 69 | strings.TrimSpace(cfg), |
| 70 | path, |
| 71 | ) |
| 72 | } |