Skip to content

Commit 347bbeb

Browse files
committed
sort package name in extras to make it reproducible
this fixes python-poetry/poetry#5125
1 parent 3bdd0cf commit 347bbeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/poetry/core/packages/dependency.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def base_pep_508_name(self) -> str:
253253
requirement = self.pretty_name
254254

255255
if self.extras:
256-
extras = ",".join(self.extras)
256+
extras = ",".join(sorted(self.extras))
257257
requirement += f"[{extras}]"
258258

259259
if isinstance(self.constraint, VersionUnion):

0 commit comments

Comments
 (0)