Open
Description
Bug report
Bug description:
When generating a zipapp under macOS then random ".DS_Store" files get included into the generated archive.
e.g.
$ python3.12 -m zipapp --output cfv.pyz --compress --python /usr/local/bin/python3 zipapptempdir
$ unzip -l cfv.pyz
Archive: cfv.pyz
Length Date Time Name
--------- ---------- ----- ----
6148 04-13-2024 00:17 .DS_Store
186 04-13-2024 00:20 __main__.py
0 04-13-2024 00:17 cfv/
6148 04-13-2024 00:17 cfv/.DS_Store
…
--------- -------
137783 20 files
Those files quickly get regenerated by Finder, so it's hard to entirely avoid them getting added to the archive by trying to pre-delete them before executing zipapp. .DS_Store files can add significantly to the size of the archive, possible have privacy implications (e.g. leaked spotlight comments), and serve zero purpose for the python app.
CPython versions tested on:
3.12
Operating systems tested on:
macOS
Linked PRs
Metadata
Metadata
Assignees
Labels
Python modules in the Lib dirPython modules in the Lib dirA feature request or enhancementA feature request or enhancement
Projects
Status
No status