Skip to content

Python sdk workflow#1810

Merged
renuka-fernando merged 2 commits intowso2:python-policy-enginefrom
sehan-dissanayake:python-sdk-workflow
Apr 29, 2026
Merged

Python sdk workflow#1810
renuka-fernando merged 2 commits intowso2:python-policy-enginefrom
sehan-dissanayake:python-sdk-workflow

Conversation

@sehan-dissanayake
Copy link
Copy Markdown
Contributor

Purpose

Add a GitHub Actions workflow (sdk-python-release.yml) to manually publish the apip-sdk-core package to PyPI. The workflow validates a MAJOR.MINOR.PATCH version input, pins the project version with hatch, builds sdist and wheel, runs twine checks and smoke tests, uploads artifacts, creates a git tag, publishes to PyPI using PYPI_API_TOKEN, and creates a GitHub release with changelog notes. Also update sdk-python/pyproject.toml to point the Homepage URL to the WSO2 product page.

Add a GitHub Actions workflow (sdk-python-release.yml) to manually publish the apip-sdk-core package to PyPI. The workflow validates a MAJOR.MINOR.PATCH version input, pins the project version with hatch, builds sdist and wheel, runs twine checks and smoke tests, uploads artifacts, creates a git tag, publishes to PyPI using PYPI_API_TOKEN, and creates a GitHub release with changelog notes. Also update sdk-python/pyproject.toml to point the Homepage URL to the WSO2 product page.
Replace hatch-based version pinning with a sed substitution and explicit verification. The workflow no longer installs or calls hatch; instead it updates the version field in pyproject.toml, checks the change with grep (emitting an actions error and exiting if it fails), and echoes the pinned version. Build steps remain unchanged.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 29, 2026

Warning

Rate limit exceeded

@renuka-fernando has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 31 minutes and 33 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8090a74f-b67c-4a82-8abd-c0d2f09de243

📥 Commits

Reviewing files that changed from the base of the PR and between 91d7940 and a7ecc3e.

📒 Files selected for processing (2)
  • .github/workflows/sdk-python-release.yml
  • sdk-python/pyproject.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 31 minutes and 33 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@renuka-fernando
Copy link
Copy Markdown
Contributor

@coderabbitai full review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 29, 2026

✅ Actions performed

Full review triggered.

@renuka-fernando renuka-fernando merged commit a11f105 into wso2:python-policy-engine Apr 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants