Skip to content

EncodingWarning when building #561

@jaraco

Description

@jaraco

While building using towncrier with PYTHONWARNDEFAULTENCODING=1, I see this warning:

/Users/jaraco/code/jaraco/jaraco.functools/.tox/finalize/lib/python3.11/site-packages/towncrier/build.py:169: EncodingWarning: 'encoding' argument not specified
  resources.files(config.template[0]).joinpath(config.template[1]).read_text()

One needs to explicitly pass encoding='utf-8' to .read_text() to avoid these warnings. See PEP 597 for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions