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 #304

Merged
merged 1 commit into from
Dec 5, 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
129 changes: 129 additions & 0 deletions src/builder/__tests__/__snapshots__/darwin.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20445,6 +20445,135 @@ exports[`MacOSBuilder for version 3.11.6 identifies the correct additional paths

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

exports[`MacOSBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during build for arch arm64 1`] = `
[
"Create directory with path tmpDir/CPython3.11.7arm64darwin/tmp",
"Cache source directory tmpDir/CPython3.11.7arm64darwin/tmp as tool Python version 3.11.7 for architecture arm64",
"Recursively remove path tmpDir/CPython3.11.7arm64darwin/tmp",
"Recursively remove path toolcache/Python/3.11.7",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib sqlite3 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.7 to defaultDownloadPath/v3.11.7",
"Extract defaultDownloadPath/v3.11.7 to defaultExtractedPath/extractedv3.11.7",
"Recursively remove path defaultDownloadPath/v3.11.7",
"Copy folder defaultExtractedPath/extractedv3.11.7/python-cpython to tmpDir/CPython3.11.7arm64darwin",
"Recursively remove path defaultExtractedPath/extractedv3.11.7",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.11.7/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.7/arm64 to tmpDir/CPython3.11.7arm64darwin/installDir",
"Recursively remove path toolcache/Python/3.11.7",
]
`;

exports[`MacOSBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during build for arch x64 1`] = `
[
"Create directory with path tmpDir/CPython3.11.7x64darwin/tmp",
"Cache source directory tmpDir/CPython3.11.7x64darwin/tmp as tool Python version 3.11.7 for architecture x64",
"Recursively remove path tmpDir/CPython3.11.7x64darwin/tmp",
"Recursively remove path toolcache/Python/3.11.7",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib sqlite3 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.7 to defaultDownloadPath/v3.11.7",
"Extract defaultDownloadPath/v3.11.7 to defaultExtractedPath/extractedv3.11.7",
"Recursively remove path defaultDownloadPath/v3.11.7",
"Copy folder defaultExtractedPath/extractedv3.11.7/python-cpython to tmpDir/CPython3.11.7x64darwin",
"Recursively remove path defaultExtractedPath/extractedv3.11.7",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.11.7/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.7/x64 to tmpDir/CPython3.11.7x64darwin/installDir",
"Recursively remove path toolcache/Python/3.11.7",
]
`;

exports[`MacOSBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during build for arch x86 1`] = `
[
"Create directory with path tmpDir/CPython3.11.7x86darwin/tmp",
"Cache source directory tmpDir/CPython3.11.7x86darwin/tmp as tool Python version 3.11.7 for architecture x86",
"Recursively remove path tmpDir/CPython3.11.7x86darwin/tmp",
"Recursively remove path toolcache/Python/3.11.7",
"Execute command "xcode-select --install "",
"Execute command "brew install zlib sqlite3 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.7 to defaultDownloadPath/v3.11.7",
"Extract defaultDownloadPath/v3.11.7 to defaultExtractedPath/extractedv3.11.7",
"Recursively remove path defaultDownloadPath/v3.11.7",
"Copy folder defaultExtractedPath/extractedv3.11.7/python-cpython to tmpDir/CPython3.11.7x86darwin",
"Recursively remove path defaultExtractedPath/extractedv3.11.7",
"Execute command "brew --prefix sqlite3 "",
"Execute command "./configure --prefix=toolcache/Python/3.11.7/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.7/x86 to tmpDir/CPython3.11.7x86darwin/installDir",
"Recursively remove path toolcache/Python/3.11.7",
]
`;

exports[`MacOSBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during postInstall for arch arm64 1`] = `
[
"Execute command "brew install zlib sqlite3 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.7 has a stable interaction with @actions/toolkit during postInstall for arch x64 1`] = `
[
"Execute command "brew install zlib sqlite3 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.7 has a stable interaction with @actions/toolkit during postInstall for arch x86 1`] = `
[
"Execute command "brew install zlib sqlite3 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.7 identifies the correct additional paths to cache for arch arm64 1`] = `[]`;

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

exports[`MacOSBuilder for version 3.11.7 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",
Expand Down
108 changes: 108 additions & 0 deletions src/builder/__tests__/__snapshots__/linux.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18411,6 +18411,114 @@ exports[`LinuxBuilder for version 3.11.6 identifies the correct additional paths

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

exports[`LinuxBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during build for arch arm64 1`] = `
[
"Create directory with path tmpDir/CPython3.11.7arm64nix/tmp",
"Cache source directory tmpDir/CPython3.11.7arm64nix/tmp as tool Python version 3.11.7 for architecture arm64",
"Recursively remove path tmpDir/CPython3.11.7arm64nix/tmp",
"Recursively remove path toolcache/Python/3.11.7",
"Execute command "sudo apt update "",
"Execute command "sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev libncursesw5-dev libreadline-dev libgdbm-dev libgdbm-compat-dev libssl-dev curl llvm libncurses5-dev xz-utils tk-dev liblzma-dev gdb lcov pkg-config libffi-dev libreadline6-dev lzma lzma-dev uuid-dev"",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.11.7 to defaultDownloadPath/v3.11.7",
"Extract defaultDownloadPath/v3.11.7 to defaultExtractedPath/extractedv3.11.7",
"Recursively remove path defaultDownloadPath/v3.11.7",
"Copy folder defaultExtractedPath/extractedv3.11.7/python-cpython to tmpDir/CPython3.11.7arm64nix",
"Recursively remove path defaultExtractedPath/extractedv3.11.7",
"Execute command "./configure --prefix=toolcache/Python/3.11.7/arm64 --enable-shared LDFLAGS="-Wl,--rpath=toolcache/Python/3.11.7/arm64/lib" --enable-loadable-sqlite-extensions --enable-optimizations "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.11.7/arm64 to tmpDir/CPython3.11.7arm64nix/installDir",
"Recursively remove path toolcache/Python/3.11.7",
]
`;

exports[`LinuxBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during build for arch x64 1`] = `
[
"Create directory with path tmpDir/CPython3.11.7x64nix/tmp",
"Cache source directory tmpDir/CPython3.11.7x64nix/tmp as tool Python version 3.11.7 for architecture x64",
"Recursively remove path tmpDir/CPython3.11.7x64nix/tmp",
"Recursively remove path toolcache/Python/3.11.7",
"Execute command "sudo apt update "",
"Execute command "sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev libncursesw5-dev libreadline-dev libgdbm-dev libgdbm-compat-dev libssl-dev curl llvm libncurses5-dev xz-utils tk-dev liblzma-dev gdb lcov pkg-config libffi-dev libreadline6-dev lzma lzma-dev uuid-dev"",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.11.7 to defaultDownloadPath/v3.11.7",
"Extract defaultDownloadPath/v3.11.7 to defaultExtractedPath/extractedv3.11.7",
"Recursively remove path defaultDownloadPath/v3.11.7",
"Copy folder defaultExtractedPath/extractedv3.11.7/python-cpython to tmpDir/CPython3.11.7x64nix",
"Recursively remove path defaultExtractedPath/extractedv3.11.7",
"Execute command "./configure --prefix=toolcache/Python/3.11.7/x64 --enable-shared LDFLAGS="-Wl,--rpath=toolcache/Python/3.11.7/x64/lib" --enable-loadable-sqlite-extensions --enable-optimizations "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.11.7/x64 to tmpDir/CPython3.11.7x64nix/installDir",
"Recursively remove path toolcache/Python/3.11.7",
]
`;

exports[`LinuxBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during build for arch x86 1`] = `
[
"Create directory with path tmpDir/CPython3.11.7x86nix/tmp",
"Cache source directory tmpDir/CPython3.11.7x86nix/tmp as tool Python version 3.11.7 for architecture x86",
"Recursively remove path tmpDir/CPython3.11.7x86nix/tmp",
"Recursively remove path toolcache/Python/3.11.7",
"Execute command "sudo apt update "",
"Execute command "sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev libncursesw5-dev libreadline-dev libgdbm-dev libgdbm-compat-dev libssl-dev curl llvm libncurses5-dev xz-utils tk-dev liblzma-dev gdb lcov pkg-config libffi-dev libreadline6-dev lzma lzma-dev uuid-dev"",
"Download https://api.github.com/repos/python/cpython/zipball/refs/tags/v3.11.7 to defaultDownloadPath/v3.11.7",
"Extract defaultDownloadPath/v3.11.7 to defaultExtractedPath/extractedv3.11.7",
"Recursively remove path defaultDownloadPath/v3.11.7",
"Copy folder defaultExtractedPath/extractedv3.11.7/python-cpython to tmpDir/CPython3.11.7x86nix",
"Recursively remove path defaultExtractedPath/extractedv3.11.7",
"Execute command "./configure --prefix=toolcache/Python/3.11.7/x86 --enable-shared LDFLAGS="-Wl,--rpath=toolcache/Python/3.11.7/x86/lib" --enable-loadable-sqlite-extensions --enable-optimizations "",
"Execute command "make "",
"Execute command "make install "",
"Copy folder toolcache/Python/3.11.7/x86 to tmpDir/CPython3.11.7x86nix/installDir",
"Recursively remove path toolcache/Python/3.11.7",
]
`;

exports[`LinuxBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during postInstall for arch arm64 1`] = `
[
"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[`LinuxBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during postInstall for arch x64 1`] = `
[
"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[`LinuxBuilder for version 3.11.7 has a stable interaction with @actions/toolkit during postInstall for arch x86 1`] = `
[
"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[`LinuxBuilder for version 3.11.7 identifies the correct additional paths to cache for arch arm64 1`] = `[]`;

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

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

exports[`LinuxBuilder 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.0arm64nix/tmp",
Expand Down
Loading
Loading