Skip to content

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

Open
serhiy-storchaka wants to merge 3 commits into
python: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 into
python:mainfrom
serhiy-storchaka:shutil-make_archive-base_dir-None

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
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.
Comment thread Doc/library/shutil.rst Outdated
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant