Skip to content

Commit

Permalink
Merge pull request #427 from zestsoftware/maurits-ignore-build-stderr
Browse files Browse the repository at this point in the history
Ignore error output when calling `build`.
  • Loading branch information
mauritsvanrees authored Jul 14, 2023
2 parents cf11733 + 4417871 commit 09d3f89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changelog for zest.releaser
9.0.0a2 (unreleased)
--------------------

- Ignore error output when calling `build`.
We only need to look at the exit code to see if it worked.
You can call zest.releaser with ``--verbose`` if you want
to see the possible warnings.

- Removed ``encoding`` config option as nobody is using it anymore (using the
option would result in a crash). Apparently it isn't needed anymore now that
we don't use python 2 anymore. Fixes `issue 391
Expand Down
2 changes: 1 addition & 1 deletion zest/releaser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def _execute_command(command, cwd=None, extra_environ=None):
show_stderr = False
# But we really DO want to see the stderr for some other Python commands,
# otherwise for example a failed upload would not even show up in the output.
for flag in ("upload", "register", "build_sdist", "build_wheel", "-mbuild"):
for flag in ("upload", "register"):
if flag in command:
show_stderr = True
break
Expand Down

0 comments on commit 09d3f89

Please sign in to comment.