MCPcopy
hub / github.com/pytest-dev/pytest / pre_release

Function pre_release

scripts/release.py:102–119  ·  scripts/release.py::pre_release

Generates new docs, release announcements and creates a local tag.

(
    version: str, template_name: str, doc_version: str, *, skip_check_links: bool
)

Source from the content-addressed store, hash-verified

100
101
102def pre_release(
103 version: str, template_name: str, doc_version: str, *, skip_check_links: bool
104) -> None:
105 class="st">""class="st">"Generates new docs, release announcements and creates a local tag."class="st">""
106 announce(version, template_name, doc_version)
107 regen(version)
108 changelog(version, write_out=True)
109 fix_formatting()
110 if not skip_check_links:
111 check_links()
112
113 msg = fclass="st">"Prepare release version {version}"
114 check_call([class="st">"git", class="st">"commit", class="st">"-a", class="st">"-m", msg])
115
116 print()
117 print(fclass="st">"{Fore.CYAN}[generate.pre_release] {Fore.GREEN}All done!")
118 print()
119 print(class="st">"Please push your branch and open a PR.")
120
121
122def changelog(version: str, write_out: bool = False) -> None:

Callers 1

mainFunction · 0.85

Calls 6

announceFunction · 0.85
regenFunction · 0.85
changelogFunction · 0.85
fix_formattingFunction · 0.85
check_linksFunction · 0.85
check_callFunction · 0.85

Tested by

no test coverage detected