diff --git a/__tests__/data/pypy.json b/__tests__/data/pypy.json index cd3069d2..8a9922c1 100644 --- a/__tests__/data/pypy.json +++ b/__tests__/data/pypy.json @@ -41,13 +41,7 @@ "arch": "s390x", "platform": "linux", "download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3-s390x.tar.bz2" - }, - { - "filename": "pypy2.7-v7.3.4rc1-win64.zip", - "arch": "x64", - "platform": "win64", - "download_url": "https://test.downloads.python.org/pypy/pypy2.7-v7.3.4rc1-win64.zip" - } + } ] }, { @@ -95,6 +89,45 @@ } ] }, + { + "pypy_version": "7.3.4rc1", + "python_version": "2.7.18", + "stable": false, + "latest_pypy": false, + "date": "2021-03-19", + "files": [ + { + "filename": "pypy2.7-v7.3.4rc1-aarch64.tar.bz2", + "arch": "aarch64", + "platform": "linux", + "download_url": "https://test.downloads.python.org/pypy/pypy2.7-v7.3.4rc1-aarch64.tar.bz2" + }, + { + "filename": "pypy2.7-v7.3.4rc1-linux32.tar.bz2", + "arch": "i686", + "platform": "linux", + "download_url": "https://test.downloads.python.org/pypy/pypy2.7-v7.3.4rc1-linux32.tar.bz2" + }, + { + "filename": "pypy2.7-v7.3.4rc1-linux64.tar.bz2", + "arch": "x64", + "platform": "linux", + "download_url": "https://test.downloads.python.org/pypy/pypy2.7-v7.3.4rc1-linux64.tar.bz2" + }, + { + "filename": "pypy2.7-v7.3.4rc1-osx64.tar.bz2", + "arch": "x64", + "platform": "darwin", + "download_url": "https://test.downloads.python.org/pypy/pypy2.7-v7.3.4rc1-osx64.tar.bz2" + }, + { + "filename": "pypy2.7-v7.3.4rc1-win64.zip", + "arch": "x64", + "platform": "win64", + "download_url": "https://test.downloads.python.org/pypy/pypy2.7-v7.3.4rc1-win64.zip" + } + ] + }, { "pypy_version": "7.3.3rc2", "python_version": "3.7.7", diff --git a/dist/index.js b/dist/index.js index 7a46933d..929af416 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2931,7 +2931,7 @@ function pypyVersionToSemantic(versionSpec) { } exports.pypyVersionToSemantic = pypyVersionToSemantic; function isArchPresentForWindows(item) { - core.info(item); + core.info(JSON.stringify(item)); return item.files.some((file) => utils_1.WINDOWS_ARCHS.includes(file.arch) && utils_1.WINDOWS_PLATFORMS.includes(file.platform)); } diff --git a/src/install-pypy.ts b/src/install-pypy.ts index 770ef17c..f7f05c07 100644 --- a/src/install-pypy.ts +++ b/src/install-pypy.ts @@ -195,7 +195,7 @@ export function pypyVersionToSemantic(versionSpec: string) { } export function isArchPresentForWindows(item: any) { - core.info(item); + core.info(JSON.stringify(item)); return item.files.some( (file: any) => WINDOWS_ARCHS.includes(file.arch) &&