From 347bbeb593d86a732aae722b97665e3fe9623655 Mon Sep 17 00:00:00 2001 From: Ali Shariat Date: Wed, 2 Feb 2022 19:18:46 -0800 Subject: [PATCH] sort package name in extras to make it reproducible this fixes python-poetry/poetry#5125 --- src/poetry/core/packages/dependency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/core/packages/dependency.py b/src/poetry/core/packages/dependency.py index c01ede94f..a539d59b6 100644 --- a/src/poetry/core/packages/dependency.py +++ b/src/poetry/core/packages/dependency.py @@ -253,7 +253,7 @@ def base_pep_508_name(self) -> str: requirement = self.pretty_name if self.extras: - extras = ",".join(self.extras) + extras = ",".join(sorted(self.extras)) requirement += f"[{extras}]" if isinstance(self.constraint, VersionUnion):