Create release wheel as part of normal build

Avoids the need for a separate publish
This commit is contained in:
Damien Elmes 2025-06-21 19:13:26 +07:00
parent cfd448565a
commit 246fa75a35
3 changed files with 8 additions and 16 deletions

View file

@ -2,7 +2,7 @@
set -e
test -f update.sh || {
test -f build.sh || {
echo "run from release folder"
exit 1
}
@ -63,6 +63,9 @@ echo "Generated pyproject.toml with version $VERSION"
# Show diff if .old file exists
if [ -f pyproject.toml.old ]; then
echo
echo "Differences from previous version:"
echo "Differences from previous release version:"
diff -u --color=always pyproject.toml.old pyproject.toml || true
fi
echo "Building wheel..."
"$UV" build --wheel --out-dir "$PROJ_ROOT/out/wheels"

View file

@ -1,13 +0,0 @@
#!/bin/bash
# Get the project root (two levels up from qt/release)
PROJ_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
# Use extracted uv binary
UV="$PROJ_ROOT/out/extracted/uv/uv"
rm -rf dist
"$UV" build --wheel
#UV_PUBLISH_TOKEN=$(pass show w/pypi-api-test) "$UV" publish --index testpypi
UV_PUBLISH_TOKEN=$(pass show w/pypi-api) "$UV" publish

View file

@ -1,6 +1,8 @@
#!/bin/bash
set -e
set -eo pipefail
rm -rf out/wheels/*
RELEASE=2 ./ninja wheels
(cd qt/release && ./build.sh)
echo "wheels are in out/wheels"