Skip to content

Commit

Permalink
ci: setup release-please for python (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q authored Apr 15, 2024
1 parent e71489a commit 49f8e80
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ updates:
commit-message:
# Use a conventional commit tag
prefix: "chore(deps)"
- package-ecosystem: "pip"
directory: "/hugr-py/" # Location of package manifests
schedule:
interval: "weekly"
commit-message:
# Use a conventional commit tag
prefix: "chore(deps-py)"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
# Use a conventional commit tag
prefix: "ci(deps)"
22 changes: 22 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Automatic changelog and version bumping with release-please for python projects
name: Release-please 🐍

on:
workflow_dispatch: {}
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
name: Create release PR
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
target-branch: ${{ github.event.ref }}
3 changes: 2 additions & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Release-plz
# Automatic changelog, version bumping, and semver-checks with release-plz for rust projects
name: Release-plz 🦀

permissions:
pull-requests: write
Expand Down
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"quantinuum-hugr-py": "0.1.0a1"
}
62 changes: 62 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"include-component-in-tag": true,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"initial-version": "0.1.0",
"packages": {
"quantinuum-hugr-py": {
"release-type": "python",
"package-name": "hugr",
"draft": false,
"prerelease": false
}
},
"changelog-sections": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "style",
"section": "Styling",
"hidden": true
},
{
"type": "chore",
"section": "Miscellaneous Chores",
"hidden": true
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": true
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
]
}
2 changes: 2 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Automatic changelog generation for rust projects

[workspace]
# Open the release PR as a draft
pr_draft = true
Expand Down

0 comments on commit 49f8e80

Please sign in to comment.