Skip to content

Commit

Permalink
ci: PLT-628: Migrate to Poetry 2 (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelonogov authored Jan 13, 2025
1 parent 1cd4101 commit 68f442a
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 10 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
env:
POETRY_VERSION: ${{ vars.POETRY_VERSION }}
run: pipx install "poetry==${POETRY_VERSION}"

- name: "Set up Python"
id: setup_python
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
POETRY_VERSION=${{ vars.POETRY_VERSION }}
- name: Create Docker image tag Check
uses: actions/github-script@v7
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
- uses: actions/checkout@v4

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

- name: "Set up Python"
id: setup_python
Expand Down Expand Up @@ -50,7 +52,9 @@ jobs:
- uses: actions/checkout@v4

- name: "Install poetry"
run: pipx install poetry
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 @@ -88,7 +88,9 @@ jobs:
working_directory: "${{ env.UPSTREAM_REPO_WORKDIR }}"

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

- name: "Set up Python"
id: setup_python
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
- uses: actions/checkout@v4

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

- name: "Set up Python"
id: setup_python
Expand Down Expand Up @@ -65,7 +67,9 @@ jobs:
- uses: actions/checkout@v4

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

- name: "Set up Python ${{ matrix.python-version }}"
id: setup_python
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.app
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.12
ARG POETRY_VERSION=1.8.5
ARG POETRY_VERSION=2.0.1

################################ Overview

Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ litellm = "^1.47.2"
pandarallel = "^1.6.5"
instructor = "^1.4.3"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
black = "^24.8.0"
Expand Down

0 comments on commit 68f442a

Please sign in to comment.