3
3
import os
4
4
import time
5
5
6
- import blurb .blurb
6
+ import blurb ._blurb_file
7
7
from blurb ._blurb_file import Blurbs
8
8
from blurb ._cli import error , subcommand
9
9
from blurb ._git import (flush_git_add_files , flush_git_rm_files ,
10
10
git_rm_files , git_add_files )
11
- from blurb .blurb import glob_blurbs , nonceify
11
+ from blurb ._utils .globs import glob_blurbs
12
+ from blurb ._utils .text import generate_nonce
12
13
13
14
14
15
@subcommand
@@ -20,7 +21,7 @@ def release(version: str) -> None:
20
21
if version == '.' :
21
22
# harvest version number from dirname of repo
22
23
# I remind you, we're in the Misc subdir right now
23
- version = os .path .basename (blurb .blurb .root )
24
+ version = os .path .basename (blurb ._blurb_file .root )
24
25
25
26
existing_filenames = glob_blurbs (version )
26
27
if existing_filenames :
@@ -34,7 +35,7 @@ def release(version: str) -> None:
34
35
if not filenames :
35
36
print (f'No blurbs found. Setting { version } as having no changes.' )
36
37
body = f'There were no new changes in version { version } .\n '
37
- metadata = {'no changes' : 'True' , 'gh-issue' : '0' , 'section' : 'Library' , 'date' : date , 'nonce' : nonceify (body )}
38
+ metadata = {'no changes' : 'True' , 'gh-issue' : '0' , 'section' : 'Library' , 'date' : date , 'nonce' : generate_nonce (body )}
38
39
blurbs .append ((metadata , body ))
39
40
else :
40
41
count = len (filenames )
0 commit comments