Skip to content

Commit

Permalink
docs: prepare changelog for 0.9.0b3 (#153)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Sep 13, 2024
1 parent 3c0c1ed commit 6a7a1b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
Changelog
+++++++++

0.9.0 beta 3 (13-09-2024)
=========================

- Support unicode METADATA in the description again
- Restore ``RFC822Message`` with support for unicode
- Restore ``write_to_rfc822`` with support for any Message
- Restore recommendation to use string instead of bytes


0.9.0 beta 2 (13-09-2024)
=========================

Expand Down
6 changes: 3 additions & 3 deletions pyproject_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import packaging.version


__version__ = '0.9.0b2'
__version__ = '0.9.0b3'

KNOWN_METADATA_VERSIONS = {'2.1', '2.2', '2.3', '2.4'}
PRE_SPDX_METADATA_VERSIONS = {'2.1', '2.2', '2.3'}
Expand Down Expand Up @@ -128,7 +128,7 @@ class _SmartMessageSetter:
If a value contains a newline, indent it (may produce a warning in the future).
"""

message: email.message.EmailMessage
message: email.message.Message

def __setitem__(self, name: str, value: str | None) -> None:
if not value:
Expand Down Expand Up @@ -640,7 +640,7 @@ def as_rfc822(self) -> RFC822Message:
self.write_to_rfc822(message)
return message

def write_to_rfc822(self, message: email.message.EmailMessage) -> None: # noqa: C901
def write_to_rfc822(self, message: email.message.Message) -> None: # noqa: C901
self.validate(warn=False)

smart_message = _SmartMessageSetter(message)
Expand Down

0 comments on commit 6a7a1b3

Please sign in to comment.