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

Function setupDistInfo

packages/python-analysis/test/dist-metadata.test.ts:175–184  ·  view source on GitHub ↗
(
    name: string,
    version: string,
    recordContent: string
  )

Source from the content-addressed store, hash-verified

173 });
174
175 async function setupDistInfo(
176 name: string,
177 version: string,
178 recordContent: string
179 ) {
180 const distInfoDir = join(tmpDir, `${name}-${version}.dist-info`);
181 await mkdir(distInfoDir, { recursive: true });
182 await writeFile(join(distInfoDir, 'RECORD'), recordContent);
183 return distInfoDir;
184 }
185
186 /** Create a file under tmpDir and return its expected RECORD entry. */
187 async function createFile(relPath: string, content: string): Promise<string> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected