-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
224 additions
and
64 deletions.
There are no files selected for viewing
This file contains 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 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,8 @@ | ||
# .git-blame-ignore-revs | ||
# Exclude formatting commits made by black | ||
# more black formatting Aug 17, 2021 | ||
a9facdf30ca467b6e16d13ce88d8889bba7f2e1c | ||
# formatting Aug 16, 2021 | ||
ea81ba259216b8be7fb86ef5d3e9c151a94edf87 | ||
# apply black Aug 11, 2021 | ||
81fe44f0dd9785b1665bbbea047aed591912534b |
This file contains 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 |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
fi | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v3.5.3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
|
@@ -78,52 +78,25 @@ jobs: | |
fi | ||
- name: Build Changelog | ||
uses: mikepenz/[email protected] | ||
id: build-changelog | ||
env: | ||
PREVIOUS_VERSION: ${{ steps.get-release.outputs.latest-tag }} | ||
with: | ||
fromTag: ${{ env.PREVIOUS_VERSION }} | ||
toTag: ${{ env.RELEASE_BRANCH }} | ||
failOnError: true | ||
configurationJson: | | ||
{ | ||
"categories": [ | ||
{ | ||
"title": "## New Features", | ||
"labels": [ | ||
"New Feature" | ||
] | ||
}, | ||
{ | ||
"title": "## Enhancement", | ||
"labels": [ | ||
"Enhancement" | ||
] | ||
}, | ||
{ | ||
"title": "## Bug Fixes", | ||
"labels": [ | ||
"Bug-Fix" | ||
] | ||
}, | ||
{ | ||
"title": "## Not Yet Enabled", | ||
"labels": [ | ||
"Not-Yet-Enabled" | ||
] | ||
} | ||
], | ||
"ignore_labels": [ | ||
"Skip-Release-Notes" | ||
], | ||
"sort": { | ||
"order": "ASC", | ||
"on_property": "mergedAt" | ||
}, | ||
"template": "#{{CHANGELOG}}", | ||
"pr_template": "- #{{TITLE}} by #{{AUTHOR}} in ##{{NUMBER}}" | ||
} | ||
run: | | ||
CHANGELOG=$(curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ github.token }}"\ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/${{ github.repository }}/releases/generate-notes \ | ||
-d '{"tag_name":"${{ env.RELEASE_VERSION }}","target_commitish":"${{ env.RELEASE_BRANCH }}","previous_tag_name":"${{ env.PREVIOUS_VERSION }}","configuration_file_path":".github/release.yml"}' \ | ||
| jq -r '.body') | ||
# The EOF steps are used to save multiline string in github: | ||
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-a-multiline-string | ||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
echo "changelog<<$EOF" >> $GITHUB_OUTPUT | ||
echo -e "${CHANGELOG}" >> $GITHUB_OUTPUT | ||
echo "$EOF" >> $GITHUB_OUTPUT | ||
- name: Update Changelog | ||
if: ${{ env.PRE_RELEASE_VERSION == '' }} | ||
|
@@ -132,7 +105,7 @@ jobs: | |
PREVIOUS_VERSION: ${{ steps.get-release.outputs.latest-tag }} | ||
run: | | ||
echo "$(tail -n +2 CHANGELOG.md)" > CHANGELOG.md | ||
echo -e "# Changelog\n\n# ${RELEASE_VERSION}\n\n${CHANGELOG_CONTENT}**Full Changelog**: https://github.com/${{ github.repository }}/compare/${PREVIOUS_VERSION}...${RELEASE_VERSION}" | cat - CHANGELOG.md > temp && mv temp CHANGELOG.md | ||
echo -e "# Changelog\n\n# ${RELEASE_VERSION}\n\n${CHANGELOG_CONTENT}" | cat - CHANGELOG.md > temp && mv temp CHANGELOG.md | ||
- name: Update version in setup.py | ||
env: | ||
|
@@ -154,14 +127,12 @@ jobs: | |
GH_TOKEN: ${{ github.token }} | ||
RELEASE_TAG: ${{ steps.set-release.outputs.release-tag }} | ||
run: | | ||
echo -e "# ${RELEASE_TAG}\n\n${CHANGELOG_CONTENT}**Full Changelog**: https://github.com/${{ github.repository }}/compare/${PREVIOUS_VERSION}...${RELEASE_TAG}" > tmp_msg_body.txt | ||
export msg_body=$(cat tmp_msg_body.txt) | ||
rm tmp_msg_body.txt | ||
# Note: There's an issue adding teams as reviewers, see https://github.com/cli/cli/issues/6395 | ||
PULL_REQUEST_URL=$(gh pr create --base "master" \ | ||
--title "FOR REVIEW ONLY: py-algorand-sdk $RELEASE_TAG" \ | ||
--title "FOR REVIEW ONLY: ${{ github.event.repository.name }} $RELEASE_TAG" \ | ||
--label "Skip-Release-Notes" \ | ||
--body "$msg_body" | tail -n 1) | ||
--label "Team Hyper Flow" \ | ||
--body "${CHANGELOG_CONTENT}" | tail -n 1) | ||
if [[ $PULL_REQUEST_URL =~ ^https://github.com/${{ github.repository }}/pull/[0-9]+$ ]]; then | ||
PULL_REQUEST_NUM=$(echo $PULL_REQUEST_URL | sed 's:.*/::') | ||
echo "pull-request-master=$PULL_REQUEST_URL" >> $GITHUB_ENV | ||
|
@@ -180,8 +151,9 @@ jobs: | |
run: | | ||
# Note: There's an issue adding teams as reviewers, see https://github.com/cli/cli/issues/6395 | ||
PULL_REQUEST_URL=$(gh pr create --base "develop" \ | ||
--title "FOR REVIEW ONLY: Merge back py-algorand-sdk $RELEASE_TAG to develop" \ | ||
--title "FOR REVIEW ONLY: Merge back ${{ github.event.repository.name }} $RELEASE_TAG to develop" \ | ||
--label "Skip-Release-Notes" \ | ||
--label "Team Hyper Flow" \ | ||
--body "Merge back version changes to develop." | tail -n 1) | ||
if [[ $PULL_REQUEST_URL =~ ^https://github.com/${{ github.repository }}/pull/[0-9]+$ ]]; then | ||
echo "Pull request to Develop created: $PULL_REQUEST_URL" | ||
|
This file contains 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
description="Algorand SDK in Python", | ||
author="Algorand", | ||
author_email="[email protected]", | ||
version="2.3.0", | ||
version="2.4.0", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/algorand/py-algorand-sdk", | ||
|
This file contains 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 |
---|---|---|
|
@@ -17,3 +17,4 @@ | |
@simulate | ||
@simulate.lift_log_limits | ||
@simulate.extra_opcode_budget | ||
@simulate.exec_trace_with_stack_scratch |
Oops, something went wrong.