From de20111d8fb78e7356ae51d074cdaaee3a375b9f Mon Sep 17 00:00:00 2001 From: John Sirois Date: Sun, 10 Jul 2022 03:17:48 -0700 Subject: [PATCH] Fix poetry locks missing hashes. (Cherry-pick of #16112) (#16113) This was due to this change on PyPI: https://discuss.python.org/t/backwards-incompatible-change-to-pypi-json-api/17154 Which was fixed in Poetry yesterday here: https://github.com/python-poetry/poetry/pull/5973 Unfortunately, the full fix requires blowing away the non-Pants controlled Poetry cache at `~/.cache/pypoetry` on Linux and `~/Library/Caches/pypoetry` on Mac. Fixes #16111 (cherry picked from commit b97936e2e68edf5060163b66fa1bb21b2460d11b) --- src/python/pants/backend/python/subsystems/poetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/pants/backend/python/subsystems/poetry.py b/src/python/pants/backend/python/subsystems/poetry.py index 0698f2b2817..900770ddbfa 100644 --- a/src/python/pants/backend/python/subsystems/poetry.py +++ b/src/python/pants/backend/python/subsystems/poetry.py @@ -24,7 +24,7 @@ class PoetrySubsystem(PythonToolRequirementsBase): options_scope = "poetry" help = "Used to generate lockfiles for third-party Python dependencies." - default_version = "poetry==1.1.8" + default_version = "poetry==1.1.14" register_interpreter_constraints = True default_interpreter_constraints = ["CPython>=3.7,<4"]