The Wayback Machine - https://web.archive.org/web/20260221022349/https://github.com/python/cpython/pull/118152
Skip to content

Comments

gh-80145: shutil.make_archive(): exclude '.' when base_dir is None#118152

Open
serhiy-storchaka wants to merge 3 commits intopython:mainfrom
serhiy-storchaka:shutil-make_archive-base_dir-None
Open

gh-80145: shutil.make_archive(): exclude '.' when base_dir is None#118152
serhiy-storchaka wants to merge 3 commits intopython:mainfrom
serhiy-storchaka:shutil-make_archive-base_dir-None

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 22, 2024 •

shutil.make_archive() no longer adds the the '.' entry to tar arhives and the './' prefix to tar entries unless base_dir='.' is explicitly specified. It now adds the '.' entry to zip arhives if base_dir='.' is explicitly specified.


📚 Documentation preview 📚: https://cpython-previews--118152.org.readthedocs.build/

shutil.make_archive() no longer adds the the '.' entry to tar
arhives and the './' prefix to tar entries unless base_dir='.' is
explicitly specified. It now adds the '.' entry to zip arhives if
base_dir='.' is explicitly specified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant