Skip to content

Commit

Permalink
fix uploader when runned without publish
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-callonnec committed Dec 29, 2023
1 parent b746ab9 commit b8542e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/poetry/publishing/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def user_agent(self) -> str:

@property
def dist_dir(self) -> Path:
dist_dir = Path(self._io.input.options["dist-dir"])
io_dist_dir = "dist"
if "dist-dir" in self._io.input.options: # Option comes with publish command.
io_dist_dir = self._io.input.options["dist-dir"]
dist_dir = Path(io_dist_dir)

if not dist_dir.is_absolute():
dist_dir = self._poetry.file.path.parent / dist_dir
Expand Down

0 comments on commit b8542e6

Please sign in to comment.