Skip to content

Commit

Permalink
test with poetry 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-n committed Jan 8, 2025
1 parent 50504c4 commit a64d47d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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 @@ -15,7 +15,7 @@ classifiers = ["Topic :: Software Development :: Build Tools"]
python = ">=3.9"
pastel = "^0.2.1"
tomli = { version = ">=1.2.2", python = "<3.11" }
poetry = { version = ">=1.2,<3.0", python = "<4", optional = true }
poetry = { version = ">=1.0,<3.0", python = "<4", optional = true }
pyyaml = "^6.0.2"

[tool.poetry.group.ci.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def run_poe_main(


@pytest.fixture(scope="session")
def run_poetry(use_venv, poe_project_path):
def run_poetry(use_venv, poe_project_path, version: str = "2.0.0"):
venv_location = poe_project_path / "tests" / "temp" / "poetry_venv"

def run_poetry(args: list[str], cwd: str, env: Optional[dict[str, str]] = None):
Expand Down Expand Up @@ -275,7 +275,7 @@ def run_poetry(args: list[str], cwd: str, env: Optional[dict[str, str]] = None):
venv_location,
[
".[poetry_plugin]",
"./tests/fixtures/packages/poetry-1.8.2-py3-none-any.whl",
f"./tests/fixtures/packages/poetry-{version}-py3-none-any.whl",
],
require_empty=True,
):
Expand Down
Binary file not shown.

0 comments on commit a64d47d

Please sign in to comment.