This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pdxjohnny
Recipients dchimeno, domdfcoding, pdxjohnny
Date 2021-10-25.23:43:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635205428.33.0.0166198533222.issue39846@roundup.psfhosted.org>
In-reply-to
Content
I ran into this today. Using a wrapper function around _make_zipfile due to https://github.com/python/cpython/blob/d5650a1738fe34f6e1db4af5f4c4edb7cae90a36/Lib/shutil.py#L817-L819 where there is a check for if the format is zip then don't pass owner and group.

```
def make_whlfile(*args, owner=None, group=None, **kwargs):
    return shutil._make_zipfile(*args, **kwargs)


shutil.register_archive_format("whl", make_whlfile, description="Wheel file")
shutil.register_unpack_format(
    "whl", [".whl"], shutil._unpack_zipfile, description="Wheel file"
)
```
History
Date User Action Args
2021-10-25 23:43:48pdxjohnnysetrecipients: + pdxjohnny, dchimeno, domdfcoding
2021-10-25 23:43:48pdxjohnnysetmessageid: <1635205428.33.0.0166198533222.issue39846@roundup.psfhosted.org>
2021-10-25 23:43:48pdxjohnnylinkissue39846 messages
2021-10-25 23:43:48pdxjohnnycreate