Skip to content

Commit

Permalink
python 3.10.9 (#36)
Browse files Browse the repository at this point in the history
bsdtar 3.6.2
  • Loading branch information
hemnstill authored Dec 21, 2022
1 parent fca79e2 commit ce09492
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: ./.github/workflows/release.yml
with:
workflow: ${{ github.workflow }}
tool_version: '3.10.7'
tool_version: '3.10.9'
prepare_body: |
bsdtar -Oxf ./build-musl/build-musl.tar.gz build-musl.md >> body.md
bsdtar -Oxf ./build-msvc/build-msvc.tar.gz build-msvc.md >> body.md
Expand Down
24 changes: 12 additions & 12 deletions README.md

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions python/build_msvc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@ dp0="$(realpath "$(dirname "$0")")"
set -e

tool_name="python"
tool_version="3.10.7"
tool_version="3.10.9"
release_date="20221220"
self_name="$tool_name-$tool_version"
release_version_dirpath="$dp0/release/$self_name"
echo "::set-output name=tool_name::$tool_name"
echo "::set-output name=tool_version::$tool_version"

mkdir -p "$release_version_dirpath" && cd "$dp0/release"

echo "download python ..."
download_url="https://github.com/indygreg/python-build-standalone/releases/download/20221002/cpython-3.10.7+20221002-x86_64-pc-windows-msvc-shared-pgo-full.tar.zst"
download_url="https://github.com/indygreg/python-build-standalone/releases/download/$release_date/cpython-$tool_version+$release_date-x86_64-pc-windows-msvc-shared-pgo-full.tar.zst"
cpython_zip="$dp0/release/raw_cpython-win.tar.zst"
echo "download python from $download_url ..."
[[ ! -f "$cpython_zip" ]] && wget "$download_url" -O "$cpython_zip"

echo "download bsdtar ..."
bsdtar_download_url="https://github.com/hemnstill/StandaloneTools/releases/download/bsdtar-3.6.1/build-mingw.tar.gz"
bsdtar_tar_gz="bsdtar-3.6.1_build-mingw.tar.gz"
bsdtar_version=3.6.2
bsdtar_download_url="https://github.com/hemnstill/StandaloneTools/releases/download/bsdtar-$bsdtar_version/build-mingw.tar.gz"
bsdtar_tar_gz="bsdtar-$bsdtar_version-build-mingw.tar.gz"
[[ ! -f "$bsdtar_tar_gz" ]] && wget "$bsdtar_download_url" -O "$bsdtar_tar_gz"
tar -xf "$bsdtar_tar_gz"

Expand Down
15 changes: 9 additions & 6 deletions python/build_musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ apk update
apk add --no-cache alpine-sdk python3-dev

tool_name="python"
tool_version="3.10.7"
tool_version="3.10.9"
release_date="20221220"
release_url="https://github.com/indygreg/python-build-standalone/releases/tag/20221220"
self_name="$tool_name-$tool_version"
release_version_dirpath="$dp0/release/$self_name"
echo "::set-output name=tool_name::$tool_name"
echo "::set-output name=tool_version::$tool_version"

mkdir -p "$release_version_dirpath" && cd "$dp0/release"

echo "download python ..."
download_url="https://github.com/indygreg/python-build-standalone/releases/download/20221002/cpython-3.10.7+20221002-x86_64-unknown-linux-musl-noopt-full.tar.zst"
download_url="https://github.com/indygreg/python-build-standalone/releases/download/$release_date/cpython-$tool_version+$release_date-x86_64-unknown-linux-musl-noopt-full.tar.zst"
cpython_zip="$dp0/release/raw_cpython-linux.tar.zst"
echo "download python from $download_url ..."
[[ ! -f "$cpython_zip" ]] && wget "$download_url" -O "$cpython_zip"

echo "download bsdtar ..."
bsdtar_download_url="https://github.com/hemnstill/StandaloneTools/releases/download/bsdtar-3.6.1/build-musl.tar.gz"
bsdtar_tar_gz="bsdtar-3.6.1_build-musl.tar.gz"
bsdtar_version=3.6.2
bsdtar_download_url="https://github.com/hemnstill/StandaloneTools/releases/download/bsdtar-$bsdtar_version/build-musl.tar.gz"
bsdtar_tar_gz="bsdtar-$bsdtar_version-build-musl.tar.gz"
[[ ! -f "$bsdtar_tar_gz" ]] && wget "$bsdtar_download_url" -O "$bsdtar_tar_gz"
tar -xf "$bsdtar_tar_gz"

Expand Down Expand Up @@ -64,6 +66,7 @@ cd "$release_version_dirpath"
{ printf 'Python %s
%s
%s
' "$("$cpython_bin" -c "import sys; print(sys.version)")" "$("$cpython_bin" -m pip --version)" "$download_url"
} > build-musl.md

Expand Down
2 changes: 1 addition & 1 deletion python/test_linux.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

test_version() {
assertEquals "Python 3.10.7" "$(../bin/Scripts/bin/python3 --version)"
assertEquals "Python 3.10.9" "$(../bin/Scripts/bin/python3 --version)"
}

# Load and run shUnit2.
Expand Down
2 changes: 1 addition & 1 deletion python/test_windows.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

test_version() {
assertEquals "Python 3.10.7" "$(../bin/Scripts/python.exe --version)"
assertEquals "Python 3.10.9" "$(../bin/Scripts/python.exe --version)"
}

# Load and run shUnit2.
Expand Down

0 comments on commit ce09492

Please sign in to comment.