Skip to content

Commit

Permalink
python freethreaded builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hemnstill committed Dec 14, 2024
1 parent ccf60d2 commit f2f7cf7
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: ./.github/workflows/release.yml
with:
workflow: ${{ github.workflow }}
tool_version: '1.8.3'
tool_version: '1.8.5'
prepare_body: |
bsdtar -Oxf ./build-gnu/build-gnu.tar.gz build-gnu.md >> body.md
bsdtar -Oxf ./build-msvc/build-msvc.tar.gz build-msvc.md >> body.md
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: ./.github/workflows/release.yml
with:
workflow: ${{ github.workflow }}
tool_version: '3.12.5'
tool_version: '3.13.1'
prepare_body: |
bsdtar -Oxf ./build-musl/build-musl.tar.gz build-musl.md >> body.md
bsdtar -Oxf ./build-gnu/build-gnu.tar.gz build-gnu.md >> body.md
Expand Down
34 changes: 17 additions & 17 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions poetry/build_gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ apt update
apt install -y wget binutils

tool_name="poetry"
tool_version="1.8.3"
python_self_name="python-3.12.5"
tool_version="1.8.5"
python_self_name="python-3.13.1"
self_name="$tool_name-$tool_version"
self_toolset_name="build-gnu"
release_version_dirpath="$dp0/release/$self_name"
Expand Down
4 changes: 2 additions & 2 deletions poetry/build_msvc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ dp0="$(realpath "$(dirname "$0")")"
set -e

tool_name="poetry"
tool_version="1.8.3"
python_self_name="python-3.12.5"
tool_version="1.8.5"
python_self_name="python-3.13.1"
self_name="$tool_name-$tool_version"
self_toolset_name="build-msvc"
release_version_dirpath="$dp0/release/$self_name"
Expand Down
4 changes: 2 additions & 2 deletions poetry/test_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ authors = []
readme = "README.md"
[tool.poetry.dependencies]
python = "3.12.5"
python = "3.13.1"
requests = "2.28.2"
mysqlclient = "2.2.1"
Expand All @@ -42,7 +42,7 @@ Package operations: 6 installs, 0 updates, 0 removals
Writing lock file'

test_version() {
assertEquals "Poetry (version 1.8.3)" "$(../bin/poetry.sh --version)"
assertEquals "Poetry (version 1.8.5)" "$(../bin/poetry.sh --version)"
}

test_version_plugins() {
Expand Down
4 changes: 2 additions & 2 deletions poetry/test_windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors = []
readme = "README.md"
[tool.poetry.dependencies]
python = "3.12.5"
python = "3.13.1"
requests = "2.28.2"
mysqlclient = "2.2.1"
Expand All @@ -30,7 +30,7 @@ Package operations: 6 installs, 0 updates, 0 removals
'

test_version() {
assertEquals "Poetry (version 1.8.3)" "$(../bin/poetry.bat --version)"
assertEquals "Poetry (version 1.8.5)" "$(../bin/poetry.bat --version)"
}

test_install_from_path() {
Expand Down
8 changes: 4 additions & 4 deletions python/build_gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ apk add --no-cache alpine-sdk python3-dev
export LC_ALL=en_US.UTF-8

tool_name="python"
tool_version="3.12.5"
release_date="20240814"
tool_version="3.13.1"
release_date="20241206"
self_name="$tool_name-$tool_version"
release_version_dirpath="$dp0/release/$self_name"

mkdir -p "$release_version_dirpath" && cd "$dp0/release"
download_url="https://github.com/indygreg/python-build-standalone/releases/download/$release_date/cpython-$tool_version+$release_date-x86_64-unknown-linux-gnu-pgo-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-gnu-freethreaded+pgo-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"
Expand All @@ -24,7 +24,7 @@ echo "download python from $download_url ..."
bsdtar="$dp0/release/bsdtar"

cpython_bin="$dp0/.tmp/python/install/bin/python3"
cpython_dll="$dp0/.tmp/python/install/lib/libpython3.12.so.1.0"
cpython_dll="$dp0/.tmp/python/install/lib/libpython3.13.so.1.0"
if [[ ! -f "$cpython_bin" ]]; then
echo extract "$cpython_zip" to "$cpython_bin" ...
rm -rf "$dp0/.tmp/"* && mkdir -p "$dp0/.tmp" && cd "$dp0/.tmp" || exit 1
Expand Down
6 changes: 3 additions & 3 deletions python/build_msvc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ dp0="$(realpath "$(dirname "$0")")"
set -e

tool_name="python"
tool_version="3.12.5"
release_date="20240814"
tool_version="3.13.1"
release_date="20241206"
self_name="$tool_name-$tool_version"
release_version_dirpath="$dp0/release/$self_name"

mkdir -p "$release_version_dirpath" && cd "$dp0/release"
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"
download_url="https://github.com/indygreg/python-build-standalone/releases/download/$release_date/cpython-$tool_version+$release_date-x86_64-pc-windows-msvc-shared-freethreaded+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"
Expand Down
4 changes: 2 additions & 2 deletions python/build_musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ apk update
apk add --no-cache alpine-sdk python3-dev

tool_name="python"
tool_version="3.12.5"
release_date="20240814"
tool_version="3.13.1"
release_date="20241206"
self_name="$tool_name-$tool_version"
release_version_dirpath="$dp0/release/$self_name"

Expand Down
2 changes: 1 addition & 1 deletion python/test_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
../.tools/install_alpine_glibc.sh

test_version() {
assertEquals "Python 3.12.5" "$(../bin/Scripts/bin/python3 --version)"
assertEquals "Python 3.13.1" "$(../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.12.5" "$(../bin/Scripts/python.exe --version)"
assertEquals "Python 3.13.1" "$(../bin/Scripts/python.exe --version)"
}

# Load and run shUnit2.
Expand Down

0 comments on commit f2f7cf7

Please sign in to comment.