Skip to content

Commit

Permalink
Update poetry to v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zvirovyi committed Jan 7, 2025
1 parent 4bd9b63 commit 16652ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ parts:
rustup default stable
# Convert subset of poetry.lock to requirements.txt
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.8.5 python3 -
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 @@ -22,7 +22,7 @@ description = Apply coding style standards to code
commands_pre =
poetry install --only format --no-root
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 @@ -54,10 +54,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 16652ad

Please sign in to comment.