Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@ def export(tag: Tag, silent: bool = False, skip_docs: bool = False) -> None:
# extension, touches should not be needed anymore,
# but keep it for now as a reminder.
maybe_touchables = [
"Include/Python-ast.h",
"Include/internal/pycore_ast.h",
"Include/internal/pycore_ast_state.h",
"Python/Python-ast.c",
Expand All @@ -660,26 +659,15 @@ def export(tag: Tag, silent: bool = False, skip_docs: bool = False) -> None:

# Remove files we don't want to ship in tarballs.
print("Removing VCS .*ignore, .git*, Misc/NEWS.d, et al")
for name in (
".gitattributes",
".gitignore",
".hgignore",
".hgeol",
".hgtags",
".hgtouch",
".bzrignore",
".codecov.yml",
".mention-bot",
".travis.yml",
):
for name in (".gitattributes", ".gitignore"):
try:
os.unlink(name)
except OSError:
pass

# Remove directories we don't want to ship in tarballs.
run_cmd(["blurb", "export"], silent=silent)
for name in (".azure-pipelines", ".git", ".github", ".hg", "Misc/mypy"):
for name in (".azure-pipelines", ".git", ".github", "Misc/mypy"):
shutil.rmtree(name, ignore_errors=True)

if not skip_docs and (tag.is_final or tag.level == "rc"):
Expand All @@ -690,10 +678,6 @@ def export(tag: Tag, silent: bool = False, skip_docs: bool = False) -> None:
shutil.rmtree("venv", ignore_errors=True)
shutil.rmtree("build", ignore_errors=True)
shutil.rmtree("dist", ignore_errors=True)
shutil.rmtree("tools/docutils", ignore_errors=True)
shutil.rmtree("tools/jinja2", ignore_errors=True)
shutil.rmtree("tools/pygments", ignore_errors=True)
shutil.rmtree("tools/sphinx", ignore_errors=True)

with pushd(archivename):
print("Zapping pycs")
Expand Down
47 changes: 0 additions & 47 deletions size.py

This file was deleted.

37 changes: 0 additions & 37 deletions tests/test_size.py

This file was deleted.

Loading