Skip to content

Commit b57901f

Browse files
salman2013claude
andcommitted
chore: fix semantic-release build_command to use python -m build
PSR's action environment does not have uv available, so uv build fails. Switch to python -m build (installing it via pip) and remove the now- unnecessary setup-uv step from release.yml. Ref: openedx/XBlock#928 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0d00eff commit b57901f

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
with:
3737
python-version: "3.12"
3838

39-
- name: Install uv
40-
uses: astral-sh/setup-uv@v6
41-
4239
- name: Set up Node.js
4340
uses: actions/setup-node@v6
4441
with:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@ constraint-dependencies = [
185185
[tool.semantic_release]
186186
# We use SETUPTOOLS_SCM_PRETEND_VERSION to pull the version from python-semantic-release
187187
# instead of from version control because the build step happens before the repo gets tagged.
188-
build_command = "SETUPTOOLS_SCM_PRETEND_VERSION=$NEW_VERSION uv build"
188+
build_command = "python -m pip install --upgrade build && SETUPTOOLS_SCM_PRETEND_VERSION=$NEW_VERSION python -m build"

0 commit comments

Comments
 (0)