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

Function selectVersion

packages/python/test/unit.test.ts:142–151  ·  view source on GitHub ↗
(opts: {
  constraints?: PythonConstraint[];
  isDev?: boolean;
})

Source from the content-addressed store, hash-verified

140}
141
142function selectVersion(opts: {
143 constraints?: PythonConstraint[];
144 isDev?: boolean;
145}) {
146 return resolvePythonVersion({
147 isDev: opts.isDev,
148 pythonPackage: makePackage(opts.constraints),
149 rootDir: '/tmp',
150 });
151}
152
153let warningMessages: string[];
154const originalConsoleWarn = console.warn;

Callers 1

unit.test.tsFile · 0.85

Calls 2

resolvePythonVersionFunction · 0.90
makePackageFunction · 0.70

Tested by

no test coverage detected