MCPcopy Create free account
hub / github.com/vercel/vercel / addFromFile

Method addFromFile

packages/python/src/uv.ts:199–208  ·  view source on GitHub ↗
(options: {
    venvPath: string;
    projectDir: string;
    requirementsPath: string;
  })

Source from the content-addressed store, hash-verified

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`).

Callers

nothing calls this directly

Calls 3

runUvCmdMethod · 0.95
debugFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected