From 56658cba2fecdc9c9985926f76560e55b3e961b1 Mon Sep 17 00:00:00 2001 From: Bruce Duhamel Date: Mon, 15 Sep 2025 10:17:03 -0400 Subject: [PATCH 1/4] exclude hashes when exporting requirements because they cause pip to fail to install packages from VCS urls --- poetry_plugin_lambda_build/requirements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry_plugin_lambda_build/requirements.py b/poetry_plugin_lambda_build/requirements.py index 95a0ea2..560dd87 100644 --- a/poetry_plugin_lambda_build/requirements.py +++ b/poetry_plugin_lambda_build/requirements.py @@ -38,7 +38,7 @@ class RequirementsExporter: def __init__(self, poetry: Poetry, io: IO, groups: list[str] | None = None) -> None: self._poetry = poetry self._io = io - self._with_hashes = True + self._with_hashes = False self._with_credentials = False self._with_urls = True self._extras: Collection[NormalizedName] = () From b23cebe5ab6ce478225b7c72f3a901c56bb3ec94 Mon Sep 17 00:00:00 2001 From: Bruce Duhamel Date: Mon, 15 Sep 2025 10:36:37 -0400 Subject: [PATCH 2/4] exclude hashes only for direct remote references --- poetry_plugin_lambda_build/requirements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry_plugin_lambda_build/requirements.py b/poetry_plugin_lambda_build/requirements.py index 560dd87..2047949 100644 --- a/poetry_plugin_lambda_build/requirements.py +++ b/poetry_plugin_lambda_build/requirements.py @@ -161,7 +161,7 @@ def _export_generic_txt( ): indexes.add(package.source_url.rstrip("/")) - if package.files and self._with_hashes: + if package.files and self._with_hashes and not is_direct_remote_reference: hashes = [] for f in package.files: h = f["hash"] From 8dc4a84a7a6c1a8fa2fecd1108d9f11c5626df9f Mon Sep 17 00:00:00 2001 From: Bruce Duhamel Date: Mon, 15 Sep 2025 10:36:54 -0400 Subject: [PATCH 3/4] Revert "exclude hashes when exporting requirements because they cause pip to fail to install packages from VCS urls" This reverts commit 56658cba2fecdc9c9985926f76560e55b3e961b1. --- poetry_plugin_lambda_build/requirements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry_plugin_lambda_build/requirements.py b/poetry_plugin_lambda_build/requirements.py index 2047949..00cb645 100644 --- a/poetry_plugin_lambda_build/requirements.py +++ b/poetry_plugin_lambda_build/requirements.py @@ -38,7 +38,7 @@ class RequirementsExporter: def __init__(self, poetry: Poetry, io: IO, groups: list[str] | None = None) -> None: self._poetry = poetry self._io = io - self._with_hashes = False + self._with_hashes = True self._with_credentials = False self._with_urls = True self._extras: Collection[NormalizedName] = () From aecb0d3cb9da66e6a794d2677a279845b710455d Mon Sep 17 00:00:00 2001 From: Bruce Duhamel Date: Mon, 15 Sep 2025 12:05:33 -0400 Subject: [PATCH 4/4] version bump --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a06bc31..9e67740 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "poetry-plugin-lambda-build" -version = "2.1.0" +version = "2.1.1" description = "The plugin for poetry that allows you to build zip packages suited for serverless deployment like AWS Lambda, Google App Engine, Azure App Service, and more..." authors = ["Michal Murawski "] readme = "README.md"