Skip to content

Commit a1a8375

Browse files
ci: use console script for release proposal
Add create-release-proposal console script entry point. Use git to find repo root, handling uv working directory changes.
1 parent 150bc83 commit a1a8375

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/release-proposal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Run release proposal
4141
id: release
4242
run: |
43-
uv run python -m vcs_versioning_workspace.create_release_proposal \
43+
uv run create-release-proposal \
4444
--event "${{ github.event_name }}" \
4545
--branch "${{ github.ref_name }}"
4646
env:

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ dependencies = [
1111

1212
]
1313

14+
[project.scripts]
15+
create-release-proposal = "vcs_versioning_workspace.create_release_proposal:main"
16+
1417
[dependency-groups]
1518
docs = [
1619
"mkdocs",
@@ -70,6 +73,9 @@ module = [
7073
# Version helper files use imports before they're installed
7174
ignore_errors = true
7275

76+
[tool.uv]
77+
package = true
78+
7379
[tool.uv.workspace]
7480
members = ["vcs-versioning", "setuptools-scm"]
7581

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)