Skip to content

Commit

Permalink
Include Dynamic attribute in METADATA and PKG-INFO.
Browse files Browse the repository at this point in the history
In all cases it should still be absent, but that may change as other dynamic attributes are supported.
  • Loading branch information
domdfcoding committed Mar 19, 2024
1 parent b25accf commit 33fc866
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion whey/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ def add_multiple(key: str, field: str) -> None:
for value in self.config[key]:
metadata_mapping[field] = str(value) # pylint: disable=loop-invariant-statement

add_multiple("dynamic", "Dynamic")
metadata_mapping.update(self.parse_authors())

add_not_none("description", "Summary")
Expand Down Expand Up @@ -463,7 +464,7 @@ def write_metadata(self, metadata_file: PathPlus, metadata_mapping: MetadataMapp
:param metadata_file:
"""

metadata_file.write_text(metadata.dumps(metadata_mapping))
metadata_file.write_clean(metadata.dumps(metadata_mapping))
self.report_written(metadata_file)

def call_additional_hooks(self) -> None:
Expand Down

0 comments on commit 33fc866

Please sign in to comment.