Skip to content

Commit

Permalink
Fix PyPI release model used for announcements (#594)
Browse files Browse the repository at this point in the history
* Fix model.

* Update changelog fragment.

Co-authored-by: Maxwell G <maxwell@gtmx.me>

---------

Co-authored-by: Maxwell G <maxwell@gtmx.me>
  • Loading branch information
felixfontein and gotmax23 committed Mar 27, 2024
1 parent 9f857a4 commit 94712a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/594-announcements.yml
@@ -0,0 +1,2 @@
bugfixes:
- "The PyPI API model used during the release announcement generation has been updated to accept ``null`` for ``keywords``, ``maintainer``, and ``maintainer_email`` (https://github.com/ansible-community/antsibull/pull/594)."
6 changes: 3 additions & 3 deletions src/antsibull/pypi.py
Expand Up @@ -68,10 +68,10 @@ class ReleaseInfo(p.BaseModel):
description_content_type: str
docs_url: Optional[str]
home_page: str
keywords: str
keywords: Optional[str]
license: str
maintainer: str
maintainer_email: str
maintainer: Optional[str]
maintainer_email: Optional[str]
name: str
package_url: str
platform: Optional[str]
Expand Down

0 comments on commit 94712a7

Please sign in to comment.