From 8b20ebecef1c3e6de1178367b32525394fbb6639 Mon Sep 17 00:00:00 2001 From: cycledriver <66476455+cycledriver@users.noreply.github.com> Date: Fri, 24 Jun 2022 12:53:20 -0400 Subject: [PATCH] [poetry] Poetry.build fails on terms that support ansi color. (#778) `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 --- src/nox_poetry/poetry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nox_poetry/poetry.py b/src/nox_poetry/poetry.py index 7ce0fa38..d600dd5c 100644 --- a/src/nox_poetry/poetry.py +++ b/src/nox_poetry/poetry.py @@ -138,6 +138,7 @@ def build(self, *, format: str) -> str: "poetry", "build", f"--format={format}", + "--no-ansi", external=True, silent=True, stderr=None,