Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Terminal size error with 1.2.0 #760

@santhonisz

Description

@santhonisz

Hi there,

It appears that the changes added in #749 have the potential to break usage of build when the terminal size cannot be determined.

In our CI pipeline on Buildkite, we call python -m build -w on a python:3.8 Docker container. Since the release of build==1.2.0 this is failing with the following error:

image

The call to shutil.get_terminal_size().columns is evidently returning zero in this case and, as per the docs, when using Python < 3.11 the default fallback value will not be used.

Changed in version 3.11: The fallback values are also used if os.get_terminal_size() returns zeroes.

While it is possible to work around the issue in our pipeline, I think this scenario should be better handled by build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions