Skip to content

Commit

Permalink
ci: PLATE-795: Use pyproject.toml as a source version (#5277)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelonogov authored Jan 12, 2024
1 parent 2194068 commit 219ebcc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-cut-off-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
release_version="${first}.${second}.${third}"
release_branch="${{ env.RELEASE_BRANCH_PREFIX }}/${first}.${second}.${third}"
next_develop_version="${first}.${second}.$(($third + 1))dev"
next_develop_version="${first}.${second}.$(($third + 1)).dev0"
echo "release_branch=${release_branch}" >> $GITHUB_OUTPUT
echo "release_version=${release_version}" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-set-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
set -euo pipefail
version=$(sed "s/^v//g" <<< ${PROVIDED_VERSION})
./toml set '${{ env.PYTHON_VERSION_FILE }}' tool.poetry.version "$version" > pyproject.toml.new
mv -f pyproject.toml.new pyproject.toml
mv -f pyproject.toml.new '${{ env.PYTHON_VERSION_FILE }}'
- name: Commit version file
id: make-commit
Expand Down
3 changes: 1 addition & 2 deletions label_studio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
package_name = 'label-studio'

# Package version
__version__ = '1.10.1dev'

__version__ = importlib.metadata.metadata(package_name).get('version')

# pypi info
__latest_version__ = None
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ target-version = ['py38']
[tool.poetry]

name = "label-studio"
version = "1.10.2dev"
version = "1.10.2.dev0"
description = "Label Studio annotation tool"
authors = [
"Heartex <[email protected]>",
Expand Down

0 comments on commit 219ebcc

Please sign in to comment.