Skip to content

Commit

Permalink
ci: PLT-628: Migrate to Poetry 2 (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelonogov authored Jan 13, 2025
1 parent 57ed3e0 commit 4f695e1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ jobs:
sed -i "s/^version[ ]*=.*/version = \"${version}\"/g" ${{ env.PYTHON_VERSION_FILE }}
- name: "Install poetry"
run: pipx install "poetry<2.0.0"
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/follow-merge-upstream-repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ jobs:
uses: actions/setup-node@v4

- name: "Install poetry"
run: pipx install "poetry<2.0.0"
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
- uses: actions/checkout@v4

- name: "Install poetry"
run: pipx install "poetry<2.0.0"
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[project]
name = "label-studio-sdk"

[tool.poetry]
name = "label-studio-sdk"
version = "1.0.9.dev"
Expand Down

0 comments on commit 4f695e1

Please sign in to comment.