File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1+ import os
2+ import shutil
3+
4+ from blurb ._cli import subcommand
5+
6+
7+ @subcommand
8+ def export () -> None :
9+ """Removes blurb data files, for building release tarballs/installers."""
10+ os .chdir ('Misc' )
11+ shutil .rmtree ('NEWS.d' , ignore_errors = True )
Original file line number Diff line number Diff line change 4545import itertools
4646import os
4747import re
48- import shutil
4948import sys
5049import textwrap
5150import time
5251
53- from blurb ._cli import main , subcommand
54- from blurb ._git import git_add_files , flush_git_add_files
5552from blurb ._template import (
5653 next_filename_unsanitize_sections , sanitize_section ,
5754 sanitize_section_legacy , sections , unsanitize_section ,
@@ -474,14 +471,7 @@ def error(*a):
474471 sys .exit ("Error: " + s )
475472
476473
477- @subcommand
478- def export ():
479- """
480- Removes blurb data files, for building release tarballs/installers.
481- """
482- os .chdir ("Misc" )
483- shutil .rmtree ("NEWS.d" , ignore_errors = True )
484-
485-
486474if __name__ == '__main__' :
475+ from blurb ._cli import main
476+
487477 main ()
You can’t perform that action at this time.
0 commit comments