@@ -35,7 +35,7 @@ def bump_version(version_spec, version_cmd):
35
35
36
36
# Bail if tag already exists
37
37
tag_name = f"v{ version } "
38
- if tag_name in util .run ("git --no-pager tag" ).splitlines ():
38
+ if tag_name in util .run ("git --no-pager tag" , quiet = True ).splitlines ():
39
39
msg = f"Tag { tag_name } already exists!"
40
40
msg += " To delete run: `git push --delete origin {tag_name}`"
41
41
raise ValueError (msg )
@@ -49,6 +49,7 @@ def check_links(ignore_glob, ignore_links, cache_file, links_expire):
49
49
os .makedirs (cache_dir , exist_ok = True )
50
50
cmd = "pytest --noconftest --check-links --check-links-cache "
51
51
cmd += f"--check-links-cache-expire-after { links_expire } "
52
+ cmd += "--disable-warnings --quiet "
52
53
cmd += f"--check-links-cache-name { cache_dir } /check-release-links "
53
54
54
55
ignored = []
@@ -89,7 +90,7 @@ def draft_changelog(version_spec, branch, repo, since, auth, changelog_path, dry
89
90
branch = branch or util .get_branch ()
90
91
version = util .get_version ()
91
92
92
- tags = util .run ("git --no-pager tag" )
93
+ tags = util .run ("git --no-pager tag" , quiet = True )
93
94
if f"v{ version } " in tags .splitlines ():
94
95
raise ValueError (f"Tag v{ version } already exists" )
95
96
@@ -470,7 +471,7 @@ def prep_git(ref, branch, repo, auth, username, url, install=True):
470
471
ref = ref or ""
471
472
472
473
# Make sure we have *all* tags
473
- util .run ("git fetch origin --tags --force" )
474
+ util .run ("git fetch origin --tags --force --quiet " )
474
475
475
476
# Handle the ref
476
477
if ref .startswith ("refs/pull/" ):
@@ -500,7 +501,7 @@ def prep_git(ref, branch, repo, auth, username, url, install=True):
500
501
if install :
501
502
# install python package in editable mode with test deps
502
503
if util .SETUP_PY .exists ():
503
- util .run ('pip install -e ".[test]"' )
504
+ util .run ('pip install -q - e ".[test]"' )
504
505
505
506
# prefer yarn if yarn lock exists
506
507
elif util .YARN_LOCK .exists ():
@@ -535,7 +536,7 @@ def forwardport_changelog(
535
536
os .chdir (util .CHECKOUT_NAME )
536
537
537
538
# Bail if the tag has been merged to the branch
538
- tags = util .run (f"git --no-pager tag --merged { branch } " )
539
+ tags = util .run (f"git --no-pager tag --merged { branch } " , quiet = True )
539
540
if tag in tags .splitlines ():
540
541
util .log (f"Skipping since tag is already merged into { branch } " )
541
542
return
0 commit comments