From ca80a153be2fa148bef030b71e216f14da727cab Mon Sep 17 00:00:00 2001 From: Joey French Date: Sat, 20 Sep 2025 16:15:51 -0500 Subject: [PATCH 1/2] Update author name in pyproject.toml from "Harbinger FinLab" to "RFS LLC". --- LICENSE | 21 +++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1a3554a --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 RFS LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 6acb35a..75fac1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "Python Client for RoboSystems financial graph database API" readme = "README.md" requires-python = ">=3.10" authors = [ - {name = "Harbinger FinLab"}, + {name = "RFS LLC"}, ] license = {text = "MIT"} keywords = ["client", "robosystems", "financial", "graph", "kuzu", "api", "sdk"] From 03d9032f899a8f9ea98f14d140ed8327de8fe44e Mon Sep 17 00:00:00 2001 From: Joey French Date: Sun, 21 Sep 2025 02:58:50 -0500 Subject: [PATCH 2/2] Enhance GitHub workflows for release process - Added outputs for new version and branch name in create-release workflow. - Introduced create-tag job to handle tagging after release creation. - Updated create-summary step to reflect new tag and release URL instead of version and branch. - Modified tag-release workflow to accept branch reference as input and provide outputs for tag name, version, and release URL. These changes streamline the release process and improve the clarity of the summary generated after a release. --- .github/workflows/create-release.yml | 26 ++++++++++++++++++--- .github/workflows/tag-release.yml | 34 ++++++++++++++++++++++++---- 2 files changed, 52 insertions(+), 8 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 2f8a849..7a86867 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -16,6 +16,9 @@ on: jobs: create-release: runs-on: ubuntu-latest + outputs: + new_version: ${{ steps.new-version.outputs.new_version }} + branch_name: ${{ steps.new-version.outputs.branch_name }} steps: - name: Checkout code @@ -105,15 +108,32 @@ jobs: echo "✅ Release branch created: $BRANCH_NAME" + create-tag: + needs: create-release + permissions: + contents: write + uses: ./.github/workflows/tag-release.yml + with: + branch_ref: ${{ needs.create-release.outputs.branch_name }} + secrets: inherit + + create-summary: + needs: [create-release, create-tag] + if: always() + runs-on: ubuntu-latest + steps: - name: Create summary run: | echo "## 🚀 Python SDK Release Created" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - echo "**Version:** ${{ steps.current-version.outputs.current_version }} → ${{ steps.new-version.outputs.new_version }}" >> $GITHUB_STEP_SUMMARY - echo "**Branch:** \`${{ steps.new-version.outputs.branch_name }}\`" >> $GITHUB_STEP_SUMMARY + echo "**Version:** ${{ needs.create-tag.outputs.version }}" >> $GITHUB_STEP_SUMMARY + echo "**Tag:** \`${{ needs.create-tag.outputs.tag_name }}\`" >> $GITHUB_STEP_SUMMARY + echo "**Branch:** \`${{ needs.create-release.outputs.branch_name }}\`" >> $GITHUB_STEP_SUMMARY echo "**Type:** ${{ inputs.version_type }}" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY + echo "**Release URL:** ${{ needs.create-tag.outputs.release_url }}" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY echo "### Next Steps" >> $GITHUB_STEP_SUMMARY - echo "The PyPI package will be automatically published when the release branch is pushed." >> $GITHUB_STEP_SUMMARY + echo "The PyPI package will be automatically published when the release tag is created." >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "Monitor the publish workflow: [View Workflows](https://github.com/RoboFinSystems/robosystems-python-client/actions/workflows/publish.yml)" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index 1629ae8..c4e0c8d 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -1,16 +1,38 @@ name: Claude Tag Release on: - push: - branches: - - "release/**" + workflow_call: + inputs: + branch_ref: + description: 'The branch ref to tag' + required: true + type: string + outputs: + tag_name: + description: 'The created tag name' + value: ${{ jobs.action.outputs.tag_name }} + version: + description: 'The version number' + value: ${{ jobs.action.outputs.version }} + release_url: + description: 'The GitHub release URL' + value: ${{ jobs.action.outputs.release_url }} + secrets: + ACTIONS_TOKEN: + required: true + ANTHROPIC_API_KEY: + required: true jobs: action: runs-on: ubuntu-latest # Use GitHub-hosted runners for memory-intensive git/Claude operations - timeout-minutes: 10 + timeout-minutes: 15 permissions: contents: write + outputs: + tag_name: ${{ steps.get-version.outputs.tag_name }} + version: ${{ steps.get-version.outputs.version }} + release_url: ${{ steps.create-release.outputs.upload_url }} steps: - name: Checkout uses: actions/checkout@v4 @@ -24,6 +46,7 @@ jobs: run: | VERSION=$(grep "^version = " pyproject.toml | sed 's/version = "\(.*\)"/\1/') echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "tag_name=v$VERSION" >> $GITHUB_OUTPUT echo "Found version: $VERSION" - name: Check If Tag Exists @@ -164,7 +187,7 @@ jobs: ] }') - RESPONSE=$(curl -s -X POST "https://api.anthropic.com/v1/messages" \ + RESPONSE=$(curl -s --max-time 60 --retry 3 --retry-delay 10 -X POST "https://api.anthropic.com/v1/messages" \ -H "Content-Type: application/json" \ -H "x-api-key: ${{ secrets.ANTHROPIC_API_KEY }}" \ -H "anthropic-version: 2023-06-01" \ @@ -205,6 +228,7 @@ jobs: - name: Create GitHub Release if: steps.check-tag.outputs.tag_exists == 'false' + id: create-release uses: softprops/action-gh-release@v1 with: tag_name: v${{ steps.get-version.outputs.version }}