From 171fa7701a59967ea45f7be52ba00baf671a8545 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 27 Mar 2024 18:03:54 +0100 Subject: [PATCH 1/2] Fix model. --- changelogs/fragments/594-announcements.yml | 2 ++ src/antsibull/pypi.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changelogs/fragments/594-announcements.yml diff --git a/changelogs/fragments/594-announcements.yml b/changelogs/fragments/594-announcements.yml new file mode 100644 index 00000000..e09b1930 --- /dev/null +++ b/changelogs/fragments/594-announcements.yml @@ -0,0 +1,2 @@ +bugfixes: + - "The PyPI 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)." diff --git a/src/antsibull/pypi.py b/src/antsibull/pypi.py index e6af93aa..bfb53b3d 100644 --- a/src/antsibull/pypi.py +++ b/src/antsibull/pypi.py @@ -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] From 5a18a7afec5bfa79e49940ca535743fd5ddd32b9 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 27 Mar 2024 18:06:09 +0100 Subject: [PATCH 2/2] Update changelog fragment. Co-authored-by: Maxwell G --- changelogs/fragments/594-announcements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/594-announcements.yml b/changelogs/fragments/594-announcements.yml index e09b1930..b93bc856 100644 --- a/changelogs/fragments/594-announcements.yml +++ b/changelogs/fragments/594-announcements.yml @@ -1,2 +1,2 @@ bugfixes: - - "The PyPI 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)." + - "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)."