Skip to content

Commit

Permalink
temp: use suitable poetry version
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed May 20, 2024
1 parent 3a74a79 commit 7a89609
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 42 deletions.
86 changes: 47 additions & 39 deletions 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 @@ -18,7 +18,7 @@ include = [

[tool.poetry.dependencies]
python = "^3.8"
poetry = ">=1.8.0,<3.0.0"
poetry = { git = "https://github.com/radoering/poetry.git", branch = "lock-markers-and-groups3a" }
poetry-core = ">=1.7.0,<3.0.0"

[tool.poetry.group.dev.dependencies]
Expand Down
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,14 @@ def _factory(
# with https://github.com/python-poetry/poetry/pull/9133
locker = TestLocker(
poetry.locker.lock,
poetry.locker._pyproject_data, # type: ignore[attr-defined]
poetry.locker._pyproject_data,
)
except AttributeError:
# before https://github.com/python-poetry/poetry/pull/9133
locker = TestLocker(poetry.locker.lock, poetry.locker._local_config)
locker = TestLocker(
poetry.locker.lock,
poetry.locker._local_config, # type: ignore[attr-defined]
)
locker.write()

poetry.set_locker(locker)
Expand Down

0 comments on commit 7a89609

Please sign in to comment.