mirror of
https://github.com/actions/setup-python
synced 2025-04-05 23:09:44 +00:00
Adding support for more PyPy versions and installing them on-flight (#168)
* add support to install pypy * resolved comments, update readme, add e2e tests. * resolve throw error * Add pypy unit tests to cover code * add tests * Update test-pypy.yml * Update test-python.yml * Update test-python.yml * Update README.md * fixing tests * change order Co-authored-by: Maxim Lobanov <v-malob@microsoft.com> * add pypy tests and fix issue with pypy-3-nightly Co-authored-by: Maxim Lobanov <v-malob@microsoft.com>
This commit is contained in:
494
__tests__/data/pypy.json
Normal file
494
__tests__/data/pypy.json
Normal file
@ -0,0 +1,494 @@
|
||||
[
|
||||
{
|
||||
"pypy_version": "7.3.3",
|
||||
"python_version": "3.6.12",
|
||||
"stable": true,
|
||||
"latest_pypy": true,
|
||||
"date": "2020-11-21",
|
||||
"files": [
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3-aarch64.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3-aarch64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3-linux32.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3-linux32.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3-linux64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3-linux64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3-darwin64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3-darwin64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3-win32.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3-win32.zip"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3-s390x.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3-s390x.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "7.3.3rc1",
|
||||
"python_version": "3.6.12",
|
||||
"stable": false,
|
||||
"latest_pypy": false,
|
||||
"date": "2020-11-11",
|
||||
"files": [
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3rc1-aarch64.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3rc1-aarch64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3-linux32rc1.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3rc1-linux32.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3rc1-linux64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3rc1-linux64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3rc1-osx64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3rc1-osx64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3-win32rc1.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3rc1-win32.zip"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.3rc1-s390x.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.3rc1-s390x.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "7.3.3rc2",
|
||||
"python_version": "3.7.7",
|
||||
"stable": false,
|
||||
"latest_pypy": false,
|
||||
"date": "2020-11-11",
|
||||
"files": [
|
||||
{
|
||||
"filename": "test.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "test.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "test.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "test.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "test.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "test.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "test.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "test.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "test.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "test.zip"
|
||||
},
|
||||
{
|
||||
"filename": "test.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "test.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "7.3.3",
|
||||
"python_version": "3.7.9",
|
||||
"stable": true,
|
||||
"latest_pypy": true,
|
||||
"date": "2020-11-21",
|
||||
"files": [
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.3-aarch64.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.3-aarch64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.3-linux32.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.3-linux32.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.3-linux64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.3-linux64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.3-osx64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.3-osx64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.3-win32.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.3-win32.zip"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.3-s390x.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.3-s390x.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "7.3.3",
|
||||
"python_version": "2.7.18",
|
||||
"stable": true,
|
||||
"latest_pypy": true,
|
||||
"date": "2020-11-21",
|
||||
"files": [
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.3-aarch64.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.3-aarch64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.3-linux32.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.3-linux32.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.3-linux64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.3-linux64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.3-osx64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.3-osx64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.3-win32.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.3-win32.zip"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.3-s390x.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.3-s390x.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "7.3.2",
|
||||
"python_version": "3.6.9",
|
||||
"stable": true,
|
||||
"latest_pypy": true,
|
||||
"date": "2020-09-25",
|
||||
"files": [
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.2-aarch64.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.2-aarch64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.2-linux32.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.2-linux32.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.2-linux64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.2-linux64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.2-osx64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.2-osx64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.2-win32.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.2-win32.zip"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.6-v7.3.2-s390x.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.6-v7.3.2-s390x.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "7.3.2",
|
||||
"python_version": "3.7.9",
|
||||
"stable": true,
|
||||
"latest_pypy": false,
|
||||
"date": "2020-09-25",
|
||||
"files": [
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.2-aarch64.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.2-aarch64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.2-linux32.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.2-linux32.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.2-linux64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.2-linux64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.2-osx64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.2-osx64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.2-win32.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.2-win32.zip"
|
||||
},
|
||||
{
|
||||
"filename": "pypy3.7-v7.3.2-s390x.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy3.7-v7.3.2-s390x.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "7.3.2",
|
||||
"python_version": "2.7.13",
|
||||
"stable": true,
|
||||
"latest_pypy": true,
|
||||
"date": "2020-09-25",
|
||||
"files": [
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.2-aarch64.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.2-aarch64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.2-linux32.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.2-linux32.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.2-linux64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.2-linux64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.2-osx64.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.2-osx64.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.2-win32.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.2-win32.zip"
|
||||
},
|
||||
{
|
||||
"filename": "pypy2.7-v7.3.2-s390x.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "https://test.download.python.org/pypy/pypy2.7-v7.3.2-s390x.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "nightly",
|
||||
"python_version": "2.7",
|
||||
"stable": false,
|
||||
"latest_pypy": false,
|
||||
"files": [
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "http://nightlyBuilds.org/filename.zip"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "nightly",
|
||||
"python_version": "3.7",
|
||||
"stable": false,
|
||||
"latest_pypy": false,
|
||||
"files": [
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "http://nightlyBuilds.org/filename.zip"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pypy_version": "nightly",
|
||||
"python_version": "3.6",
|
||||
"stable": false,
|
||||
"latest_pypy": false,
|
||||
"files": [
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "aarch64",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "i686",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "x64",
|
||||
"platform": "darwin",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
},
|
||||
{
|
||||
"filename": "filename.zip",
|
||||
"arch": "x86",
|
||||
"platform": "win32",
|
||||
"download_url": "http://nightlyBuilds.org/filename.zip"
|
||||
},
|
||||
{
|
||||
"filename": "filename.tar.bz2",
|
||||
"arch": "s390x",
|
||||
"platform": "linux",
|
||||
"download_url": "http://nightlyBuilds.org/filename.tar.bz2"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user