Skip to content

Commit

Permalink
Update src/poetry/console/commands/build.py
Browse files Browse the repository at this point in the history
Co-authored-by: Bartosz Sokorski <b.sokorski@gmail.com>
  • Loading branch information
abn and Secrus authored Feb 29, 2024
1 parent 4534c47 commit 15a788b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/poetry/console/commands/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def _build(
else:
raise ValueError(f"Invalid format: {fmt}")

local_version_label = self.option("local-version")

if local_version_label:
if local_version_label := self.option("local-version"):
self.poetry.package.version = self.poetry.package.version.replace(
local=local_version_label
)
Expand Down

0 comments on commit 15a788b

Please sign in to comment.