Skip to content

Conversation

@grundprinzip
Copy link
Contributor

@grundprinzip grundprinzip commented Aug 14, 2025

What changes were proposed in this pull request?

I've created a comprehensive Apache release script with the following features:

Files Created:

  1. dev/release.py - Main release script with all requested functionality
  2. dev/requirements.txt - Python dependencies
  3. dev/README.md - Usage documentation

Script Features:

  • ✅ Tag Management: Creates and pushes Git tags based on specified commit
  • ✅ GitHub Release: Creates draft releasesusing GitHub API
  • ✅ Release Notes: Auto-generates notes from commits between tags, with interactive editing
  • ✅ Pre-release Support: Optional pre-release flag
  • ✅ Artifact Download: Downloads GitHub's auto-generated source archives
  • ✅ GPG Signing: Creates detached signatures for all artifacts
  • ✅ Signature Verification: Verifies all signatures before upload
  • ✅ Error Handling: Comprehensive error handling and validation

Key Dependencies:

  • requests - For HTTP requests to download artifacts
  • PyGithub - For GitHub API interactions
  • gitpython - For Git operations and commit history

Usage Example:

 cd dev python -m venv venv && source venv/bin/activate pip install -r requirements.txt export GITHUB_TOKEN=your_token_here ./release.py \ --tag v0.2.0 \ --prev-tag v0.1.0 \ --commit abc123def456 \ --gpg-user your.email@example.com \ --prerelease # optional 

Why are the changes needed?

CI

Does this PR introduce any user-facing change?

No

@grundprinzip grundprinzip merged commit 3953d64 into apache:master Aug 15, 2025
1 check passed
grundprinzip added a commit that referenced this pull request Aug 18, 2025
### What changes were proposed in this pull request? This patch improves the merge PR script by collecting all authors and the committer who signed of via the script and then prepare the commit message accordingly. Lastly it will squash merge the PR via the Github API and the updated Title and Commit message instead of manually pushing the PR. ### Why are the changes needed? Better GH integration ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manually using the PRs: #157 #156 #159 and #160. Closes #161 from grundprinzip/improve_infra. Authored-by: Martin Grund <martin.grund@databricks.com> Signed-off-by: Martin Grund <martin.grund@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants