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

Function pre_release

scripts/release.py:102–119  ·  view source on GitHub ↗

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 """Generates new docs, release announcements and creates a local tag."""
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 = f"Prepare release version {version}"
114 check_call(["git", "commit", "-a", "-m", msg])
115
116 print()
117 print(f"{Fore.CYAN}[generate.pre_release] {Fore.GREEN}All done!")
118 print()
119 print("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

Used in the wild real call sites across dependent graphs

searching dependent graphs…