Skip to content

Commit 8b390d9

Browse files
authored
chore: Utilize uv version for setting new version (#212)
1 parent ded47cc commit 8b390d9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/python_bump_and_update_changelog.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ jobs:
5050
run: |
5151
new_version="${{ inputs.version_number }}"
5252
echo "Updating version in pyproject.toml to ${new_version}"
53-
# Update the "version" key in the [project] section of pyproject.toml.
54-
sed -i '/^\[project\]/,/^\[/ s/^\(version\s*=\s*\)".*"/\1"'${new_version}'"/' pyproject.toml
53+
uv version "${new_version}"
5554
5655
- name: Update CHANGELOG.md
5756
uses: DamianReeves/write-file-action@master

prepare-pypi-distribution/action.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ runs:
6060
)
6161
new_version="${{ inputs.version_number }}b${next_beta}"
6262
echo "Updating version in pyproject.toml to ${new_version}"
63-
# Update the "version" key in the [project] section of pyproject.toml.
64-
sed -i '/^\[project\]/,/^\[/ s/^\(version\s*=\s*\)".*"/\1"'${new_version}'"/' pyproject.toml
63+
uv version "${new_version}"
6564
fi
6665
6766
# Builds the package.

0 commit comments

Comments
 (0)