Skip to content

Commit

Permalink
patch(build_charm.yaml): Support poetry v2 (#260)
Browse files Browse the repository at this point in the history
warnings.export setting removed in poetry v2
  • Loading branch information
carlcsaposs-canonical authored Jan 6, 2025
1 parent 349e0c8 commit 078fb64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build_charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ jobs:
sudo snap install charmcraft --classic ${{ steps.charmcraft-snap-version.outputs.install_flag }}
pipx install poetry
pipx inject poetry poetry-plugin-export
# TODO: Remove after https://github.com/python-poetry/poetry/pull/5980 is closed
poetry config warnings.export false
pipx install charmcraftcache
- run: snap list
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/integration_test_charm.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ pytest-operator-groups = {git = "https://github.com/canonical/data-platform-work
to your integration test dependencies in `pyproject.toml`.

#### Step B
Disable Poetry's parallel installation for integration test dependencies.

Example `tox.ini`:
```ini
[testenv:integration]
set_env =
{[testenv]set_env}
# Workaround for https://github.com/python-poetry/poetry/issues/6958
POETRY_INSTALLER_PARALLEL = false
```

#### Step C
If you're using tox, pass in the `CI` and `GITHUB_OUTPUT` environment variables in `tox.ini`.
```ini
[testenv:integration]
Expand Down

0 comments on commit 078fb64

Please sign in to comment.