Skip to content

Commit 91b3f9f

Browse files
committed
fix: PyPI index generation with correct gh CLI usage
- Fix gh CLI usage: use 'gh release view' for each tag instead of 'gh release list --json' with assets field (not supported) - Add MACOSX_DEPLOYMENT_TARGET for macOS builds (SDK will override but good practice to set explicitly) - Note: macOS wheels correctly show 10_12 (not 10_9) due to macos-15-intel runner SDK - this is fine and provides broad compatibility
1 parent 713bc3a commit 91b3f9f

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/release-python-packages.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,7 @@ jobs:
307307
# Create simple index directory structure
308308
mkdir -p simple/arcadedb-embedded
309309
310-
# Get all releases
311-
echo "📋 Fetching all releases..."
312-
gh release list --limit 100 --json tagName,isPrerelease,assets > releases.json
313-
314-
# Generate index.html
310+
# Generate index.html header
315311
cat > simple/arcadedb-embedded/index.html <<'EOF'
316312
<!DOCTYPE html>
317313
<html>
@@ -323,13 +319,15 @@ jobs:
323319
<h1>Links for arcadedb-embedded</h1>
324320
EOF
325321
326-
# Add links for each wheel from each release
327-
jq -r '.[] | select(.assets | length > 0) |
328-
.tagName as $tag |
329-
.assets[] |
330-
select(.name | endswith(".whl")) |
331-
"<a href=\"https://github.com/${{ github.repository }}/releases/download/\($tag)/\(.name)\">\(.name)</a><br/>"' \
332-
releases.json >> simple/arcadedb-embedded/index.html
322+
# Get all releases and add wheel links
323+
echo "📋 Fetching all releases..."
324+
gh release list --limit 100 --json tagName | jq -r '.[].tagName' | while read -r tag; do
325+
echo " Processing release: $tag"
326+
# Get wheel assets for this release
327+
gh release view "$tag" --json assets --jq '.assets[] | select(.name | endswith(".whl")) | .name' | while read -r wheel; do
328+
echo "<a href=\"https://github.com/${{ github.repository }}/releases/download/$tag/$wheel\">$wheel</a><br/>" >> simple/arcadedb-embedded/index.html
329+
done
330+
done
333331
334332
# Close HTML
335333
cat >> simple/arcadedb-embedded/index.html <<'EOF'

bindings/python/build-native.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ echo -e "${CYAN}🏷️ Platform tag: ${YELLOW}${PLAT_NAME}${NC}"
183183
if [[ "$PLATFORM" == darwin/* ]]; then
184184
export _PYTHON_HOST_PLATFORM="macosx-${MACOSX_VERSION}-${ARCH_TAG}"
185185
export ARCHFLAGS="-arch ${ARCH_TAG}"
186+
export MACOSX_DEPLOYMENT_TARGET="${MACOSX_VERSION}"
186187
echo -e "${CYAN}🏷️ macOS platform override: ${YELLOW}${_PYTHON_HOST_PLATFORM}${NC}"
187188
echo -e "${CYAN}🏷️ ARCHFLAGS: ${YELLOW}${ARCHFLAGS}${NC}"
189+
echo -e "${CYAN}🏷️ MACOSX_DEPLOYMENT_TARGET: ${YELLOW}${MACOSX_DEPLOYMENT_TARGET}${NC}"
188190
fi
189191

190192
# Build wheel

0 commit comments

Comments
 (0)