Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CPython JSON data #260

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
282 changes: 282 additions & 0 deletions src/builder/__tests__/__snapshots__/darwin.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22139,3 +22139,285 @@ exports[`MacOSBuilder for version 3.11.5 identifies the correct additional paths
exports[`MacOSBuilder for version 3.11.5 identifies the correct additional paths to cache for arch x64 1`] = `[]`;

exports[`MacOSBuilder for version 3.11.5 identifies the correct additional paths to cache for arch x86 1`] = `[]`;

exports[`MacOSBuilder for version 3.11.6 has a stable interaction with @actions/toolkit during build for arch arm64 1`] = `
[
"Create directory with path tmpDir/CPython3.11.6arm64darwin/tmp",
"Cache source directory tmpDir/CPython3.11.6arm64darwin/tmp as tool Python version 3.11.6 for architecture arm64",
"Recursively remove path tmpDir/CPython3.11.6arm64darwin/tmp",
"Recursively remove path toolcache/Python/3.11.6",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew --prefix zlib "",
"Execute command "brew --prefix readline "",
"Execute command "brew install openssl "",
"Execute command "brew --prefix openssl "",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.11.6 to defaultDownloadPath/v3.11.6",
"Extract defaultDownloadPath/v3.11.6 to defaultExtractedPath/extractedv3.11.6",
"Recursively remove path defaultDownloadPath/v3.11.6",
"Copy folder defaultExtractedPath/extractedv3.11.6/python-cpython to tmpDir/CPython3.11.6arm64darwin",
"Recursively remove path defaultExtractedPath/extractedv3.11.6",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.11.6/arm64 --enable-shared --enable-loadable-sqlite-extensions --enable-optimizations --with-lto --with-openssl=brew --prefix openssl "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.11.6/arm64 to tmpDir/CPython3.11.6arm64darwin/installDir",
"Recursively remove path toolcache/Python/3.11.6",
]
`;

exports[`MacOSBuilder for version 3.11.6 has a stable interaction with @actions/toolkit during build for arch x64 1`] = `
[
"Create directory with path tmpDir/CPython3.11.6x64darwin/tmp",
"Cache source directory tmpDir/CPython3.11.6x64darwin/tmp as tool Python version 3.11.6 for architecture x64",
"Recursively remove path tmpDir/CPython3.11.6x64darwin/tmp",
"Recursively remove path toolcache/Python/3.11.6",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew --prefix zlib "",
"Execute command "brew --prefix readline "",
"Execute command "brew install openssl "",
"Execute command "brew --prefix openssl "",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.11.6 to defaultDownloadPath/v3.11.6",
"Extract defaultDownloadPath/v3.11.6 to defaultExtractedPath/extractedv3.11.6",
"Recursively remove path defaultDownloadPath/v3.11.6",
"Copy folder defaultExtractedPath/extractedv3.11.6/python-cpython to tmpDir/CPython3.11.6x64darwin",
"Recursively remove path defaultExtractedPath/extractedv3.11.6",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.11.6/x64 --enable-shared --enable-loadable-sqlite-extensions --enable-optimizations --with-lto --with-openssl=brew --prefix openssl "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.11.6/x64 to tmpDir/CPython3.11.6x64darwin/installDir",
"Recursively remove path toolcache/Python/3.11.6",
]
`;

exports[`MacOSBuilder for version 3.11.6 has a stable interaction with @actions/toolkit during build for arch x86 1`] = `
[
"Create directory with path tmpDir/CPython3.11.6x86darwin/tmp",
"Cache source directory tmpDir/CPython3.11.6x86darwin/tmp as tool Python version 3.11.6 for architecture x86",
"Recursively remove path tmpDir/CPython3.11.6x86darwin/tmp",
"Recursively remove path toolcache/Python/3.11.6",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew --prefix zlib "",
"Execute command "brew --prefix readline "",
"Execute command "brew install openssl "",
"Execute command "brew --prefix openssl "",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.11.6 to defaultDownloadPath/v3.11.6",
"Extract defaultDownloadPath/v3.11.6 to defaultExtractedPath/extractedv3.11.6",
"Recursively remove path defaultDownloadPath/v3.11.6",
"Copy folder defaultExtractedPath/extractedv3.11.6/python-cpython to tmpDir/CPython3.11.6x86darwin",
"Recursively remove path defaultExtractedPath/extractedv3.11.6",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.11.6/x86 --enable-shared --enable-loadable-sqlite-extensions --enable-optimizations --with-lto --with-openssl=brew --prefix openssl "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.11.6/x86 to tmpDir/CPython3.11.6x86darwin/installDir",
"Recursively remove path toolcache/Python/3.11.6",
]
`;

exports[`MacOSBuilder for version 3.11.6 has a stable interaction with @actions/toolkit during postInstall for arch arm64 1`] = `
[
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew install openssl "",
"Create symlink in path installPath/python pointing to installPath/bin/python3.11",
"Create symlink in path installPath/bin/python311 pointing to installPath/bin/python3.11",
"Create symlink in path installPath/bin/python pointing to installPath/bin/python3.11",
"Execute command "chmod +x installPath/bin/python3.11 "",
"Execute command "chmod +x installPath/python "",
"Execute command "chmod +x installPath/bin/python311 "",
"Execute command "chmod +x installPath/bin/python "",
"Execute command "chmod +x installPath/bin/python3 "",
]
`;

exports[`MacOSBuilder for version 3.11.6 has a stable interaction with @actions/toolkit during postInstall for arch x64 1`] = `
[
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew install openssl "",
"Create symlink in path installPath/python pointing to installPath/bin/python3.11",
"Create symlink in path installPath/bin/python311 pointing to installPath/bin/python3.11",
"Create symlink in path installPath/bin/python pointing to installPath/bin/python3.11",
"Execute command "chmod +x installPath/bin/python3.11 "",
"Execute command "chmod +x installPath/python "",
"Execute command "chmod +x installPath/bin/python311 "",
"Execute command "chmod +x installPath/bin/python "",
"Execute command "chmod +x installPath/bin/python3 "",
]
`;

exports[`MacOSBuilder for version 3.11.6 has a stable interaction with @actions/toolkit during postInstall for arch x86 1`] = `
[
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew install openssl "",
"Create symlink in path installPath/python pointing to installPath/bin/python3.11",
"Create symlink in path installPath/bin/python311 pointing to installPath/bin/python3.11",
"Create symlink in path installPath/bin/python pointing to installPath/bin/python3.11",
"Execute command "chmod +x installPath/bin/python3.11 "",
"Execute command "chmod +x installPath/python "",
"Execute command "chmod +x installPath/bin/python311 "",
"Execute command "chmod +x installPath/bin/python "",
"Execute command "chmod +x installPath/bin/python3 "",
]
`;

exports[`MacOSBuilder for version 3.11.6 identifies the correct additional paths to cache for arch arm64 1`] = `[]`;

exports[`MacOSBuilder for version 3.11.6 identifies the correct additional paths to cache for arch x64 1`] = `[]`;

exports[`MacOSBuilder for version 3.11.6 identifies the correct additional paths to cache for arch x86 1`] = `[]`;

exports[`MacOSBuilder for version 3.12.0 has a stable interaction with @actions/toolkit during build for arch arm64 1`] = `
[
"Create directory with path tmpDir/CPython3.12.0arm64darwin/tmp",
"Cache source directory tmpDir/CPython3.12.0arm64darwin/tmp as tool Python version 3.12.0 for architecture arm64",
"Recursively remove path tmpDir/CPython3.12.0arm64darwin/tmp",
"Recursively remove path toolcache/Python/3.12.0",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew --prefix zlib "",
"Execute command "brew --prefix readline "",
"Execute command "brew install openssl "",
"Execute command "brew --prefix openssl "",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.12.0 to defaultDownloadPath/v3.12.0",
"Extract defaultDownloadPath/v3.12.0 to defaultExtractedPath/extractedv3.12.0",
"Recursively remove path defaultDownloadPath/v3.12.0",
"Copy folder defaultExtractedPath/extractedv3.12.0/python-cpython to tmpDir/CPython3.12.0arm64darwin",
"Recursively remove path defaultExtractedPath/extractedv3.12.0",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.12.0/arm64 --enable-shared --enable-loadable-sqlite-extensions --enable-optimizations --with-lto --with-openssl=brew --prefix openssl "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.12.0/arm64 to tmpDir/CPython3.12.0arm64darwin/installDir",
"Recursively remove path toolcache/Python/3.12.0",
]
`;

exports[`MacOSBuilder for version 3.12.0 has a stable interaction with @actions/toolkit during build for arch x64 1`] = `
[
"Create directory with path tmpDir/CPython3.12.0x64darwin/tmp",
"Cache source directory tmpDir/CPython3.12.0x64darwin/tmp as tool Python version 3.12.0 for architecture x64",
"Recursively remove path tmpDir/CPython3.12.0x64darwin/tmp",
"Recursively remove path toolcache/Python/3.12.0",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew --prefix zlib "",
"Execute command "brew --prefix readline "",
"Execute command "brew install openssl "",
"Execute command "brew --prefix openssl "",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.12.0 to defaultDownloadPath/v3.12.0",
"Extract defaultDownloadPath/v3.12.0 to defaultExtractedPath/extractedv3.12.0",
"Recursively remove path defaultDownloadPath/v3.12.0",
"Copy folder defaultExtractedPath/extractedv3.12.0/python-cpython to tmpDir/CPython3.12.0x64darwin",
"Recursively remove path defaultExtractedPath/extractedv3.12.0",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.12.0/x64 --enable-shared --enable-loadable-sqlite-extensions --enable-optimizations --with-lto --with-openssl=brew --prefix openssl "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.12.0/x64 to tmpDir/CPython3.12.0x64darwin/installDir",
"Recursively remove path toolcache/Python/3.12.0",
]
`;

exports[`MacOSBuilder for version 3.12.0 has a stable interaction with @actions/toolkit during build for arch x86 1`] = `
[
"Create directory with path tmpDir/CPython3.12.0x86darwin/tmp",
"Cache source directory tmpDir/CPython3.12.0x86darwin/tmp as tool Python version 3.12.0 for architecture x86",
"Recursively remove path tmpDir/CPython3.12.0x86darwin/tmp",
"Recursively remove path toolcache/Python/3.12.0",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew --prefix zlib "",
"Execute command "brew --prefix readline "",
"Execute command "brew install openssl "",
"Execute command "brew --prefix openssl "",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.12.0 to defaultDownloadPath/v3.12.0",
"Extract defaultDownloadPath/v3.12.0 to defaultExtractedPath/extractedv3.12.0",
"Recursively remove path defaultDownloadPath/v3.12.0",
"Copy folder defaultExtractedPath/extractedv3.12.0/python-cpython to tmpDir/CPython3.12.0x86darwin",
"Recursively remove path defaultExtractedPath/extractedv3.12.0",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.12.0/x86 --enable-shared --enable-loadable-sqlite-extensions --enable-optimizations --with-lto --with-openssl=brew --prefix openssl "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.12.0/x86 to tmpDir/CPython3.12.0x86darwin/installDir",
"Recursively remove path toolcache/Python/3.12.0",
]
`;

exports[`MacOSBuilder for version 3.12.0 has a stable interaction with @actions/toolkit during postInstall for arch arm64 1`] = `
[
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew install openssl "",
"Create symlink in path installPath/python pointing to installPath/bin/python3.12",
"Create symlink in path installPath/bin/python312 pointing to installPath/bin/python3.12",
"Create symlink in path installPath/bin/python pointing to installPath/bin/python3.12",
"Execute command "chmod +x installPath/bin/python3.12 "",
"Execute command "chmod +x installPath/python "",
"Execute command "chmod +x installPath/bin/python312 "",
"Execute command "chmod +x installPath/bin/python "",
"Execute command "chmod +x installPath/bin/python3 "",
]
`;

exports[`MacOSBuilder for version 3.12.0 has a stable interaction with @actions/toolkit during postInstall for arch x64 1`] = `
[
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew install openssl "",
"Create symlink in path installPath/python pointing to installPath/bin/python3.12",
"Create symlink in path installPath/bin/python312 pointing to installPath/bin/python3.12",
"Create symlink in path installPath/bin/python pointing to installPath/bin/python3.12",
"Execute command "chmod +x installPath/bin/python3.12 "",
"Execute command "chmod +x installPath/python "",
"Execute command "chmod +x installPath/bin/python312 "",
"Execute command "chmod +x installPath/bin/python "",
"Execute command "chmod +x installPath/bin/python3 "",
]
`;

exports[`MacOSBuilder for version 3.12.0 has a stable interaction with @actions/toolkit during postInstall for arch x86 1`] = `
[
"Execute command "brew install zlib "",
"Execute command "brew install sqlite3 "",
"Execute command "brew install readline "",
"Execute command "brew install openssl "",
"Create symlink in path installPath/python pointing to installPath/bin/python3.12",
"Create symlink in path installPath/bin/python312 pointing to installPath/bin/python3.12",
"Create symlink in path installPath/bin/python pointing to installPath/bin/python3.12",
"Execute command "chmod +x installPath/bin/python3.12 "",
"Execute command "chmod +x installPath/python "",
"Execute command "chmod +x installPath/bin/python312 "",
"Execute command "chmod +x installPath/bin/python "",
"Execute command "chmod +x installPath/bin/python3 "",
]
`;

exports[`MacOSBuilder for version 3.12.0 identifies the correct additional paths to cache for arch arm64 1`] = `[]`;

exports[`MacOSBuilder for version 3.12.0 identifies the correct additional paths to cache for arch x64 1`] = `[]`;

exports[`MacOSBuilder for version 3.12.0 identifies the correct additional paths to cache for arch x86 1`] = `[]`;
Loading
Loading