Skip to content

Commit 6a0af68

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 <[email protected]>
1 parent d17104e commit 6a0af68

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release-python.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@ 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: Rebuild sdist with dev version
7575
run: |
76-
rm -rf dist
7776
pipx run build --sdist
7877
7978
- name: Validate sdist

0 commit comments

Comments
 (0)