From 078fb649213bbffe223e826f04560c2e9c9c3396 Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Mon, 6 Jan 2025 15:02:15 +0000 Subject: [PATCH] patch(build_charm.yaml): Support poetry v2 (#260) warnings.export setting removed in poetry v2 --- .github/workflows/build_charm.yaml | 2 -- .github/workflows/integration_test_charm.md | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/.github/workflows/build_charm.yaml b/.github/workflows/build_charm.yaml index 7a6b2fb6..5f6975c4 100644 --- a/.github/workflows/build_charm.yaml +++ b/.github/workflows/build_charm.yaml @@ -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 diff --git a/.github/workflows/integration_test_charm.md b/.github/workflows/integration_test_charm.md index 45c5ad33..ca36a8cd 100644 --- a/.github/workflows/integration_test_charm.md +++ b/.github/workflows/integration_test_charm.md @@ -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]