(options: {
venvPath: string;
projectDir: string;
requirementsPath: string;
})
| 197 | } |
| 198 | |
| 199 | async addFromFile(options: { |
| 200 | venvPath: string; |
| 201 | projectDir: string; |
| 202 | requirementsPath: string; |
| 203 | }): Promise<void> { |
| 204 | const { venvPath, projectDir, requirementsPath } = options; |
| 205 | const args = ['add', '--active', '-r', requirementsPath]; |
| 206 | debug(`Running "uv ${args.join(' ')}" in ${projectDir}...`); |
| 207 | await this.runUvCmd(args, projectDir, venvPath); |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Run a `uv pip` command (e.g., `uv pip install`). |