Skip to content

Commit

Permalink
Fix poetry install failing for urlmatch
Browse files Browse the repository at this point in the history
This error is happening because poetry cannot identify legacy versions
in sdist names, and it tries to install a macos-specific package that
doesn't contain a setup.py or setup.cfg file. The workaround is to
blacklist the macos package file by corrupting its hash value in the
lock file, so poetry will be forced to install from the other file.

Needs poetry v1.2 or higher to actually respect the missing hash. Lower
versions simply ignore hash mismatch, and install the package anyway.
  • Loading branch information
iamkroot committed Jun 14, 2021
1 parent 30d4923 commit 2f26aa9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 13 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ cleo = "^0.8.1"
confuse = "^1.4.0"
pysocks = {version = "^1.7.1", optional = true}
jeepney = {version = "^0.6", platform = "linux"}

urlmatch = "^1.0.1"

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit 2f26aa9

Please sign in to comment.