Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

akx/cpython-zipapp-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Bug reproducer for regression likely introduced in python/cpython#106076.

Works on Python 3.12

$ uv run --python=3.12 makepkg.py
['__main__.py', 'pkg/', 'pkg/__init__.py', 'pkg/foo.py']

Fails on Python 3.13

$ uv run --python=3.13 makepkg.py
['__main__.py']
Traceback (most recent call last):
  File "/Users/akx/build/cpython-zipapp-bug/makepkg.py", line 29, in <module>
    main()
    ~~~~^^
  File "/Users/akx/build/cpython-zipapp-bug/makepkg.py", line 25, in main
    assert namelist >= {'pkg/__init__.py', 'pkg/foo.py'}, "Bad package."
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Bad package.

  • In addition, -m zipapp -o foo --main pkg.foo:hello . will attempt to create a ZIP of infinite size.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages