MCPcopy Index your code
hub / github.com/actions/setup-python / getAvailablePyPyVersions

Function getAvailablePyPyVersions

src/install-pypy.ts:127–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127export async function getAvailablePyPyVersions() {
128 const url = 'https://downloads.python.org/pypy/versions.json';
129 const http: httpm.HttpClient = new httpm.HttpClient('tool-cache');
130
131 const response = await http.getJson<IPyPyManifestRelease[]>(url);
132 if (!response.result) {
133 throw new Error(
134 `Unable to retrieve the list of available PyPy versions from '${url}'`
135 );
136 }
137
138 return response.result;
139}
140
141async function createPyPySymlink(
142 pypyBinaryPath: string,

Callers 1

installPyPyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected