Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: PLT-628: Migrate to Poetry 2 #302

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading