-
Notifications
You must be signed in to change notification settings - Fork 186
Adds script to help promote RC artifacts & modifies packages for future source releases #1408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2f74f49
Adds script to help promote RC artifacts
skrawcz febd54c
Updates package to be apache-hamilton
skrawcz 765cb9a
Removes some README links that shouldn't be there
skrawcz 49b8e16
Changes copy to mv
skrawcz 48ffd27
Adds downloads to docs
skrawcz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| ================ | ||
| Downloads | ||
| ================ | ||
|
|
||
| Official Apache Hamilton releases are available at the Apache Software Foundation distribution site. | ||
|
|
||
| Release Downloads | ||
| ----------------- | ||
|
|
||
| All releases can be found at: `https://downloads.apache.org/incubator/hamilton/ <https://downloads.apache.org/incubator/hamilton/>`_ | ||
|
|
||
| Each release includes: | ||
|
|
||
| - Source distributions (.tar.gz, .zip) | ||
| - Checksums (SHA512) | ||
| - Digital signatures (.asc) | ||
|
|
||
| Verifying Releases | ||
| ------------------ | ||
|
|
||
| To verify the integrity of downloaded files, you can: | ||
|
|
||
| 1. Verify the checksum matches the published SHA512 sum | ||
| 2. Verify the GPG signature using the KEYS file available at the downloads site | ||
|
|
||
| Release History | ||
| --------------- | ||
|
|
||
| Visit the `downloads directory <https://downloads.apache.org/incubator/hamilton/>`_ to see all available releases. | ||
|
|
||
| Installation | ||
| ------------ | ||
|
|
||
| After downloading and verifying a release, you can install it using pip: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| pip install apache-hamilton-<version>.tar.gz | ||
|
|
||
| Or install directly from PyPI: | ||
|
|
||
| .. code-block:: bash | ||
|
|
||
| pip install apache-hamilton | ||
|
|
||
| For more information about installation options, see the :doc:`Get Started guide </get-started/index>`. | ||
|
|
||
| Official Releases | ||
| ----------------- | ||
|
|
||
| The following are the official Apache Hamilton releases: | ||
|
|
||
| - **1.89.0** (2025-10-11) - First Apache Hamilton release | ||
|
|
||
| - `Source (tar.gz) <https://downloads.apache.org/incubator/hamilton/1.89.0/apache-hamilton-1.89.0-incubating.tar.gz>`_ | ||
| - `Checksums <https://downloads.apache.org/incubator/hamilton/1.89.0/apache-hamilton-1.89.0-incubating.tar.gz.sha512>`_ | ||
| - `Signature <https://downloads.apache.org/incubator/hamilton/1.89.0/apache-hamilton-1.89.0-incubating.tar.gz.asc>`_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| #!/bin/bash | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| # This script moves a release candidate from the dev repository to the release repository. | ||
|
|
||
| set -e | ||
|
|
||
| DRY_RUN=false | ||
| POSITIONAL_ARGS=() | ||
|
|
||
| while [[ $# -gt 0 ]]; do | ||
| case $1 in | ||
| --dry-run) | ||
| DRY_RUN=true | ||
| shift # past argument | ||
| ;; | ||
| *) | ||
| POSITIONAL_ARGS+=("$1") # save positional arg | ||
| shift # past argument | ||
| ;; | ||
| esac | ||
| done | ||
|
|
||
| set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters | ||
|
|
||
| if [ "$#" -ne 2 ]; then | ||
| echo "Usage: $0 [--dry-run] <version> <rc_num>" | ||
| echo "Example: $0 --dry-run 1.2.3 0" | ||
| exit 1 | ||
| fi | ||
|
|
||
| VERSION=$1 | ||
| RC_NUM=$2 | ||
| PROJECT_SHORT_NAME="hamilton" | ||
|
|
||
| # Source and destination URLs | ||
| SOURCE_URL="https://dist.apache.org/repos/dist/dev/incubator/${PROJECT_SHORT_NAME}/${VERSION}-RC${RC_NUM}" | ||
| DEST_URL="https://dist.apache.org/repos/dist/release/incubator/${PROJECT_SHORT_NAME}/${VERSION}" | ||
|
|
||
| if [ "$DRY_RUN" = true ]; then | ||
| echo "Performing a dry run. No changes will be made." | ||
| else | ||
| echo "This script will copy the release candidate from dev to release." | ||
| echo "Source: ${SOURCE_URL}" | ||
| echo "Destination: ${DEST_URL}" | ||
| echo " " | ||
|
|
||
| read -p "Are you sure you want to continue? (y/n) " -n 1 -r | ||
| echo | ||
| if [[ ! $REPLY =~ ^[Yy]$ ]] | ||
| then | ||
| echo "Aborting." | ||
| exit 1 | ||
| fi | ||
| fi | ||
|
|
||
| # Create the release directory | ||
| if [ "$DRY_RUN" = true ]; then | ||
| echo "DRY RUN: svn mkdir --parents -m \"Creating directory for Apache ${PROJECT_SHORT_NAME} ${VERSION}\" \"${DEST_URL}\"" | ||
| else | ||
| svn mkdir --parents -m "Creating directory for Apache ${PROJECT_SHORT_NAME} ${VERSION}" "${DEST_URL}" | ||
| fi | ||
|
|
||
| # Get the list of files in the source directory | ||
| FILES=$(svn list "${SOURCE_URL}") | ||
|
|
||
| for FILE in $FILES; do | ||
| if [[ "$FILE" == apache-hamilton* ]]; then | ||
| SOURCE_FILE_URL="${SOURCE_URL}/${FILE}" | ||
| DEST_FILE_URL="${DEST_URL}/${DEST_FILE_NAME}" | ||
|
|
||
| if [ "$DRY_RUN" = true ]; then | ||
| echo "DRY RUN: svn mv \"${SOURCE_FILE_URL}\" \"${DEST_FILE_URL}\" -m \"Promote Apache ${PROJECT_SHORT_NAME} ${VERSION}: ${DEST_FILE_NAME}\"" | ||
| else | ||
| echo "Moving ${FILE} to ${DEST_FILE_URL}" | ||
| svn mv "${SOURCE_FILE_URL}" "${DEST_FILE_URL}" -m "Promote Apache ${PROJECT_SHORT_NAME} ${VERSION}: ${DEST_FILE_NAME}" | ||
| fi | ||
| fi | ||
| done | ||
|
|
||
|
|
||
| if [ $? -eq 0 ]; then | ||
| if [ "$DRY_RUN" = true ]; then | ||
| echo "Dry run complete." | ||
| else | ||
| echo "Successfully copied release artifacts to: ${DEST_URL}" | ||
| echo "The release is now live." | ||
| fi | ||
| else | ||
| echo "Error: Failed to copy release artifacts. Please check the SVN URLs and your credentials." | ||
| exit 1 | ||
| fi |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we remove the
printand useechoin the.shscript instead?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is closer to the code -- so no difference?