sphinxcontrib-towncrier
sphinxcontrib-towncrier copied to clipboard
EncodingWarning
I see this warning when running the docs build for setuptools:
/Users/jaraco/code/pypa/setuptools/.tox/docs/lib/python3.12/site-packages/sphinxcontrib/towncrier/ext.py:66: EncodingWarning: 'encoding' argument not specified.
towncrier_output = subprocess.check_output( # noqa: S603
~~Somehow, this error has turned from a warning into an error.~~
Correction, the warning is emitted the same as always. It was a different warning that's surfaced.
Still, it would be nice to see this EncodingWarning fixed so that it's not a red herring when investigating other issues.
I tried suppressing the errors by putting this in the docs job for tox:
env =
# suppress sphinx-contrib/sphinxcontrib-towncrier#91
PYTHONWARNINGS= ignore:'encoding' argument not specified
But it did not work, possibly because of the -W parameter to Sphinx.
Agreed, this should be fixed. EncodingWarning becomes an error if you involve python -bb, for example (single -b for just warning).