mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Create release wheel as part of normal build
Avoids the need for a separate publish
This commit is contained in:
parent
cfd448565a
commit
246fa75a35
3 changed files with 8 additions and 16 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
test -f update.sh || {
|
test -f build.sh || {
|
||||||
echo "run from release folder"
|
echo "run from release folder"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,9 @@ echo "Generated pyproject.toml with version $VERSION"
|
||||||
# Show diff if .old file exists
|
# Show diff if .old file exists
|
||||||
if [ -f pyproject.toml.old ]; then
|
if [ -f pyproject.toml.old ]; then
|
||||||
echo
|
echo
|
||||||
echo "Differences from previous version:"
|
echo "Differences from previous release version:"
|
||||||
diff -u --color=always pyproject.toml.old pyproject.toml || true
|
diff -u --color=always pyproject.toml.old pyproject.toml || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Building wheel..."
|
||||||
|
"$UV" build --wheel --out-dir "$PROJ_ROOT/out/wheels"
|
|
@ -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
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -eo pipefail
|
||||||
|
|
||||||
rm -rf out/wheels/*
|
rm -rf out/wheels/*
|
||||||
RELEASE=2 ./ninja wheels
|
RELEASE=2 ./ninja wheels
|
||||||
|
(cd qt/release && ./build.sh)
|
||||||
echo "wheels are in out/wheels"
|
echo "wheels are in out/wheels"
|
||||||
|
|
Loading…
Reference in a new issue