mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
fix: address Python release review feedback
This commit is contained in:
20
.github/workflows/build-exe-for-python-sdk.yml
vendored
20
.github/workflows/build-exe-for-python-sdk.yml
vendored
@@ -282,23 +282,9 @@ jobs:
|
||||
if: runner.os == 'macOS'
|
||||
env:
|
||||
EXE: ${{ steps.runtime.outputs.exe }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
minos="$(otool -l "$EXE" | awk '/LC_BUILD_VERSION/{seen=1; next} seen && /minos/{print $2; exit}')"
|
||||
[ -n "$minos" ] || { echo "::error::No macOS deployment target found in $EXE"; exit 1; }
|
||||
python3 - "$minos" <<'PY'
|
||||
import sys
|
||||
|
||||
actual = tuple(int(part) for part in sys.argv[1].split("."))
|
||||
claimed = (14, 0)
|
||||
width = max(len(actual), len(claimed))
|
||||
actual += (0,) * (width - len(actual))
|
||||
claimed += (0,) * (width - len(claimed))
|
||||
if actual > claimed:
|
||||
raise SystemExit(
|
||||
f"::error::Executable requires macOS {sys.argv[1]} but the wheel claims macosx_14_0"
|
||||
)
|
||||
PY
|
||||
run: >-
|
||||
python3 scripts/check-macos-deployment-target.py
|
||||
"$EXE" "$EXE-spawn-helper"
|
||||
|
||||
- name: Run wheel in a manylinux 2.28 container
|
||||
if: runner.os == 'Linux'
|
||||
|
||||
6
.github/workflows/python-release.yml
vendored
6
.github/workflows/python-release.yml
vendored
@@ -194,6 +194,9 @@ jobs:
|
||||
name: python-release-${{ needs.validate.outputs.version }}
|
||||
path: dist
|
||||
|
||||
- name: Verify release artifact hashes
|
||||
run: cd dist && sha256sum -c SHA256SUMS
|
||||
|
||||
- name: Select runtime wheels
|
||||
run: |
|
||||
mkdir -p dist/runtime
|
||||
@@ -226,6 +229,9 @@ jobs:
|
||||
name: python-release-${{ needs.validate.outputs.version }}
|
||||
path: dist
|
||||
|
||||
- name: Verify release artifact hashes
|
||||
run: cd dist && sha256sum -c SHA256SUMS
|
||||
|
||||
- name: Select SDK wheel
|
||||
run: |
|
||||
mkdir -p dist/sdk
|
||||
|
||||
Reference in New Issue
Block a user