Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ jobs:
- name: Set up Python
run: uv python install 3.14

- name: Install dependencies
run: uv sync --frozen

- name: Python Semantic Release
id: release
env:
Expand All @@ -53,7 +50,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

uv run semantic-release version
uvx --from python-semantic-release@latest semantic-release version
Comment thread
PascalRepond marked this conversation as resolved.

# A release was made if HEAD now points exactly at a tag.
if git describe --exact-match HEAD 2>/dev/null; then
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ dev = [
"coveralls>=4.0.1",
"ruff>=0.12.9",
"pytest-ruff>=0.5",
"python-semantic-release>=10.5.3"
]
prod = [
"uwsgi>=2.0",
Expand Down Expand Up @@ -283,17 +282,18 @@ extract_messages = {cmd = "pybabel extract sonar/ --project --copyright-holder=R
init_catalog = {cmd = "pybabel init -i sonar/translations/messages.pot -d sonar/translations/", help = "create new message catalogs from a POT file"}
update_catalog = {cmd = "pybabel update -i sonar/translations/messages.pot -d sonar/translations", help = "update existing message catalogs from a POT file"}

# Release management
# Release management. python-semantic-release runs in an isolated uvx environment:
# its dependency tree (which caps click) has no reason to constrain ours.
[tool.poe.tasks.changelog]
cmd = "semantic-release changelog"
cmd = "uvx --from python-semantic-release@latest semantic-release changelog"
help = "Preview the next changelog without making changes"

[tool.poe.tasks.version]
cmd = "semantic-release version --print"
cmd = "uvx --from python-semantic-release@latest semantic-release version --print"
help = "Print the next version number without making changes"

[tool.poe.tasks.release]
cmd = "semantic-release version --no-push --no-tag --no-commit"
cmd = "uvx --from python-semantic-release@latest semantic-release version --no-push --no-tag --no-commit"
help = "Generate changelog and bump version locally (does not push, tag, or commit - for local testing only)"

[tool.semantic_release]
Expand Down
Loading
Loading