Skip to content

Commit 526bc01

Browse files
committed
biuld: patch the meson.build for test pypi upload
We are using the meson backend for buidling the sdist, thus the version string is from the meson.build file. Signed-off-by: Daniel Wagner <wagi@kernel.org>
1 parent 45b957e commit 526bc01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ jobs:
6767
echo "dev_version=$VERSION" >> $GITHUB_OUTPUT
6868
echo "Computed dev version: $VERSION"
6969
70-
- name: Patch version in pyproject.toml
70+
- name: Patch version in meson.build
7171
run: |
72-
sed -i "s/^version = .*/version = \"${{ steps.version.outputs.dev_version }}\"/" pyproject.toml
72+
sed -i -e "0,/[ \t]version: /s/\([ \t]version: \).*/\1\'${{ steps.version.outputs.dev_version }}\',/" meson.build
7373
7474
- name: Build sdist
7575
run: |

0 commit comments

Comments
 (0)