Show package size before publishing to the registry

This commit is contained in:
Ivan Kravets
2022-02-21 15:00:13 +02:00
parent 54c18ae0c6
commit 4d9547066b

View File

@ -97,6 +97,7 @@ def package_publish_cmd( # pylint: disable=too-many-arguments, too-many-locals
("Owner:", owner),
("Name:", name),
("Version:", version),
("Size:", fs.humanize_file_size(os.path.getsize(archive_path))),
]
if manifest.get("system"):
data.insert(len(data) - 1, ("System:", ", ".join(manifest.get("system"))))