Skip to content

Commit

Permalink
Use poetry v2
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed Jan 7, 2025
1 parent 9d7cdb2 commit 41cc718
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ parts:
# Convert subset of poetry.lock to requirements.txt
curl -sSL https://install.python-poetry.org | python3 -
/root/.local/bin/poetry self add poetry-plugin-export
/root/.local/bin/poetry export --only main,charm-libs --output requirements.txt
craftctl default
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

[tool.poetry]
package-mode = false
requires-poetry = ">=2.0.0"

[tool.poetry.dependencies]
python = "^3.10"
Expand Down
6 changes: 1 addition & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ description = Apply coding style standards to code
commands_pre =
poetry install --only format
commands =
poetry lock --no-update
poetry lock
poetry run ruff check --fix {[vars]all_path}
poetry run ruff format {[vars]all_path}

Expand Down Expand Up @@ -57,10 +57,6 @@ commands =

[testenv:integration]
description = Run integration tests
set_env =
{[testenv]set_env}
# Workaround for https://github.com/python-poetry/poetry/issues/6958
POETRY_INSTALLER_PARALLEL = false
pass_env =
CI
GITHUB_OUTPUT
Expand Down

0 comments on commit 41cc718

Please sign in to comment.