Skip to content

Commit 3e99e82

Browse files
committed
Poetry: Lock pathlib2 to make pytest happy
For some reason, the latest pytest version doesn't want pathlib2 at 2.3.5 [SolverProblemError] Because no versions of pytest match <4.6.11 || >4.6.11,<4.7.0 and pytest (4.6.11) depends on pathlib2 (>=2.2.0), pytest (<4.7.0) requires pathlib2 (>=2.2.0). And because no versions of pathlib2 match >=2.2.0,<2.3.5 || >2.3.5 and pathlib2 (2.3.5) depends on scandir (*), pytest (<4.7.0) requires scandir (*). So, because no versions of scandir match * and tmuxp depends on pytest (<4.7.0), version solving failed.
1 parent 92df0b5 commit 3e99e82

File tree

2 files changed

+21
-24
lines changed

2 files changed

+21
-24
lines changed

poetry.lock

Lines changed: 20 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pytest = [
3030
{version="<4.7.0", python="<3"},
3131
{version="*", python=">=3"}
3232
]
33+
pathlib2 = {version="<2.3.5", python="<3"} # Untangle pytest peer-dependency
3334
pytest-rerunfailures = "*"
3435
sphinx = [
3536
{version="<2", python="<3"},

0 commit comments

Comments
 (0)