Skip to content

Commit

Permalink
[poetry] Poetry.build fails on terms that support ansi color. (#778)
Browse files Browse the repository at this point in the history
`poetry build` emits color codes around the build artifact name
on some terminals (windows conemu).  Failure looks like this:

OSError: [WinError 123] The filename, directory name, or volume label
syntax is incorrect:
'dist\\\x1b[32mnox_poetry-1.0.0-py3-none-any.whl\x1b[0m'

Co-authored-by: Cycle Driver <cycledriver42@gmail.com>
  • Loading branch information
cycledriver and cycledriver committed Jun 24, 2022
1 parent a99d67d commit 8b20ebe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nox_poetry/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def build(self, *, format: str) -> str:
"poetry",
"build",
f"--format={format}",
"--no-ansi",
external=True,
silent=True,
stderr=None,
Expand Down

0 comments on commit 8b20ebe

Please sign in to comment.